* [PATCH] fsl_soc : add support for m41t81 rtc chip
@ 2008-04-09 22:22 Philippe De Muyter
2008-04-09 22:37 ` Olof Johansson
2008-04-09 22:42 ` Philippe De Muyter
0 siblings, 2 replies; 3+ messages in thread
From: Philippe De Muyter @ 2008-04-09 22:22 UTC (permalink / raw)
To: linuxppc-dev
Hello everybody,
Here is small patch allowing to use a m41t81 rtc chip on a FSL_SOC based
board.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
--- a/arch/powerpc/sysdev/fsl_soc.c 2008-03-21 14:53:41.000000000 +0000
+++ b/arch/powerpc/sysdev/fsl_soc.c 2008-03-26 12:08:25.000000000 +0000
@@ -405,7 +405,10 @@
{"dallas,ds1339", "rtc-ds1307", "ds1339",},
{"dallas,ds1340", "rtc-ds1307", "ds1340",},
{"stm,m41t00", "rtc-ds1307", "m41t00"},
+#ifdef CONFIG_RTC_DRV_M41T80
+ {"stm,m41t81", "rtc-m41t80", "m41t81"},
+#endif
{"dallas,ds1374", "rtc-ds1374", "rtc-ds1374",},
};
static int __init of_find_i2c_driver(struct device_node *node,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fsl_soc : add support for m41t81 rtc chip
2008-04-09 22:22 [PATCH] fsl_soc : add support for m41t81 rtc chip Philippe De Muyter
@ 2008-04-09 22:37 ` Olof Johansson
2008-04-09 22:42 ` Philippe De Muyter
1 sibling, 0 replies; 3+ messages in thread
From: Olof Johansson @ 2008-04-09 22:37 UTC (permalink / raw)
To: Philippe De Muyter; +Cc: linuxppc-dev
Hi,
On Thu, Apr 10, 2008 at 12:22:52AM +0200, Philippe De Muyter wrote:
> Hello everybody,
>
> Here is small patch allowing to use a m41t81 rtc chip on a FSL_SOC based
> board.
>
> Signed-off-by: Philippe De Muyter <phdm@macqel.be>
>
> --- a/arch/powerpc/sysdev/fsl_soc.c 2008-03-21 14:53:41.000000000 +0000
> +++ b/arch/powerpc/sysdev/fsl_soc.c 2008-03-26 12:08:25.000000000 +0000
> @@ -405,7 +405,10 @@
> {"dallas,ds1339", "rtc-ds1307", "ds1339",},
> {"dallas,ds1340", "rtc-ds1307", "ds1340",},
> {"stm,m41t00", "rtc-ds1307", "m41t00"},
> +#ifdef CONFIG_RTC_DRV_M41T80
> + {"stm,m41t81", "rtc-m41t80", "m41t81"},
> +#endif
Don't add ifdef here. It doesn't hurt to have it in the table even if
the driver is not enabled.
-Olof
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] fsl_soc : add support for m41t81 rtc chip
2008-04-09 22:22 [PATCH] fsl_soc : add support for m41t81 rtc chip Philippe De Muyter
2008-04-09 22:37 ` Olof Johansson
@ 2008-04-09 22:42 ` Philippe De Muyter
1 sibling, 0 replies; 3+ messages in thread
From: Philippe De Muyter @ 2008-04-09 22:42 UTC (permalink / raw)
To: linuxppc-dev
Hello everybody,
Here is small patch allowing to use a m41t81 rtc chip on a FSL_SOC based
board.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
--
I have removed the ifdef as pointed by Olof
--- a/arch/powerpc/sysdev/fsl_soc.c 2008-03-21 14:53:41.000000000 +0000
+++ b/arch/powerpc/sysdev/fsl_soc.c 2008-03-26 12:08:25.000000000 +0000
@@ -405,7 +405,8 @@
{"dallas,ds1339", "rtc-ds1307", "ds1339",},
{"dallas,ds1340", "rtc-ds1307", "ds1340",},
{"stm,m41t00", "rtc-ds1307", "m41t00"},
+ {"stm,m41t81", "rtc-m41t80", "m41t81"},
{"dallas,ds1374", "rtc-ds1374", "rtc-ds1374",},
};
static int __init of_find_i2c_driver(struct device_node *node,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-09 22:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-09 22:22 [PATCH] fsl_soc : add support for m41t81 rtc chip Philippe De Muyter
2008-04-09 22:37 ` Olof Johansson
2008-04-09 22:42 ` Philippe De Muyter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox