26 Jul, 2008

8 commits

  • The sm501_gpio_pin2nr() routine returns the wrong values for gpios in the
    upper bank.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Fix the build problems if CONFIG_MFD_SM501_GPIO is not set, which is
    generally when there is no gpiolib support available as currently happens
    on x86 when building PCI SM501.

    Signed-off-by: Ben Dooks
    Tested-by: Li Zefan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Fixup the comments from the patch that added the gpiolib support from
    Andrew Morton. These include spotting some missing frees on error or
    release, and changing a memcpy for a type-safe assingment.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Add support for adding the GPIO based I2C resources.

    Signed-off-by: Ben Dooks
    Cc: Arnaud Patard
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • The SM501 PCI card requires a dyanmic gpio allocation as the number of
    cards is not known at compile time. Fixup the platform data and
    registration to deal with this.

    Acked-by: Ben Dooks
    Signed-off-by: Arnaud Patard
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Patard
     
  • Add support for exporting the GPIOs on the SM501 via gpiolib.

    Signed-off-by: Ben Dooks
    Cc: Arnaud Patard
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Add callback to get or set the power control if the device has the sleep
    connected to some form of GPIO.

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

    Ben Dooks
     
  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf (platform: prefix MODALIAS
    with "platform:"), the platform modalias is prefixed with "platform:".
    Add MODULE_ALIAS() to the MFD platform drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: one was missing]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Cc: Greg KH
    Cc: "Rafael J. Wysocki"
    Cc: Samuel Ortiz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     

30 Apr, 2008

1 commit


28 Apr, 2008

1 commit

  • This patch extends the sm501 mfd with 8250 uart support. We're currently
    doing this in the board specific r2d-1 code already, but it would be nice to
    do move things into the mfd since it's more chip specific than board specific.

    Signed-off-by: Magnus Damm
    Cc: Ben Dooks
    Cc: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Magnus Damm
     

05 Mar, 2008

2 commits


30 Nov, 2007

1 commit

  • Remove errnoeous x character from dev_dbg() call that stops the driver
    compiling under debug.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     

24 Jun, 2007

5 commits

  • When binding the driver, check the ID register for a valid identity, in case
    the SM501 is not functioning correctly.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Ensure that the M1XCLK and MCLK are sourced from the same PLL (and refuse to
    bind the driver if they are not).

    Update the PCI to safe initialisation values, as 72MHz is the maximum clock
    for 33MHz PCI bus mastering.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • The order of the set and mask operation in sm501_init_reg() was setting and
    then masking the bits set. Correct the order so that we do not end up with
    288MHz SDRAM clocks on certain systems.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • This init sequence of setting the SDRAM clock before the bus clock is
    recommend by Silicon Motion to stop problems with writes not sticking into
    registers.

    Signed-off-by: Vincent Sanders
    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • This patch adds support for suspending the core (mfd driver) of the SM501.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     

03 Apr, 2007

1 commit


27 Feb, 2007

1 commit


21 Feb, 2007

1 commit

  • This driver provides the core functionality of the SM501, which is a
    multi-function chip including two framebuffers, video acceleration, USB,
    and many other peripheral blocks.

    The driver exports a number of entries for the peripheral drivers to use.

    Signed-off-by: Ben Dooks
    Signed-off-by: Vincent Sanders
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks