ARM: mx31pdk: Add MC13783 RTC support
Subsystems (3)
PATCH 1/1 ARM: mx31pdk: Add MC13783 RTC support
MX31PDK board has a MC13783 PMIC, which provides RTC functionality.
Add support for it.
While at it, also use the generic MC13XXX flags.
--- arch/arm/mach-imx/mach-mx31_3ds.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-mx31_3ds.c +2 -1
@@ -494,7 +494,8 @@ static struct mc13xxx_platform_data mc13783_pdata = { .regulators = mx31_3ds_regulators, .num_regulators = ARRAY_SIZE(mx31_3ds_regulators), }, - .flags = MC13783_USE_REGULATOR | MC13783_USE_TOUCHSCREEN, + .flags = MC13XXX_USE_REGULATOR | MC13XXX_USE_TOUCHSCREEN | + MC13XXX_USE_RTC, };/* SPI */
Signature · 1 line
1.6.0.4
PATCH 1/1 ARM: mx31pdk: Add MC13783 RTC support
Hello Fabio,
arch/arm/mach-imx/mach-mx31_3ds.c static struct mc13xxx_platform_data mc13783_pdata = { · line 498
Quoted 11 lines · Fabio Estevam
arch/arm/mach-imx/mach-mx31_3ds.c +2
-1@@ -494,7 +494,8 @@ static struct mc13xxx_platform_data mc13783_pdata = { .regulators = mx31_3ds_regulators, .num_regulators = ARRAY_SIZE(mx31_3ds_regulators), }, - .flags = MC13783_USE_REGULATOR | MC13783_USE_TOUCHSCREEN, + .flags =MC13XXX_USE_REGULATOR |MC13XXX_USE_TOUCHSCREEN | + MC13XXX_USE_RTC,
ok in principle but (I think mfd in) next touches this already:
$ git show next/master:arch/arm/mach-imx/mach-mx31_3ds.c | grep USE_TOUCH .flags = MC13XXX_USE_TOUCHSCREEN,
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
Fabio Estevam
reviewerPATCH 1/1 ARM: mx31pdk: Add MC13783 RTC support
Hi Uwe,
2011/10/25 Uwe Kleine-K?nig <[email protected]>:
Quoted 7 lines
Quoted 3 lines
- ? ? .flags ?=
MC13783_USE_REGULATOR|MC13783_USE_TOUCHSCREEN,
+ ? ? .flags ?=MC13XXX_USE_REGULATOR|MC13XXX_USE_TOUCHSCREEN|
+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?MC13XXX_USE_RTC,ok in principle but (I think mfd in) next touches this already:
? ? ? ?$ git show next/master:arch/arm/mach-imx/mach-mx31_3ds.c | grep
USE_TOUCH? ? ? ? ? ? ? ?.flags ?=MC13XXX_USE_TOUCHSCREEN,
Ok, I will wait for this change to reach Sascha's tree first and then I will repost this patch.
Regards,
Fabio Estevam