linux_old1/include/linux/mfd/samsung
Krzysztof Kozlowski 8ae83b6f76 rtc: s5m: Make register configuration per S2MPS device to remove exceptions
Before updating time and alarm the driver must set appropriate mask in
UDR register. For that purpose the driver uses common register
configuration and a lot of exceptions per device in the code. The
exceptions are not obvious, for example except the change in the logic
sometimes the fields are swapped (WUDR and AUDR between S2MPS14 and
S2MPS15). This leads to quite complicated code.

Try to make it more obvious by:
1. Documenting the UDR masks for devices and operations.
2. Adding fields in register configuration structure for each operation
   (read time, write time and alarm).
3. Splitting the configuration per S2MPS13, S2MPS14 and S2MPS15 thus
   removing exceptions for them.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2016-01-11 20:21:55 +01:00
..
core.h mfd: sec: Add support for S2MPS15 PMIC 2015-11-23 10:33:16 +00:00
irq.h mfd: sec: Fix RTC alarm interrupt number on S2MPS11 2015-04-09 10:26:54 +01:00
rtc.h rtc: s5m: Make register configuration per S2MPS device to remove exceptions 2016-01-11 20:21:55 +01:00
s2mpa01.h regulator: s2mpxxx: Move regulator min/step voltages in common place 2014-08-16 16:51:16 -05:00
s2mps11.h mfd: s2mps11: Add manual shutdown method for Odroid XU3 2015-10-26 14:49:04 +00:00
s2mps13.h mfd: sec-core: Disable buck voltage reset on watchdog falling edge 2015-10-30 17:20:37 +00:00
s2mps14.h regulator: s2mpxxx: Move regulator min/step voltages in common place 2014-08-16 16:51:16 -05:00
s2mps15.h mfd: sec: Add support for S2MPS15 PMIC 2015-11-23 10:33:16 +00:00
s2mpu02.h mfd: sec-core: Add support for S2MPU02 device 2014-07-09 14:58:11 +01:00
s5m8763.h mfd: Modify samsung mfd header 2012-07-16 14:28:11 +02:00
s5m8767.h regulator: s5m8767: Use GPIO for controlling Buck9/eMMC 2014-01-27 20:24:17 +00:00