• M
    mfd: Support LP3974 RTC · 337ce5d1
    MyungJoo Ham 提交于
    The first releases of LP3974 have a large delay in RTC registers,
    which requires 2 seconds of delay after writing to a rtc register
    (recommended by National Semiconductor's engineers)
    before reading it.
    
    If "rtc_delay" field of the platform data is true, the rtc driver
    assumes that such delays are required. Although we have not seen
    LP3974s without requiring such delays, we assume that such LP3974s
    will be released soon (or they have done so already) and they are
    supported by "lp3974" without setting "rtc_delay" at the platform
    data.
    
    This patch adds delays with msleep when writing values to RTC registers
    if the platform data has rtc_delay set.
    Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
    Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
    Reviewed-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
    337ce5d1
max8998.c 8.3 KB