07 Aug, 2008

1 commit


25 May, 2008

4 commits

  • Add a correct MODULE_ALIAS() entry for this driver to enable udev module
    loading.

    Signed-off-by: Ben Dooks
    Cc: Arnaud Patard
    Acked-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Remove the old changelog entries which are now out of date and should be
    extractable from git anyway. Also tidy up the copyright for the driver.

    Signed-off-by: Ben Dooks
    Cc: Arnaud Patard
    Acked-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Fix the following warning by checking the result of device_create_file and
    printing an error but not removing the device (loss of debug registers is
    not fatal).

    drivers/video/s3c2410fb.c:905: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result

    Signed-off-by: Ben Dooks
    Cc: Arnaud Patard
    Acked-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • When a blank level of FB_BLANK_POWERDOWN is used, we should shut down the
    controller so that it no longer tries to produce any panel signals or
    data, and shuts down the DMA which is not needed.

    Signed-off-by: Ben Dooks
    Cc: Arnaud Patard
    Acked-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     

28 Apr, 2008

1 commit

  • __FUNCTION__ is gcc-specific, use __func__

    Signed-off-by: Harvey Harrison
    Cc: "Antonino A. Daplas"
    Cc: Krzysztof Helt
    Cc: Antonino Daplas
    Cc: Antonino A. Daplas
    Cc: Antonino Daplas
    Cc: Richard Purdie
    Cc: Jean Delvare
    Cc: Adrian Bunk
    Cc: Russell King
    Cc: Benjamin Herrenschmidt
    Cc: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     

07 Feb, 2008

4 commits


22 Jan, 2008

1 commit

  • Fix line length calculation. var->width is the size of the display in mm. We
    like to use the pixel size.

    Without this fix, dynamic (fbset) based resolution and depths changes with
    s3c2410_fb don't work at all.

    Spotted by john cass

    Signed-off-by: Stefan Schmidt
    Signed-off-by: Harald Welte
    Acked-by: Ben Dooks
    Acked-by: Arnaud Patard
    Acked-by: Krzysztof Helt
    Cc: "Antonino A. Daplas"
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Schmidt
     

15 Jan, 2008

1 commit


20 Oct, 2007

1 commit

  • * Convert files to UTF-8.

    * Also correct some people's names
    (one example is Eißfeldt, which was found in a source file.
    Given that the author used an ß at all in a source file
    indicates that the real name has in fact a 'ß' and not an 'ss',
    which is commonly used as a substitute for 'ß' when limited to
    7bit.)

    * Correct town names (Goettingen -> Göttingen)

    * Update Eberhard Mönkeberg's address (http://lkml.org/lkml/2007/1/8/313)

    Signed-off-by: Jan Engelhardt
    Signed-off-by: Adrian Bunk

    Jan Engelhardt
     

17 Oct, 2007

14 commits

  • This patch changes mode selection to always prefer default mode if possible
    and always honor type of display set by default mode settings.

    This patch is required in case the same display modes were defined for
    different panels (e.g. STN and TFT).

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch removes lcdcon1 register field from the s3c2410fb_display as all
    bits are calculated from other fields.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch adds pixelclock field to the s3c2410fb_display structure and make
    use of it in the driver.

    The Bast machine defined 9 modes but pixclock and margin values are defined
    only for the 640x480 modes so I removed other modes.

    This patch also fixes wrong display type constant for the SMDK2440 board.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch:
    - moves more display mode preparations to s3c2410fb_check_var()
    - reduces number of fields in s3c2410fb_info
    - removes redundant values setting in s3c2410fb_probe()
    - removes static mach_info pointer
    - releases fb_info structure in s3c2410fb_remove()
    - changes s3c2410fb_init to __init from __devinit
    - fixes few typos in comments and removes unused includes

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch sets correct bits related to the byte ordering of the
    framebuffer. This was tested on little endian kernel only. The big endian
    kernel may require different settings.

    The patch also adds 32 bpp mode which is called 24 bpp by Samsung. One
    pixel takes 32 bits but only 24 bits are used in this mode.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch adds missing virtual register offsets where
    appropriate. This fixes crashes in the driver.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch removes unused lcdcon2 and lcdcon3 register value
    from the s3c2410fb_display structure.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch adds synchronization pulse lenght fields to
    the s3c2410fb_display structure and makes use of them
    in the driver.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch makes use of vertical margins fields in
    the s3c2410fb_display structure.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch removes unused lcdcon3 register from the
    s3c2410fb_display structure.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch makes use of margins fields in the s3c2410fb_display
    structure.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch adds a new structure to describe and handle
    more than one panel (display mode) for the s3c2410 framebuffer.
    This structure is added after the pxafb driver.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch removes redundant fb field from
    the s3c2410fb_info structure. This breaks circular
    reference fb_info -> s3c2410fb_info -> fb_info again.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • This patch cleans up the driver a bit. It contains
    coding style fixes (pointed by Lindent and checkpatch),
    white space clean ups and few minor code improvements.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     

01 Aug, 2007

1 commit

  • The implicit mapping has been removed from the arch
    as this should be handled in the driver, this patch
    fixes the s3c2410_fb driver to ioremap() the necessary
    registers.

    Signed-off-by: Ben Dooks
    Acked-by: Arnaud Patard
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     

17 Feb, 2007

1 commit


09 Dec, 2006

1 commit

  • This patch adds support for stn displays on the s3c2410 arm SoC.

    The LCD type is choosen by a new field in the s3c2410fb_mach_info structure
    and its value is the value of the PNRMODE bits. This worth to be noted as
    a value of 0 means that you configure a 4 bit dual scan stn display.

    Signed-off-by: Arnaud Patard
    Cc: "Antonino A. Daplas"
    Cc: Russell King
    Cc: Ben Dooks
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Patard (Rtp
     

05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

11 Jul, 2006

1 commit

  • MAX_NR_CONSOLES, fg_console, want_console and last_console are more of a
    function of the VT layer than the TTY one. Moving these to vt.h and vt_kern.h
    allows all of the framebuffer and VT console drivers to remove their
    dependency on tty.h.

    [akpm@osdl.org: fix alpha build]
    Signed-off-by: Jon Smirl
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jon Smirl
     

03 Jul, 2006

1 commit


27 Jun, 2006

1 commit

  • regs.lcdcon1 was not updated on suspend. The result was a garbaged display on
    resume. This bug was first noticed by Christer Weinigel. This patch is a
    modified version of the one he sent to me.

    Signed-off-by: Arnaud Patard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Patard
     

15 Feb, 2006

1 commit


11 Jan, 2006

1 commit

  • Here are some cleanups for the s3c2410fb drivers. It :
    * Removes a buggy call to s3c2410fb_init_registers. There was two calls
    to this function but the first was done without all initialisations
    done. No oops but it may confuse some LCDs.
    * Makes two functions static.

    Signed-Off-By: Arnaud Patard
    Signed-Off-By: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Patard
     

08 Jan, 2006

1 commit


04 Jan, 2006

1 commit

  • It seems that clk_use() and clk_unuse() are additional complexity
    which isn't required anymore. Remove them from the clock framework
    to avoid the additional confusion which they cause, and update all
    ARM machine types except for OMAP.

    Signed-off-by: Russell King

    Russell King
     

10 Nov, 2005

1 commit


07 Nov, 2005

1 commit