diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2007-11-08 14:37:06 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-11-20 16:39:54 -0500 |
commit | 27f49807d79cf44642f98cb7854729836340d98d (patch) | |
tree | 1e7c7d50dba76d68f3f6681830b2d11352fe72ba /arch/powerpc/platforms/83xx | |
parent | 0b47759db54f82df68ed179ddc5cb2becea56158 (diff) |
[POWERPC] 8xxx: MDS board RTC fixes
Now the rtc class ds1374 driver has been added, remove the old rtc
driver hookup code, add rtc node to device trees, and turn on the
new driver in the defconfigs.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_mds.c | 24 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_mds.c | 24 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_mds.c | 24 |
3 files changed, 0 insertions, 72 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_mds.c b/arch/powerpc/platforms/83xx/mpc832x_mds.c index 9e3bfcca1cea..39ee7a13b25a 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc832x_mds.c | |||
@@ -146,30 +146,6 @@ static void __init mpc832x_sys_init_IRQ(void) | |||
146 | #endif /* CONFIG_QUICC_ENGINE */ | 146 | #endif /* CONFIG_QUICC_ENGINE */ |
147 | } | 147 | } |
148 | 148 | ||
149 | #if defined(CONFIG_I2C_MPC) && defined(CONFIG_SENSORS_DS1374) | ||
150 | extern ulong ds1374_get_rtc_time(void); | ||
151 | extern int ds1374_set_rtc_time(ulong); | ||
152 | |||
153 | static int __init mpc832x_rtc_hookup(void) | ||
154 | { | ||
155 | struct timespec tv; | ||
156 | |||
157 | if (!machine_is(mpc832x_mds)) | ||
158 | return 0; | ||
159 | |||
160 | ppc_md.get_rtc_time = ds1374_get_rtc_time; | ||
161 | ppc_md.set_rtc_time = ds1374_set_rtc_time; | ||
162 | |||
163 | tv.tv_nsec = 0; | ||
164 | tv.tv_sec = (ppc_md.get_rtc_time) (); | ||
165 | do_settimeofday(&tv); | ||
166 | |||
167 | return 0; | ||
168 | } | ||
169 | |||
170 | late_initcall(mpc832x_rtc_hookup); | ||
171 | #endif | ||
172 | |||
173 | /* | 149 | /* |
174 | * Called very early, MMU is off, device-tree isn't unflattened | 150 | * Called very early, MMU is off, device-tree isn't unflattened |
175 | */ | 151 | */ |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index 00aed7c2269e..a81bb3ce6b94 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -106,30 +106,6 @@ static void __init mpc834x_mds_init_IRQ(void) | |||
106 | ipic_set_default_priority(); | 106 | ipic_set_default_priority(); |
107 | } | 107 | } |
108 | 108 | ||
109 | #if defined(CONFIG_I2C_MPC) && defined(CONFIG_SENSORS_DS1374) | ||
110 | extern ulong ds1374_get_rtc_time(void); | ||
111 | extern int ds1374_set_rtc_time(ulong); | ||
112 | |||
113 | static int __init mpc834x_rtc_hookup(void) | ||
114 | { | ||
115 | struct timespec tv; | ||
116 | |||
117 | if (!machine_is(mpc834x_mds)) | ||
118 | return 0; | ||
119 | |||
120 | ppc_md.get_rtc_time = ds1374_get_rtc_time; | ||
121 | ppc_md.set_rtc_time = ds1374_set_rtc_time; | ||
122 | |||
123 | tv.tv_nsec = 0; | ||
124 | tv.tv_sec = (ppc_md.get_rtc_time) (); | ||
125 | do_settimeofday(&tv); | ||
126 | |||
127 | return 0; | ||
128 | } | ||
129 | |||
130 | late_initcall(mpc834x_rtc_hookup); | ||
131 | #endif | ||
132 | |||
133 | /* | 109 | /* |
134 | * Called very early, MMU is off, device-tree isn't unflattened | 110 | * Called very early, MMU is off, device-tree isn't unflattened |
135 | */ | 111 | */ |
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c index 0a722601a2f0..e40012f8f488 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c | |||
@@ -177,30 +177,6 @@ static void __init mpc836x_mds_init_IRQ(void) | |||
177 | #endif /* CONFIG_QUICC_ENGINE */ | 177 | #endif /* CONFIG_QUICC_ENGINE */ |
178 | } | 178 | } |
179 | 179 | ||
180 | #if defined(CONFIG_I2C_MPC) && defined(CONFIG_SENSORS_DS1374) | ||
181 | extern ulong ds1374_get_rtc_time(void); | ||
182 | extern int ds1374_set_rtc_time(ulong); | ||
183 | |||
184 | static int __init mpc8360_rtc_hookup(void) | ||
185 | { | ||
186 | struct timespec tv; | ||
187 | |||
188 | if (!machine_is(mpc836x_mds)) | ||
189 | return 0; | ||
190 | |||
191 | ppc_md.get_rtc_time = ds1374_get_rtc_time; | ||
192 | ppc_md.set_rtc_time = ds1374_set_rtc_time; | ||
193 | |||
194 | tv.tv_nsec = 0; | ||
195 | tv.tv_sec = (ppc_md.get_rtc_time) (); | ||
196 | do_settimeofday(&tv); | ||
197 | |||
198 | return 0; | ||
199 | } | ||
200 | |||
201 | late_initcall(mpc8360_rtc_hookup); | ||
202 | #endif | ||
203 | |||
204 | /* | 180 | /* |
205 | * Called very early, MMU is off, device-tree isn't unflattened | 181 | * Called very early, MMU is off, device-tree isn't unflattened |
206 | */ | 182 | */ |