Skip to contentSkip to conversation

fsl_soc : add support for m41t81 rtc chip

PATCH In review Philippe De Muyter 2 participants 3 messages Apr 9, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsl_soc : add support for m41t81 rtc chip

Hello everybody,

Here is small patch allowing to use a m41t81 rtc chip on a FSL_SOC based board.

arch/powerpc/sysdev/fsl_soc.c +3 -0
@@ -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,
#1 lore raw

Hi,

Quoted 10 lines · Philippe De Muyter

Hello everybody,

Here is small patch allowing to use a m41t81 rtc chip on a FSL_SOC based board.

arch/powerpc/sysdev/fsl_soc.c line 410

Quoted 6 lines
arch/powerpc/sysdev/fsl_soc.c +3 -0
@@ -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

#2 lore raw

PATCH 1/1 fsl_soc : add support for m41t81 rtc chip

In reply to Philippe De Muyter

Hello everybody,

Here is small patch allowing to use a m41t81 rtc chip on a FSL_SOC based board.

--

I have removed the ifdef as pointed by Olof

arch/powerpc/sysdev/fsl_soc.c +1 -0
@@ -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,