diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2014-07-22 15:15:57 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-07-22 16:35:06 -0400 |
commit | c913c8a15a02e91c1f0302d68bebf66838a9689d (patch) | |
tree | 2184fede6d6023f0fe0780416307a768b47063c7 /arch | |
parent | 077c42f75ee309330a11d9437b4166601e4f2cd3 (diff) |
ARM: DRA7: hwmod: Add data for RTC
Add hwmod data for RTC
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: updated to apply]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 6cf7b6ff154f..83d19d32bbd0 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | |||
@@ -1390,6 +1390,38 @@ static struct omap_hwmod dra7xx_qspi_hwmod = { | |||
1390 | }; | 1390 | }; |
1391 | 1391 | ||
1392 | /* | 1392 | /* |
1393 | * 'rtcss' class | ||
1394 | * | ||
1395 | */ | ||
1396 | static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = { | ||
1397 | .sysc_offs = 0x0078, | ||
1398 | .sysc_flags = SYSC_HAS_SIDLEMODE, | ||
1399 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | | ||
1400 | SIDLE_SMART_WKUP), | ||
1401 | .sysc_fields = &omap_hwmod_sysc_type3, | ||
1402 | }; | ||
1403 | |||
1404 | static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = { | ||
1405 | .name = "rtcss", | ||
1406 | .sysc = &dra7xx_rtcss_sysc, | ||
1407 | }; | ||
1408 | |||
1409 | /* rtcss */ | ||
1410 | static struct omap_hwmod dra7xx_rtcss_hwmod = { | ||
1411 | .name = "rtcss", | ||
1412 | .class = &dra7xx_rtcss_hwmod_class, | ||
1413 | .clkdm_name = "rtc_clkdm", | ||
1414 | .main_clk = "sys_32k_ck", | ||
1415 | .prcm = { | ||
1416 | .omap4 = { | ||
1417 | .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET, | ||
1418 | .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET, | ||
1419 | .modulemode = MODULEMODE_SWCTRL, | ||
1420 | }, | ||
1421 | }, | ||
1422 | }; | ||
1423 | |||
1424 | /* | ||
1393 | * 'sata' class | 1425 | * 'sata' class |
1394 | * | 1426 | * |
1395 | */ | 1427 | */ |
@@ -2554,6 +2586,14 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = { | |||
2554 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2586 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2555 | }; | 2587 | }; |
2556 | 2588 | ||
2589 | /* l4_per3 -> rtcss */ | ||
2590 | static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = { | ||
2591 | .master = &dra7xx_l4_per3_hwmod, | ||
2592 | .slave = &dra7xx_rtcss_hwmod, | ||
2593 | .clk = "l4_root_clk_div", | ||
2594 | .user = OCP_USER_MPU | OCP_USER_SDMA, | ||
2595 | }; | ||
2596 | |||
2557 | static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = { | 2597 | static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = { |
2558 | { | 2598 | { |
2559 | .name = "sysc", | 2599 | .name = "sysc", |
@@ -2892,6 +2932,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { | |||
2892 | &dra7xx_l4_cfg__pcie1_phy, | 2932 | &dra7xx_l4_cfg__pcie1_phy, |
2893 | &dra7xx_l4_cfg__pcie2_phy, | 2933 | &dra7xx_l4_cfg__pcie2_phy, |
2894 | &dra7xx_l3_main_1__qspi, | 2934 | &dra7xx_l3_main_1__qspi, |
2935 | &dra7xx_l4_per3__rtcss, | ||
2895 | &dra7xx_l4_cfg__sata, | 2936 | &dra7xx_l4_cfg__sata, |
2896 | &dra7xx_l4_cfg__smartreflex_core, | 2937 | &dra7xx_l4_cfg__smartreflex_core, |
2897 | &dra7xx_l4_cfg__smartreflex_mpu, | 2938 | &dra7xx_l4_cfg__smartreflex_mpu, |