Commit 9299566c1d4fa25c69bf0f4b23abe02cb03d9039
Committed by
Tero Kristo
1 parent
691c76e7d8
ARM: DRA7: hwmod: Add data for DES IP
Adding hwmod data for DES. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Joel Fernandes <joelf@ti.com>
Showing 1 changed file with 37 additions and 0 deletions Side-by-side Diff
arch/arm/mach-omap2/omap_hwmod_7xx_data.c
... | ... | @@ -2479,6 +2479,34 @@ |
2479 | 2479 | }, |
2480 | 2480 | }; |
2481 | 2481 | |
2482 | +/* DES (the 'P' (public) device) */ | |
2483 | +static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = { | |
2484 | + .rev_offs = 0x0030, | |
2485 | + .sysc_offs = 0x0034, | |
2486 | + .syss_offs = 0x0038, | |
2487 | + .sysc_flags = SYSS_HAS_RESET_STATUS, | |
2488 | +}; | |
2489 | + | |
2490 | +static struct omap_hwmod_class dra7xx_des_hwmod_class = { | |
2491 | + .name = "des", | |
2492 | + .sysc = &dra7xx_des_sysc, | |
2493 | +}; | |
2494 | + | |
2495 | +/* DES */ | |
2496 | +static struct omap_hwmod dra7xx_des_hwmod = { | |
2497 | + .name = "des", | |
2498 | + .class = &dra7xx_des_hwmod_class, | |
2499 | + .clkdm_name = "l4sec_clkdm", | |
2500 | + .main_clk = "l3_iclk_div", | |
2501 | + .prcm = { | |
2502 | + .omap4 = { | |
2503 | + .clkctrl_offs = DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET, | |
2504 | + .context_offs = DRA7XX_RM_L4SEC_DES3DES_CONTEXT_OFFSET, | |
2505 | + .modulemode = MODULEMODE_HWCTRL, | |
2506 | + }, | |
2507 | + }, | |
2508 | +}; | |
2509 | + | |
2482 | 2510 | /* |
2483 | 2511 | * 'usb_otg_ss' class |
2484 | 2512 | * |
... | ... | @@ -3623,6 +3651,14 @@ |
3623 | 3651 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
3624 | 3652 | }; |
3625 | 3653 | |
3654 | +/* l4_per1 -> des */ | |
3655 | +static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = { | |
3656 | + .master = &dra7xx_l4_per1_hwmod, | |
3657 | + .slave = &dra7xx_des_hwmod, | |
3658 | + .clk = "l3_iclk_div", | |
3659 | + .user = OCP_USER_MPU | OCP_USER_SDMA, | |
3660 | +}; | |
3661 | + | |
3626 | 3662 | /* l4_per2 -> uart8 */ |
3627 | 3663 | static struct omap_hwmod_ocp_if dra7xx_l4_per2__uart8 = { |
3628 | 3664 | .master = &dra7xx_l4_per2_hwmod, |
... | ... | @@ -3832,6 +3868,7 @@ |
3832 | 3868 | &dra7xx_l4_per2__uart8, |
3833 | 3869 | &dra7xx_l4_per2__uart9, |
3834 | 3870 | &dra7xx_l4_wkup__uart10, |
3871 | + &dra7xx_l4_per1__des, | |
3835 | 3872 | &dra7xx_l4_per3__usb_otg_ss1, |
3836 | 3873 | &dra7xx_l4_per3__usb_otg_ss2, |
3837 | 3874 | &dra7xx_l4_per3__usb_otg_ss3, |