09 Jul, 2012

1 commit

  • Add irq domain support for max8997 interrupts. The reverse mapping method
    used is linear mapping since the sub-drivers of max8997 such as regulator
    and charger drivers can use the max8997 irq_domain to get the linux irq
    number for max8997 interrupts. All uses of irq_base in platform data and
    max8997 driver private data are removed.

    Reviwed-by: Mark Brown
    Acked-by: MyungJoo Ham
    Acked-by: Grant Likely
    Signed-off-by: Thomas Abraham
    Signed-off-by: Chanwoo Choi
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    Thomas Abraham
     

24 Oct, 2011

1 commit

  • - Support wake-up from suspend-to-ram.
    - Handle pending interrupt after a resume.
    - If pdata->wakeup is enabled, by default, the device is assumed to be
    capable of wakeup (the interrupt pin is connected to a wakeup-source GPIO)
    and may wakeup the system (MAX8997 has a power button input pin).

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    MyungJoo Ham
     

27 May, 2011

1 commit

  • In current implementation, the original macro implementation assumes the caller
    pass the parameter starting from 1 (to match the register names in datasheet).
    Thus we have unneeded plus one then minus one operations
    when using MAX8997_REG_BUCK1DVS/MAX8997_REG_BUCK2DVS/MAX8997_REG_BUCK5DVS macros.

    This patch removes these macros to avoid unneeded plus one then minus one operations
    without reducing readability.

    Signed-off-by: Axel Lin
    Acked-by: Kyungmin Park
    Acked-by: MyungJoo Ham
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Axel Lin
     

27 Mar, 2011

1 commit

  • This patch enables IRQ handling for MAX8997/8966 chips.

    Please note that Fuel-Gauge-related IRQs are not implemented in this
    initial release. The fuel gauge module in MAX8997 is identical to
    MAX17042, which is already in Linux kernel. In order to use the
    already-existing MAX17042 driver for fuel gauge module in MAX8997, the
    main interrupt handler of MAX8997 should relay related interrupts to
    MAX17042 driver. However, in order to do this, we need to modify
    MAX17042 driver as well because MAX17042 driver does not have any
    interrupt handlers for now. We are not going to implement this in this
    initial release as it is not crucial in basic operations of MAX8997.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Samuel Ortiz

    MyungJoo Ham
     

23 Mar, 2011

1 commit

  • MAX8997/MAX8966 chip is a multi-function device with I2C bussses. The
    chip includes PMIC, RTC, Fuel Gauge, MUIC, Haptic, Flash control, and
    Battery (charging) control.

    This patch is an initial release of a MAX8997/8966 driver that supports
    to enable the chip with its primary I2C bus that connects every device
    mentioned above except for Fuel Gauge, which uses another I2C bus. The
    fuel gauge is not supported by this mfd driver and is supported by a
    seperated driver of MAX17042 Fuel Gauge (yes, the fuel gauge part is
    compatible with MAX17042).

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Reviewed-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    MyungJoo Ham