aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVaibhav Bedia <vaibhav.bedia@ti.com>2013-01-29 06:15:02 -0500
committerPaul Walmsley <paul@pwsan.com>2013-02-08 09:24:42 -0500
commitca903b6f98281d694b2ae8deec1330d4f392a67d (patch)
treef70c674043be51b6c593192aa8bf1d77fcd5dcfb
parent1a7cb4d9c37143ca75567ee4dc10608059c610dc (diff)
ARM: OMAP2+: AM33XX: hwmod: Register OCMC RAM hwmod
OCMC RAM lies in the PER power domain and this memory support retention. Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_33xx_data.c47
1 files changed, 27 insertions, 20 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
index 646c14d9fdb9..8280f1162e68 100644
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
@@ -414,7 +414,6 @@ static struct omap_hwmod am33xx_adc_tsc_hwmod = {
414 * - cEFUSE (doesn't fall under any ocp_if) 414 * - cEFUSE (doesn't fall under any ocp_if)
415 * - clkdiv32k 415 * - clkdiv32k
416 * - debugss 416 * - debugss
417 * - ocmc ram
418 * - ocp watch point 417 * - ocp watch point
419 * - aes0 418 * - aes0
420 * - sha0 419 * - sha0
@@ -481,25 +480,6 @@ static struct omap_hwmod am33xx_debugss_hwmod = {
481 }, 480 },
482}; 481};
483 482
484/* ocmcram */
485static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
486 .name = "ocmcram",
487};
488
489static struct omap_hwmod am33xx_ocmcram_hwmod = {
490 .name = "ocmcram",
491 .class = &am33xx_ocmcram_hwmod_class,
492 .clkdm_name = "l3_clkdm",
493 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
494 .main_clk = "l3_gclk",
495 .prcm = {
496 .omap4 = {
497 .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
498 .modulemode = MODULEMODE_SWCTRL,
499 },
500 },
501};
502
503/* ocpwp */ 483/* ocpwp */
504static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = { 484static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = {
505 .name = "ocpwp", 485 .name = "ocpwp",
@@ -570,6 +550,25 @@ static struct omap_hwmod am33xx_sha0_hwmod = {
570 550
571#endif 551#endif
572 552
553/* ocmcram */
554static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
555 .name = "ocmcram",
556};
557
558static struct omap_hwmod am33xx_ocmcram_hwmod = {
559 .name = "ocmcram",
560 .class = &am33xx_ocmcram_hwmod_class,
561 .clkdm_name = "l3_clkdm",
562 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
563 .main_clk = "l3_gclk",
564 .prcm = {
565 .omap4 = {
566 .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET,
567 .modulemode = MODULEMODE_SWCTRL,
568 },
569 },
570};
571
573/* 'smartreflex' class */ 572/* 'smartreflex' class */
574static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = { 573static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = {
575 .name = "smartreflex", 574 .name = "smartreflex",
@@ -3328,6 +3327,13 @@ static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = {
3328 .flags = OCPIF_SWSUP_IDLE, 3327 .flags = OCPIF_SWSUP_IDLE,
3329}; 3328};
3330 3329
3330/* l3 main -> ocmc */
3331static struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
3332 .master = &am33xx_l3_main_hwmod,
3333 .slave = &am33xx_ocmcram_hwmod,
3334 .user = OCP_USER_MPU | OCP_USER_SDMA,
3335};
3336
3331static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = { 3337static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
3332 &am33xx_l4_fw__emif_fw, 3338 &am33xx_l4_fw__emif_fw,
3333 &am33xx_l3_main__emif, 3339 &am33xx_l3_main__emif,
@@ -3398,6 +3404,7 @@ static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
3398 &am33xx_l3_main__tptc0, 3404 &am33xx_l3_main__tptc0,
3399 &am33xx_l3_main__tptc1, 3405 &am33xx_l3_main__tptc1,
3400 &am33xx_l3_main__tptc2, 3406 &am33xx_l3_main__tptc2,
3407 &am33xx_l3_main__ocmc,
3401 &am33xx_l3_s__usbss, 3408 &am33xx_l3_s__usbss,
3402 &am33xx_l4_hs__cpgmac0, 3409 &am33xx_l4_hs__cpgmac0,
3403 &am33xx_cpgmac0__mdio, 3410 &am33xx_cpgmac0__mdio,