aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_43xx_data.c33
-rw-r--r--arch/arm/mach-omap2/prcm43xx.h1
2 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
index 61f2f301d739..3f7dac067897 100644
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -442,6 +442,31 @@ static struct omap_hwmod am43xx_adc_tsc_hwmod = {
442 }, 442 },
443}; 443};
444 444
445static struct omap_hwmod_class_sysconfig am43xx_des_sysc = {
446 .rev_offs = 0x30,
447 .sysc_offs = 0x34,
448 .syss_offs = 0x38,
449 .sysc_flags = SYSS_HAS_RESET_STATUS,
450};
451
452static struct omap_hwmod_class am43xx_des_hwmod_class = {
453 .name = "des",
454 .sysc = &am43xx_des_sysc,
455};
456
457static struct omap_hwmod am43xx_des_hwmod = {
458 .name = "des",
459 .class = &am43xx_des_hwmod_class,
460 .clkdm_name = "l3_clkdm",
461 .main_clk = "l3_gclk",
462 .prcm = {
463 .omap4 = {
464 .clkctrl_offs = AM43XX_CM_PER_DES_CLKCTRL_OFFSET,
465 .modulemode = MODULEMODE_SWCTRL,
466 },
467 },
468};
469
445/* dss */ 470/* dss */
446 471
447static struct omap_hwmod am43xx_dss_core_hwmod = { 472static struct omap_hwmod am43xx_dss_core_hwmod = {
@@ -870,6 +895,13 @@ static struct omap_hwmod_ocp_if am43xx_l4_ls__vpfe1 = {
870 .user = OCP_USER_MPU | OCP_USER_SDMA, 895 .user = OCP_USER_MPU | OCP_USER_SDMA,
871}; 896};
872 897
898static struct omap_hwmod_ocp_if am43xx_l3_main__des = {
899 .master = &am33xx_l3_main_hwmod,
900 .slave = &am43xx_des_hwmod,
901 .clk = "l3_gclk",
902 .user = OCP_USER_MPU,
903};
904
873static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = { 905static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
874 &am33xx_l4_wkup__synctimer, 906 &am33xx_l4_wkup__synctimer,
875 &am43xx_l4_ls__timer8, 907 &am43xx_l4_ls__timer8,
@@ -950,6 +982,7 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
950 &am33xx_cpgmac0__mdio, 982 &am33xx_cpgmac0__mdio,
951 &am33xx_l3_main__sha0, 983 &am33xx_l3_main__sha0,
952 &am33xx_l3_main__aes0, 984 &am33xx_l3_main__aes0,
985 &am43xx_l3_main__des,
953 &am43xx_l4_ls__ocp2scp0, 986 &am43xx_l4_ls__ocp2scp0,
954 &am43xx_l4_ls__ocp2scp1, 987 &am43xx_l4_ls__ocp2scp1,
955 &am43xx_l3_s__usbotgss0, 988 &am43xx_l3_s__usbotgss0,
diff --git a/arch/arm/mach-omap2/prcm43xx.h b/arch/arm/mach-omap2/prcm43xx.h
index babb5db5a3a4..416968545e89 100644
--- a/arch/arm/mach-omap2/prcm43xx.h
+++ b/arch/arm/mach-omap2/prcm43xx.h
@@ -133,6 +133,7 @@
133#define AM43XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET 0x0050 133#define AM43XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET 0x0050
134#define AM43XX_CM_PER_SHA0_CLKCTRL_OFFSET 0x0058 134#define AM43XX_CM_PER_SHA0_CLKCTRL_OFFSET 0x0058
135#define AM43XX_CM_PER_AES0_CLKCTRL_OFFSET 0x0028 135#define AM43XX_CM_PER_AES0_CLKCTRL_OFFSET 0x0028
136#define AM43XX_CM_PER_DES_CLKCTRL_OFFSET 0x0030
136#define AM43XX_CM_PER_TIMER8_CLKCTRL_OFFSET 0x0560 137#define AM43XX_CM_PER_TIMER8_CLKCTRL_OFFSET 0x0560
137#define AM43XX_CM_PER_TIMER9_CLKCTRL_OFFSET 0x0568 138#define AM43XX_CM_PER_TIMER9_CLKCTRL_OFFSET 0x0568
138#define AM43XX_CM_PER_TIMER10_CLKCTRL_OFFSET 0x0570 139#define AM43XX_CM_PER_TIMER10_CLKCTRL_OFFSET 0x0570