|
26 | 26 | #define CLKCTRL(oh, clkctrl) ((oh).prcm.omap4.clkctrl_offs = (clkctrl)) |
27 | 27 | #define RSTCTRL(oh, rstctrl) ((oh).prcm.omap4.rstctrl_offs = (rstctrl)) |
28 | 28 | #define RSTST(oh, rstst) ((oh).prcm.omap4.rstst_offs = (rstst)) |
29 | | -#define PRCM_FLAGS(oh, flag) ((oh).prcm.omap4.flags = (flag)) |
30 | 29 |
|
31 | 30 | /* |
32 | 31 | * 'l3' class |
@@ -274,47 +273,12 @@ struct omap_hwmod am33xx_gpmc_hwmod = { |
274 | 273 | }, |
275 | 274 | }; |
276 | 275 |
|
277 | | - |
278 | | -/* |
279 | | - * 'rtc' class |
280 | | - * rtc subsystem |
281 | | - */ |
282 | | -static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = { |
283 | | - .rev_offs = 0x0074, |
284 | | - .sysc_offs = 0x0078, |
285 | | - .sysc_flags = SYSC_HAS_SIDLEMODE, |
286 | | - .idlemodes = (SIDLE_FORCE | SIDLE_NO | |
287 | | - SIDLE_SMART | SIDLE_SMART_WKUP), |
288 | | - .sysc_fields = &omap_hwmod_sysc_type3, |
289 | | -}; |
290 | | - |
291 | | -static struct omap_hwmod_class am33xx_rtc_hwmod_class = { |
292 | | - .name = "rtc", |
293 | | - .sysc = &am33xx_rtc_sysc, |
294 | | - .unlock = &omap_hwmod_rtc_unlock, |
295 | | - .lock = &omap_hwmod_rtc_lock, |
296 | | -}; |
297 | | - |
298 | | -struct omap_hwmod am33xx_rtc_hwmod = { |
299 | | - .name = "rtc", |
300 | | - .class = &am33xx_rtc_hwmod_class, |
301 | | - .clkdm_name = "l4_rtc_clkdm", |
302 | | - .main_clk = "clk_32768_ck", |
303 | | - .prcm = { |
304 | | - .omap4 = { |
305 | | - .modulemode = MODULEMODE_SWCTRL, |
306 | | - }, |
307 | | - }, |
308 | | -}; |
309 | | - |
310 | 276 | static void omap_hwmod_am33xx_clkctrl(void) |
311 | 277 | { |
312 | 278 | CLKCTRL(am33xx_smartreflex0_hwmod, |
313 | 279 | AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET); |
314 | 280 | CLKCTRL(am33xx_smartreflex1_hwmod, |
315 | 281 | AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET); |
316 | | - CLKCTRL(am33xx_rtc_hwmod, AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET); |
317 | | - PRCM_FLAGS(am33xx_rtc_hwmod, HWMOD_OMAP4_ZERO_CLKCTRL_OFFSET); |
318 | 282 | CLKCTRL(am33xx_gpmc_hwmod, AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET); |
319 | 283 | CLKCTRL(am33xx_l4_ls_hwmod, AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET); |
320 | 284 | CLKCTRL(am33xx_l4_wkup_hwmod, AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET); |
@@ -343,7 +307,6 @@ static void omap_hwmod_am43xx_clkctrl(void) |
343 | 307 | AM43XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET); |
344 | 308 | CLKCTRL(am33xx_smartreflex1_hwmod, |
345 | 309 | AM43XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET); |
346 | | - CLKCTRL(am33xx_rtc_hwmod, AM43XX_CM_RTC_RTC_CLKCTRL_OFFSET); |
347 | 310 | CLKCTRL(am33xx_gpmc_hwmod, AM43XX_CM_PER_GPMC_CLKCTRL_OFFSET); |
348 | 311 | CLKCTRL(am33xx_l4_ls_hwmod, AM43XX_CM_PER_L4LS_CLKCTRL_OFFSET); |
349 | 312 | CLKCTRL(am33xx_l4_wkup_hwmod, AM43XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET); |
|
0 commit comments