diff options
author | Ziyan <jaraidaniel@gmail.com> | 2016-05-01 12:38:38 +0200 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-05-01 12:38:38 +0200 |
commit | ed0a6ab995aa229db85be69d28584b179bba01ab (patch) | |
tree | 65ad83a5e92bc44bbb75dcd75600f7267b450958 /include/linux/i2c | |
parent | 1cd5dbf5a4112a4debad48900d094c4e996d5ca1 (diff) | |
download | kernel_samsung_espresso10-ed0a6ab995aa229db85be69d28584b179bba01ab.zip kernel_samsung_espresso10-ed0a6ab995aa229db85be69d28584b179bba01ab.tar.gz kernel_samsung_espresso10-ed0a6ab995aa229db85be69d28584b179bba01ab.tar.bz2 |
rtc: twl: add ability to configure RTC compensation via pdata
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/twl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 941f776..24addbe 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h @@ -27,6 +27,7 @@ #include <linux/types.h> #include <linux/input/matrix_keypad.h> +#include <linux/rtc.h> /* * Using the twl4030 core we address registers using a pair @@ -814,6 +815,11 @@ struct twl4030_codec_data { int (*set_ext_clk32k)(bool on); }; +struct twl4030_rtc_data { + unsigned int auto_comp; + s16 comp_value; +}; + struct twl4030_platform_data { unsigned irq_base, irq_end; struct twl4030_clock_init_data *clock; @@ -823,6 +829,7 @@ struct twl4030_platform_data { struct twl4030_keypad_data *keypad; struct twl4030_usb_data *usb; struct twl4030_power_data *power; + struct twl4030_rtc_data *rtc; struct twl4030_codec_data *codec; /* Common LDO regulators for TWL4030/TWL6030 */ |