14d38bd12STony Lindgren /* 24d38bd12STony Lindgren * DM81xx hwmod data. 34d38bd12STony Lindgren * 44d38bd12STony Lindgren * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ 54d38bd12STony Lindgren * Copyright (C) 2013 SKTB SKiT, http://www.skitlab.ru/ 64d38bd12STony Lindgren * 74d38bd12STony Lindgren * This program is free software; you can redistribute it and/or 84d38bd12STony Lindgren * modify it under the terms of the GNU General Public License as 94d38bd12STony Lindgren * published by the Free Software Foundation version 2. 104d38bd12STony Lindgren * 114d38bd12STony Lindgren * This program is distributed "as is" WITHOUT ANY WARRANTY of any 124d38bd12STony Lindgren * kind, whether express or implied; without even the implied warranty 134d38bd12STony Lindgren * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 144d38bd12STony Lindgren * GNU General Public License for more details. 154d38bd12STony Lindgren * 164d38bd12STony Lindgren */ 174d38bd12STony Lindgren 184d38bd12STony Lindgren #include <linux/platform_data/gpio-omap.h> 194d38bd12STony Lindgren #include <linux/platform_data/hsmmc-omap.h> 204d38bd12STony Lindgren #include <linux/platform_data/spi-omap2-mcspi.h> 214d38bd12STony Lindgren #include <plat/dmtimer.h> 224d38bd12STony Lindgren 234d38bd12STony Lindgren #include "omap_hwmod_common_data.h" 244d38bd12STony Lindgren #include "cm81xx.h" 254d38bd12STony Lindgren #include "ti81xx.h" 264d38bd12STony Lindgren #include "wd_timer.h" 274d38bd12STony Lindgren 284d38bd12STony Lindgren /* 294d38bd12STony Lindgren * DM816X hardware modules integration data 304d38bd12STony Lindgren * 314d38bd12STony Lindgren * Note: This is incomplete and at present, not generated from h/w database. 324d38bd12STony Lindgren */ 334d38bd12STony Lindgren 344d38bd12STony Lindgren /* 357e1b11d1STony Lindgren * Common alwon .clkctrl_offs from dm814x TRM "Table 2-278. CM_ALWON REGISTERS" 367e1b11d1STony Lindgren * also dm816x TRM 18.7.17 CM_ALWON device register values minus 0x1400. 374d38bd12STony Lindgren */ 387e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MCASP0_CLKCTRL 0x140 397e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MCASP1_CLKCTRL 0x144 407e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MCASP2_CLKCTRL 0x148 417e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MCBSP_CLKCTRL 0x14c 427e1b11d1STony Lindgren #define DM81XX_CM_ALWON_UART_0_CLKCTRL 0x150 437e1b11d1STony Lindgren #define DM81XX_CM_ALWON_UART_1_CLKCTRL 0x154 447e1b11d1STony Lindgren #define DM81XX_CM_ALWON_UART_2_CLKCTRL 0x158 457e1b11d1STony Lindgren #define DM81XX_CM_ALWON_GPIO_0_CLKCTRL 0x15c 467e1b11d1STony Lindgren #define DM81XX_CM_ALWON_GPIO_1_CLKCTRL 0x160 477e1b11d1STony Lindgren #define DM81XX_CM_ALWON_I2C_0_CLKCTRL 0x164 487e1b11d1STony Lindgren #define DM81XX_CM_ALWON_I2C_1_CLKCTRL 0x168 497e1b11d1STony Lindgren #define DM81XX_CM_ALWON_WDTIMER_CLKCTRL 0x18c 507e1b11d1STony Lindgren #define DM81XX_CM_ALWON_SPI_CLKCTRL 0x190 517e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MAILBOX_CLKCTRL 0x194 527e1b11d1STony Lindgren #define DM81XX_CM_ALWON_SPINBOX_CLKCTRL 0x198 537e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MMUDATA_CLKCTRL 0x19c 547e1b11d1STony Lindgren #define DM81XX_CM_ALWON_MMUCFG_CLKCTRL 0x1a8 557e1b11d1STony Lindgren #define DM81XX_CM_ALWON_CONTROL_CLKCTRL 0x1c4 567e1b11d1STony Lindgren #define DM81XX_CM_ALWON_GPMC_CLKCTRL 0x1d0 577e1b11d1STony Lindgren #define DM81XX_CM_ALWON_ETHERNET_0_CLKCTRL 0x1d4 587e1b11d1STony Lindgren #define DM81XX_CM_ALWON_L3_CLKCTRL 0x1e4 597e1b11d1STony Lindgren #define DM81XX_CM_ALWON_L4HS_CLKCTRL 0x1e8 607e1b11d1STony Lindgren #define DM81XX_CM_ALWON_L4LS_CLKCTRL 0x1ec 617e1b11d1STony Lindgren #define DM81XX_CM_ALWON_RTC_CLKCTRL 0x1f0 627e1b11d1STony Lindgren #define DM81XX_CM_ALWON_TPCC_CLKCTRL 0x1f4 637e1b11d1STony Lindgren #define DM81XX_CM_ALWON_TPTC0_CLKCTRL 0x1f8 647e1b11d1STony Lindgren #define DM81XX_CM_ALWON_TPTC1_CLKCTRL 0x1fc 657e1b11d1STony Lindgren #define DM81XX_CM_ALWON_TPTC2_CLKCTRL 0x200 667e1b11d1STony Lindgren #define DM81XX_CM_ALWON_TPTC3_CLKCTRL 0x204 677e1b11d1STony Lindgren 687e1b11d1STony Lindgren /* Registers specific to dm814x */ 697e1b11d1STony Lindgren #define DM814X_CM_ALWON_MCASP_3_4_5_CLKCTRL 0x16c 707e1b11d1STony Lindgren #define DM814X_CM_ALWON_ATL_CLKCTRL 0x170 717e1b11d1STony Lindgren #define DM814X_CM_ALWON_MLB_CLKCTRL 0x174 727e1b11d1STony Lindgren #define DM814X_CM_ALWON_PATA_CLKCTRL 0x178 737e1b11d1STony Lindgren #define DM814X_CM_ALWON_UART_3_CLKCTRL 0x180 747e1b11d1STony Lindgren #define DM814X_CM_ALWON_UART_4_CLKCTRL 0x184 757e1b11d1STony Lindgren #define DM814X_CM_ALWON_UART_5_CLKCTRL 0x188 767e1b11d1STony Lindgren #define DM814X_CM_ALWON_OCM_0_CLKCTRL 0x1b4 777e1b11d1STony Lindgren #define DM814X_CM_ALWON_VCP_CLKCTRL 0x1b8 787e1b11d1STony Lindgren #define DM814X_CM_ALWON_MPU_CLKCTRL 0x1dc 797e1b11d1STony Lindgren #define DM814X_CM_ALWON_DEBUGSS_CLKCTRL 0x1e0 807e1b11d1STony Lindgren #define DM814X_CM_ALWON_DCAN_0_1_CLKCTRL 0x218 817e1b11d1STony Lindgren #define DM814X_CM_ALWON_MMCHS_0_CLKCTRL 0x21c 827e1b11d1STony Lindgren #define DM814X_CM_ALWON_MMCHS_1_CLKCTRL 0x220 837e1b11d1STony Lindgren #define DM814X_CM_ALWON_MMCHS_2_CLKCTRL 0x224 847e1b11d1STony Lindgren #define DM814X_CM_ALWON_CUST_EFUSE_CLKCTRL 0x228 857e1b11d1STony Lindgren 867e1b11d1STony Lindgren /* Registers specific to dm816x */ 874d38bd12STony Lindgren #define DM816X_DM_ALWON_BASE 0x1400 884d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_1_CLKCTRL (0x1570 - DM816X_DM_ALWON_BASE) 894d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_2_CLKCTRL (0x1574 - DM816X_DM_ALWON_BASE) 904d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_3_CLKCTRL (0x1578 - DM816X_DM_ALWON_BASE) 914d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_4_CLKCTRL (0x157c - DM816X_DM_ALWON_BASE) 924d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_5_CLKCTRL (0x1580 - DM816X_DM_ALWON_BASE) 934d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_6_CLKCTRL (0x1584 - DM816X_DM_ALWON_BASE) 944d38bd12STony Lindgren #define DM816X_CM_ALWON_TIMER_7_CLKCTRL (0x1588 - DM816X_DM_ALWON_BASE) 954d38bd12STony Lindgren #define DM816X_CM_ALWON_SDIO_CLKCTRL (0x15b0 - DM816X_DM_ALWON_BASE) 964d38bd12STony Lindgren #define DM816X_CM_ALWON_OCMC_0_CLKCTRL (0x15b4 - DM816X_DM_ALWON_BASE) 974d38bd12STony Lindgren #define DM816X_CM_ALWON_OCMC_1_CLKCTRL (0x15b8 - DM816X_DM_ALWON_BASE) 984d38bd12STony Lindgren #define DM816X_CM_ALWON_ETHERNET_1_CLKCTRL (0x15d8 - DM816X_DM_ALWON_BASE) 994d38bd12STony Lindgren #define DM816X_CM_ALWON_MPU_CLKCTRL (0x15dc - DM816X_DM_ALWON_BASE) 1004d38bd12STony Lindgren #define DM816X_CM_ALWON_SR_0_CLKCTRL (0x1608 - DM816X_DM_ALWON_BASE) 1014d38bd12STony Lindgren #define DM816X_CM_ALWON_SR_1_CLKCTRL (0x160c - DM816X_DM_ALWON_BASE) 1024d38bd12STony Lindgren 1034d38bd12STony Lindgren /* 1044d38bd12STony Lindgren * The default .clkctrl_offs field is offset from CM_DEFAULT, that's 1054d38bd12STony Lindgren * TRM 18.7.6 CM_DEFAULT device register values minus 0x500 1064d38bd12STony Lindgren */ 1074d38bd12STony Lindgren #define DM816X_CM_DEFAULT_OFFSET 0x500 1084d38bd12STony Lindgren #define DM816X_CM_DEFAULT_USB_CLKCTRL (0x558 - DM816X_CM_DEFAULT_OFFSET) 1094d38bd12STony Lindgren 1104d38bd12STony Lindgren /* L3 Interconnect entries clocked at 125, 250 and 500MHz */ 1117e1b11d1STony Lindgren static struct omap_hwmod dm81xx_alwon_l3_slow_hwmod = { 1124d38bd12STony Lindgren .name = "alwon_l3_slow", 1134d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 1144d38bd12STony Lindgren .class = &l3_hwmod_class, 1154d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 1164d38bd12STony Lindgren }; 1174d38bd12STony Lindgren 1187e1b11d1STony Lindgren static struct omap_hwmod dm81xx_default_l3_slow_hwmod = { 1194d38bd12STony Lindgren .name = "default_l3_slow", 1204d38bd12STony Lindgren .clkdm_name = "default_l3_slow_clkdm", 1214d38bd12STony Lindgren .class = &l3_hwmod_class, 1224d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 1234d38bd12STony Lindgren }; 1244d38bd12STony Lindgren 1257e1b11d1STony Lindgren static struct omap_hwmod dm81xx_alwon_l3_med_hwmod = { 1264d38bd12STony Lindgren .name = "l3_med", 1274d38bd12STony Lindgren .clkdm_name = "alwon_l3_med_clkdm", 1284d38bd12STony Lindgren .class = &l3_hwmod_class, 1294d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 1304d38bd12STony Lindgren }; 1314d38bd12STony Lindgren 1327e1b11d1STony Lindgren static struct omap_hwmod dm81xx_alwon_l3_fast_hwmod = { 1334d38bd12STony Lindgren .name = "l3_fast", 1344d38bd12STony Lindgren .clkdm_name = "alwon_l3_fast_clkdm", 1354d38bd12STony Lindgren .class = &l3_hwmod_class, 1364d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 1374d38bd12STony Lindgren }; 1384d38bd12STony Lindgren 1394d38bd12STony Lindgren /* 1404d38bd12STony Lindgren * L4 standard peripherals, see TRM table 1-12 for devices using this. 1414d38bd12STony Lindgren * See TRM table 1-73 for devices using the 125MHz SYSCLK6 clock. 1424d38bd12STony Lindgren */ 1437e1b11d1STony Lindgren static struct omap_hwmod dm81xx_l4_ls_hwmod = { 1444d38bd12STony Lindgren .name = "l4_ls", 1454d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 1464d38bd12STony Lindgren .class = &l4_hwmod_class, 1474d38bd12STony Lindgren }; 1484d38bd12STony Lindgren 1494d38bd12STony Lindgren /* 1504d38bd12STony Lindgren * L4 high-speed peripherals. For devices using this, please see the TRM 1514d38bd12STony Lindgren * table 1-13. On dm816x, only EMAC, MDIO and SATA use this. See also TRM 1524d38bd12STony Lindgren * table 1-73 for devices using 250MHz SYSCLK5 clock. 1534d38bd12STony Lindgren */ 1547e1b11d1STony Lindgren static struct omap_hwmod dm81xx_l4_hs_hwmod = { 1554d38bd12STony Lindgren .name = "l4_hs", 1564d38bd12STony Lindgren .clkdm_name = "alwon_l3_med_clkdm", 1574d38bd12STony Lindgren .class = &l4_hwmod_class, 1584d38bd12STony Lindgren }; 1594d38bd12STony Lindgren 1604d38bd12STony Lindgren /* L3 slow -> L4 ls peripheral interface running at 125MHz */ 1617e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__l4_ls = { 1627e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_slow_hwmod, 1637e1b11d1STony Lindgren .slave = &dm81xx_l4_ls_hwmod, 1644d38bd12STony Lindgren .user = OCP_USER_MPU, 1654d38bd12STony Lindgren }; 1664d38bd12STony Lindgren 1674d38bd12STony Lindgren /* L3 med -> L4 fast peripheral interface running at 250MHz */ 1687e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__l4_hs = { 1697e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_med_hwmod, 1707e1b11d1STony Lindgren .slave = &dm81xx_l4_hs_hwmod, 1714d38bd12STony Lindgren .user = OCP_USER_MPU, 1724d38bd12STony Lindgren }; 1734d38bd12STony Lindgren 1744d38bd12STony Lindgren /* MPU */ 175*0f3ccb24STony Lindgren static struct omap_hwmod dm814x_mpu_hwmod = { 176*0f3ccb24STony Lindgren .name = "mpu", 177*0f3ccb24STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 178*0f3ccb24STony Lindgren .class = &mpu_hwmod_class, 179*0f3ccb24STony Lindgren .flags = HWMOD_INIT_NO_IDLE, 180*0f3ccb24STony Lindgren .main_clk = "mpu_ck", 181*0f3ccb24STony Lindgren .prcm = { 182*0f3ccb24STony Lindgren .omap4 = { 183*0f3ccb24STony Lindgren .clkctrl_offs = DM814X_CM_ALWON_MPU_CLKCTRL, 184*0f3ccb24STony Lindgren .modulemode = MODULEMODE_SWCTRL, 185*0f3ccb24STony Lindgren }, 186*0f3ccb24STony Lindgren }, 187*0f3ccb24STony Lindgren }; 188*0f3ccb24STony Lindgren 189*0f3ccb24STony Lindgren static struct omap_hwmod_ocp_if dm814x_mpu__alwon_l3_slow = { 190*0f3ccb24STony Lindgren .master = &dm814x_mpu_hwmod, 191*0f3ccb24STony Lindgren .slave = &dm81xx_alwon_l3_slow_hwmod, 192*0f3ccb24STony Lindgren .user = OCP_USER_MPU, 193*0f3ccb24STony Lindgren }; 194*0f3ccb24STony Lindgren 195*0f3ccb24STony Lindgren /* L3 med peripheral interface running at 200MHz */ 196*0f3ccb24STony Lindgren static struct omap_hwmod_ocp_if dm814x_mpu__alwon_l3_med = { 197*0f3ccb24STony Lindgren .master = &dm814x_mpu_hwmod, 198*0f3ccb24STony Lindgren .slave = &dm81xx_alwon_l3_med_hwmod, 199*0f3ccb24STony Lindgren .user = OCP_USER_MPU, 200*0f3ccb24STony Lindgren }; 201*0f3ccb24STony Lindgren 2024d38bd12STony Lindgren static struct omap_hwmod dm816x_mpu_hwmod = { 2034d38bd12STony Lindgren .name = "mpu", 2044d38bd12STony Lindgren .clkdm_name = "alwon_mpu_clkdm", 2054d38bd12STony Lindgren .class = &mpu_hwmod_class, 2064d38bd12STony Lindgren .flags = HWMOD_INIT_NO_IDLE, 2074d38bd12STony Lindgren .main_clk = "mpu_ck", 2084d38bd12STony Lindgren .prcm = { 2094d38bd12STony Lindgren .omap4 = { 2104d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_MPU_CLKCTRL, 2114d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 2124d38bd12STony Lindgren }, 2134d38bd12STony Lindgren }, 2144d38bd12STony Lindgren }; 2154d38bd12STony Lindgren 2164d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_mpu__alwon_l3_slow = { 2174d38bd12STony Lindgren .master = &dm816x_mpu_hwmod, 2187e1b11d1STony Lindgren .slave = &dm81xx_alwon_l3_slow_hwmod, 2194d38bd12STony Lindgren .user = OCP_USER_MPU, 2204d38bd12STony Lindgren }; 2214d38bd12STony Lindgren 2224d38bd12STony Lindgren /* L3 med peripheral interface running at 250MHz */ 2234d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_mpu__alwon_l3_med = { 2244d38bd12STony Lindgren .master = &dm816x_mpu_hwmod, 2257e1b11d1STony Lindgren .slave = &dm81xx_alwon_l3_med_hwmod, 2264d38bd12STony Lindgren .user = OCP_USER_MPU, 2274d38bd12STony Lindgren }; 2284d38bd12STony Lindgren 2294d38bd12STony Lindgren /* UART common */ 2304d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig uart_sysc = { 2314d38bd12STony Lindgren .rev_offs = 0x50, 2324d38bd12STony Lindgren .sysc_offs = 0x54, 2334d38bd12STony Lindgren .syss_offs = 0x58, 2344d38bd12STony Lindgren .sysc_flags = SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | 2354d38bd12STony Lindgren SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | 2364d38bd12STony Lindgren SYSS_HAS_RESET_STATUS, 2374d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | 2384d38bd12STony Lindgren MSTANDBY_SMART_WKUP, 2394d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 2404d38bd12STony Lindgren }; 2414d38bd12STony Lindgren 2424d38bd12STony Lindgren static struct omap_hwmod_class uart_class = { 2434d38bd12STony Lindgren .name = "uart", 2444d38bd12STony Lindgren .sysc = &uart_sysc, 2454d38bd12STony Lindgren }; 2464d38bd12STony Lindgren 2477e1b11d1STony Lindgren static struct omap_hwmod dm81xx_uart1_hwmod = { 2484d38bd12STony Lindgren .name = "uart1", 2494d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 2504d38bd12STony Lindgren .main_clk = "sysclk10_ck", 2514d38bd12STony Lindgren .prcm = { 2524d38bd12STony Lindgren .omap4 = { 2537e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_UART_0_CLKCTRL, 2544d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 2554d38bd12STony Lindgren }, 2564d38bd12STony Lindgren }, 2574d38bd12STony Lindgren .class = &uart_class, 2584d38bd12STony Lindgren .flags = DEBUG_TI81XXUART1_FLAGS, 2594d38bd12STony Lindgren }; 2604d38bd12STony Lindgren 2617e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__uart1 = { 2627e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 2637e1b11d1STony Lindgren .slave = &dm81xx_uart1_hwmod, 2644d38bd12STony Lindgren .clk = "sysclk6_ck", 2654d38bd12STony Lindgren .user = OCP_USER_MPU, 2664d38bd12STony Lindgren }; 2674d38bd12STony Lindgren 2687e1b11d1STony Lindgren static struct omap_hwmod dm81xx_uart2_hwmod = { 2694d38bd12STony Lindgren .name = "uart2", 2704d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 2714d38bd12STony Lindgren .main_clk = "sysclk10_ck", 2724d38bd12STony Lindgren .prcm = { 2734d38bd12STony Lindgren .omap4 = { 2747e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_UART_1_CLKCTRL, 2754d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 2764d38bd12STony Lindgren }, 2774d38bd12STony Lindgren }, 2784d38bd12STony Lindgren .class = &uart_class, 2794d38bd12STony Lindgren .flags = DEBUG_TI81XXUART2_FLAGS, 2804d38bd12STony Lindgren }; 2814d38bd12STony Lindgren 2827e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__uart2 = { 2837e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 2847e1b11d1STony Lindgren .slave = &dm81xx_uart2_hwmod, 2854d38bd12STony Lindgren .clk = "sysclk6_ck", 2864d38bd12STony Lindgren .user = OCP_USER_MPU, 2874d38bd12STony Lindgren }; 2884d38bd12STony Lindgren 2897e1b11d1STony Lindgren static struct omap_hwmod dm81xx_uart3_hwmod = { 2904d38bd12STony Lindgren .name = "uart3", 2914d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 2924d38bd12STony Lindgren .main_clk = "sysclk10_ck", 2934d38bd12STony Lindgren .prcm = { 2944d38bd12STony Lindgren .omap4 = { 2957e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_UART_2_CLKCTRL, 2964d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 2974d38bd12STony Lindgren }, 2984d38bd12STony Lindgren }, 2994d38bd12STony Lindgren .class = &uart_class, 3004d38bd12STony Lindgren .flags = DEBUG_TI81XXUART3_FLAGS, 3014d38bd12STony Lindgren }; 3024d38bd12STony Lindgren 3037e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__uart3 = { 3047e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 3057e1b11d1STony Lindgren .slave = &dm81xx_uart3_hwmod, 3064d38bd12STony Lindgren .clk = "sysclk6_ck", 3074d38bd12STony Lindgren .user = OCP_USER_MPU, 3084d38bd12STony Lindgren }; 3094d38bd12STony Lindgren 3104d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig wd_timer_sysc = { 3114d38bd12STony Lindgren .rev_offs = 0x0, 3124d38bd12STony Lindgren .sysc_offs = 0x10, 3134d38bd12STony Lindgren .syss_offs = 0x14, 3144d38bd12STony Lindgren .sysc_flags = SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET | 3154d38bd12STony Lindgren SYSS_HAS_RESET_STATUS, 3164d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 3174d38bd12STony Lindgren }; 3184d38bd12STony Lindgren 3194d38bd12STony Lindgren static struct omap_hwmod_class wd_timer_class = { 3204d38bd12STony Lindgren .name = "wd_timer", 3214d38bd12STony Lindgren .sysc = &wd_timer_sysc, 3224d38bd12STony Lindgren .pre_shutdown = &omap2_wd_timer_disable, 3234d38bd12STony Lindgren .reset = &omap2_wd_timer_reset, 3244d38bd12STony Lindgren }; 3254d38bd12STony Lindgren 3267e1b11d1STony Lindgren static struct omap_hwmod dm81xx_wd_timer_hwmod = { 3274d38bd12STony Lindgren .name = "wd_timer", 3284d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 3294d38bd12STony Lindgren .main_clk = "sysclk18_ck", 3304d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 3314d38bd12STony Lindgren .prcm = { 3324d38bd12STony Lindgren .omap4 = { 3337e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_WDTIMER_CLKCTRL, 3344d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 3354d38bd12STony Lindgren }, 3364d38bd12STony Lindgren }, 3374d38bd12STony Lindgren .class = &wd_timer_class, 3384d38bd12STony Lindgren }; 3394d38bd12STony Lindgren 3407e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__wd_timer1 = { 3417e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 3427e1b11d1STony Lindgren .slave = &dm81xx_wd_timer_hwmod, 3434d38bd12STony Lindgren .clk = "sysclk6_ck", 3444d38bd12STony Lindgren .user = OCP_USER_MPU, 3454d38bd12STony Lindgren }; 3464d38bd12STony Lindgren 3474d38bd12STony Lindgren /* I2C common */ 3484d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig i2c_sysc = { 3494d38bd12STony Lindgren .rev_offs = 0x0, 3504d38bd12STony Lindgren .sysc_offs = 0x10, 3514d38bd12STony Lindgren .syss_offs = 0x90, 3524d38bd12STony Lindgren .sysc_flags = SYSC_HAS_SIDLEMODE | 3534d38bd12STony Lindgren SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | 3544d38bd12STony Lindgren SYSC_HAS_AUTOIDLE, 3554d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, 3564d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 3574d38bd12STony Lindgren }; 3584d38bd12STony Lindgren 3594d38bd12STony Lindgren static struct omap_hwmod_class i2c_class = { 3604d38bd12STony Lindgren .name = "i2c", 3614d38bd12STony Lindgren .sysc = &i2c_sysc, 3624d38bd12STony Lindgren }; 3634d38bd12STony Lindgren 3644d38bd12STony Lindgren static struct omap_hwmod dm81xx_i2c1_hwmod = { 3654d38bd12STony Lindgren .name = "i2c1", 3664d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 3674d38bd12STony Lindgren .main_clk = "sysclk10_ck", 3684d38bd12STony Lindgren .prcm = { 3694d38bd12STony Lindgren .omap4 = { 3707e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_I2C_0_CLKCTRL, 3714d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 3724d38bd12STony Lindgren }, 3734d38bd12STony Lindgren }, 3744d38bd12STony Lindgren .class = &i2c_class, 3754d38bd12STony Lindgren }; 3764d38bd12STony Lindgren 3777e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__i2c1 = { 3787e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 3794d38bd12STony Lindgren .slave = &dm81xx_i2c1_hwmod, 3804d38bd12STony Lindgren .clk = "sysclk6_ck", 3814d38bd12STony Lindgren .user = OCP_USER_MPU, 3824d38bd12STony Lindgren }; 3834d38bd12STony Lindgren 3847e1b11d1STony Lindgren static struct omap_hwmod dm81xx_i2c2_hwmod = { 3854d38bd12STony Lindgren .name = "i2c2", 3864d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 3874d38bd12STony Lindgren .main_clk = "sysclk10_ck", 3884d38bd12STony Lindgren .prcm = { 3894d38bd12STony Lindgren .omap4 = { 3907e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_I2C_1_CLKCTRL, 3914d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 3924d38bd12STony Lindgren }, 3934d38bd12STony Lindgren }, 3944d38bd12STony Lindgren .class = &i2c_class, 3954d38bd12STony Lindgren }; 3964d38bd12STony Lindgren 3974d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm81xx_elm_sysc = { 3984d38bd12STony Lindgren .rev_offs = 0x0000, 3994d38bd12STony Lindgren .sysc_offs = 0x0010, 4004d38bd12STony Lindgren .syss_offs = 0x0014, 4014d38bd12STony Lindgren .sysc_flags = SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | 4024d38bd12STony Lindgren SYSC_HAS_SOFTRESET | 4034d38bd12STony Lindgren SYSS_HAS_RESET_STATUS, 4044d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, 4054d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 4064d38bd12STony Lindgren }; 4074d38bd12STony Lindgren 4087e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__i2c2 = { 4097e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 4107e1b11d1STony Lindgren .slave = &dm81xx_i2c2_hwmod, 4114d38bd12STony Lindgren .clk = "sysclk6_ck", 4124d38bd12STony Lindgren .user = OCP_USER_MPU, 4134d38bd12STony Lindgren }; 4144d38bd12STony Lindgren 4154d38bd12STony Lindgren static struct omap_hwmod_class dm81xx_elm_hwmod_class = { 4164d38bd12STony Lindgren .name = "elm", 4174d38bd12STony Lindgren .sysc = &dm81xx_elm_sysc, 4184d38bd12STony Lindgren }; 4194d38bd12STony Lindgren 4204d38bd12STony Lindgren static struct omap_hwmod dm81xx_elm_hwmod = { 4214d38bd12STony Lindgren .name = "elm", 4224d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 4234d38bd12STony Lindgren .class = &dm81xx_elm_hwmod_class, 4244d38bd12STony Lindgren .main_clk = "sysclk6_ck", 4254d38bd12STony Lindgren }; 4264d38bd12STony Lindgren 4274d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__elm = { 4287e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 4294d38bd12STony Lindgren .slave = &dm81xx_elm_hwmod, 4304d38bd12STony Lindgren .user = OCP_USER_MPU, 4314d38bd12STony Lindgren }; 4324d38bd12STony Lindgren 4334d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm81xx_gpio_sysc = { 4344d38bd12STony Lindgren .rev_offs = 0x0000, 4354d38bd12STony Lindgren .sysc_offs = 0x0010, 4364d38bd12STony Lindgren .syss_offs = 0x0114, 4374d38bd12STony Lindgren .sysc_flags = SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP | 4384d38bd12STony Lindgren SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | 4394d38bd12STony Lindgren SYSS_HAS_RESET_STATUS, 4404d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | 4414d38bd12STony Lindgren SIDLE_SMART_WKUP, 4424d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 4434d38bd12STony Lindgren }; 4444d38bd12STony Lindgren 4454d38bd12STony Lindgren static struct omap_hwmod_class dm81xx_gpio_hwmod_class = { 4464d38bd12STony Lindgren .name = "gpio", 4474d38bd12STony Lindgren .sysc = &dm81xx_gpio_sysc, 4484d38bd12STony Lindgren .rev = 2, 4494d38bd12STony Lindgren }; 4504d38bd12STony Lindgren 4514d38bd12STony Lindgren static struct omap_gpio_dev_attr gpio_dev_attr = { 4524d38bd12STony Lindgren .bank_width = 32, 4534d38bd12STony Lindgren .dbck_flag = true, 4544d38bd12STony Lindgren }; 4554d38bd12STony Lindgren 4564d38bd12STony Lindgren static struct omap_hwmod_opt_clk gpio1_opt_clks[] = { 4574d38bd12STony Lindgren { .role = "dbclk", .clk = "sysclk18_ck" }, 4584d38bd12STony Lindgren }; 4594d38bd12STony Lindgren 4604d38bd12STony Lindgren static struct omap_hwmod dm81xx_gpio1_hwmod = { 4614d38bd12STony Lindgren .name = "gpio1", 4624d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 4634d38bd12STony Lindgren .class = &dm81xx_gpio_hwmod_class, 4644d38bd12STony Lindgren .main_clk = "sysclk6_ck", 4654d38bd12STony Lindgren .prcm = { 4664d38bd12STony Lindgren .omap4 = { 4677e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_GPIO_0_CLKCTRL, 4684d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 4694d38bd12STony Lindgren }, 4704d38bd12STony Lindgren }, 4714d38bd12STony Lindgren .opt_clks = gpio1_opt_clks, 4724d38bd12STony Lindgren .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks), 4734d38bd12STony Lindgren .dev_attr = &gpio_dev_attr, 4744d38bd12STony Lindgren }; 4754d38bd12STony Lindgren 4764d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio1 = { 4777e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 4784d38bd12STony Lindgren .slave = &dm81xx_gpio1_hwmod, 4794d38bd12STony Lindgren .user = OCP_USER_MPU, 4804d38bd12STony Lindgren }; 4814d38bd12STony Lindgren 4824d38bd12STony Lindgren static struct omap_hwmod_opt_clk gpio2_opt_clks[] = { 4834d38bd12STony Lindgren { .role = "dbclk", .clk = "sysclk18_ck" }, 4844d38bd12STony Lindgren }; 4854d38bd12STony Lindgren 4864d38bd12STony Lindgren static struct omap_hwmod dm81xx_gpio2_hwmod = { 4874d38bd12STony Lindgren .name = "gpio2", 4884d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 4894d38bd12STony Lindgren .class = &dm81xx_gpio_hwmod_class, 4904d38bd12STony Lindgren .main_clk = "sysclk6_ck", 4914d38bd12STony Lindgren .prcm = { 4924d38bd12STony Lindgren .omap4 = { 4937e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_GPIO_1_CLKCTRL, 4944d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 4954d38bd12STony Lindgren }, 4964d38bd12STony Lindgren }, 4974d38bd12STony Lindgren .opt_clks = gpio2_opt_clks, 4984d38bd12STony Lindgren .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks), 4994d38bd12STony Lindgren .dev_attr = &gpio_dev_attr, 5004d38bd12STony Lindgren }; 5014d38bd12STony Lindgren 5024d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio2 = { 5037e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 5044d38bd12STony Lindgren .slave = &dm81xx_gpio2_hwmod, 5054d38bd12STony Lindgren .user = OCP_USER_MPU, 5064d38bd12STony Lindgren }; 5074d38bd12STony Lindgren 5084d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm81xx_gpmc_sysc = { 5094d38bd12STony Lindgren .rev_offs = 0x0, 5104d38bd12STony Lindgren .sysc_offs = 0x10, 5114d38bd12STony Lindgren .syss_offs = 0x14, 5124d38bd12STony Lindgren .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | 5134d38bd12STony Lindgren SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS, 5144d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, 5154d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 5164d38bd12STony Lindgren }; 5174d38bd12STony Lindgren 5184d38bd12STony Lindgren static struct omap_hwmod_class dm81xx_gpmc_hwmod_class = { 5194d38bd12STony Lindgren .name = "gpmc", 5204d38bd12STony Lindgren .sysc = &dm81xx_gpmc_sysc, 5214d38bd12STony Lindgren }; 5224d38bd12STony Lindgren 5234d38bd12STony Lindgren static struct omap_hwmod dm81xx_gpmc_hwmod = { 5244d38bd12STony Lindgren .name = "gpmc", 5254d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 5264d38bd12STony Lindgren .class = &dm81xx_gpmc_hwmod_class, 5274d38bd12STony Lindgren .main_clk = "sysclk6_ck", 52863aa945bSTony Lindgren /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */ 52963aa945bSTony Lindgren .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS, 5304d38bd12STony Lindgren .prcm = { 5314d38bd12STony Lindgren .omap4 = { 5327e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_GPMC_CLKCTRL, 5334d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 5344d38bd12STony Lindgren }, 5354d38bd12STony Lindgren }, 5364d38bd12STony Lindgren }; 5374d38bd12STony Lindgren 5384d38bd12STony Lindgren struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__gpmc = { 5397e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_slow_hwmod, 5404d38bd12STony Lindgren .slave = &dm81xx_gpmc_hwmod, 5414d38bd12STony Lindgren .user = OCP_USER_MPU, 5424d38bd12STony Lindgren }; 5434d38bd12STony Lindgren 5444d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm81xx_usbhsotg_sysc = { 5454d38bd12STony Lindgren .rev_offs = 0x0, 5464d38bd12STony Lindgren .sysc_offs = 0x10, 5474d38bd12STony Lindgren .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | 5484d38bd12STony Lindgren SYSC_HAS_SOFTRESET, 5494d38bd12STony Lindgren .idlemodes = SIDLE_SMART | MSTANDBY_FORCE | MSTANDBY_SMART, 5504d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type2, 5514d38bd12STony Lindgren }; 5524d38bd12STony Lindgren 5534d38bd12STony Lindgren static struct omap_hwmod_class dm81xx_usbotg_class = { 5544d38bd12STony Lindgren .name = "usbotg", 5554d38bd12STony Lindgren .sysc = &dm81xx_usbhsotg_sysc, 5564d38bd12STony Lindgren }; 5574d38bd12STony Lindgren 5584d38bd12STony Lindgren static struct omap_hwmod dm81xx_usbss_hwmod = { 5594d38bd12STony Lindgren .name = "usb_otg_hs", 5604d38bd12STony Lindgren .clkdm_name = "default_l3_slow_clkdm", 5614d38bd12STony Lindgren .main_clk = "sysclk6_ck", 5624d38bd12STony Lindgren .prcm = { 5634d38bd12STony Lindgren .omap4 = { 5644d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_DEFAULT_USB_CLKCTRL, 5654d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 5664d38bd12STony Lindgren }, 5674d38bd12STony Lindgren }, 5684d38bd12STony Lindgren .class = &dm81xx_usbotg_class, 5694d38bd12STony Lindgren }; 5704d38bd12STony Lindgren 5714d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm81xx_default_l3_slow__usbss = { 5727e1b11d1STony Lindgren .master = &dm81xx_default_l3_slow_hwmod, 5734d38bd12STony Lindgren .slave = &dm81xx_usbss_hwmod, 5744d38bd12STony Lindgren .clk = "sysclk6_ck", 5754d38bd12STony Lindgren .user = OCP_USER_MPU, 5764d38bd12STony Lindgren }; 5774d38bd12STony Lindgren 5784d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm816x_timer_sysc = { 5794d38bd12STony Lindgren .rev_offs = 0x0000, 5804d38bd12STony Lindgren .sysc_offs = 0x0010, 5814d38bd12STony Lindgren .syss_offs = 0x0014, 5824d38bd12STony Lindgren .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET, 5834d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | 5844d38bd12STony Lindgren SIDLE_SMART_WKUP, 5854d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type2, 5864d38bd12STony Lindgren }; 5874d38bd12STony Lindgren 5884d38bd12STony Lindgren static struct omap_hwmod_class dm816x_timer_hwmod_class = { 5894d38bd12STony Lindgren .name = "timer", 5904d38bd12STony Lindgren .sysc = &dm816x_timer_sysc, 5914d38bd12STony Lindgren }; 5924d38bd12STony Lindgren 5934d38bd12STony Lindgren static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = { 5944d38bd12STony Lindgren .timer_capability = OMAP_TIMER_ALWON, 5954d38bd12STony Lindgren }; 5964d38bd12STony Lindgren 597*0f3ccb24STony Lindgren static struct omap_hwmod dm814x_timer1_hwmod = { 598*0f3ccb24STony Lindgren .name = "timer1", 599*0f3ccb24STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 600*0f3ccb24STony Lindgren .main_clk = "timer_sys_ck", 601*0f3ccb24STony Lindgren .dev_attr = &capability_alwon_dev_attr, 602*0f3ccb24STony Lindgren .class = &dm816x_timer_hwmod_class, 603*0f3ccb24STony Lindgren .flags = HWMOD_NO_IDLEST, 604*0f3ccb24STony Lindgren }; 605*0f3ccb24STony Lindgren 606*0f3ccb24STony Lindgren static struct omap_hwmod_ocp_if dm814x_l4_ls__timer1 = { 607*0f3ccb24STony Lindgren .master = &dm81xx_l4_ls_hwmod, 608*0f3ccb24STony Lindgren .slave = &dm814x_timer1_hwmod, 609*0f3ccb24STony Lindgren .clk = "timer_sys_ck", 610*0f3ccb24STony Lindgren .user = OCP_USER_MPU, 611*0f3ccb24STony Lindgren }; 612*0f3ccb24STony Lindgren 6134d38bd12STony Lindgren static struct omap_hwmod dm816x_timer1_hwmod = { 6144d38bd12STony Lindgren .name = "timer1", 6154d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 6164d38bd12STony Lindgren .main_clk = "timer1_fck", 6174d38bd12STony Lindgren .prcm = { 6184d38bd12STony Lindgren .omap4 = { 6194d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_1_CLKCTRL, 6204d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 6214d38bd12STony Lindgren }, 6224d38bd12STony Lindgren }, 6234d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 6244d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 6254d38bd12STony Lindgren }; 6264d38bd12STony Lindgren 6274d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer1 = { 6287e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 6294d38bd12STony Lindgren .slave = &dm816x_timer1_hwmod, 6304d38bd12STony Lindgren .clk = "sysclk6_ck", 6314d38bd12STony Lindgren .user = OCP_USER_MPU, 6324d38bd12STony Lindgren }; 6334d38bd12STony Lindgren 634*0f3ccb24STony Lindgren static struct omap_hwmod dm814x_timer2_hwmod = { 635*0f3ccb24STony Lindgren .name = "timer2", 636*0f3ccb24STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 637*0f3ccb24STony Lindgren .main_clk = "timer_sys_ck", 638*0f3ccb24STony Lindgren .dev_attr = &capability_alwon_dev_attr, 639*0f3ccb24STony Lindgren .class = &dm816x_timer_hwmod_class, 640*0f3ccb24STony Lindgren .flags = HWMOD_NO_IDLEST, 641*0f3ccb24STony Lindgren }; 642*0f3ccb24STony Lindgren 643*0f3ccb24STony Lindgren static struct omap_hwmod_ocp_if dm814x_l4_ls__timer2 = { 644*0f3ccb24STony Lindgren .master = &dm81xx_l4_ls_hwmod, 645*0f3ccb24STony Lindgren .slave = &dm814x_timer2_hwmod, 646*0f3ccb24STony Lindgren .clk = "timer_sys_ck", 647*0f3ccb24STony Lindgren .user = OCP_USER_MPU, 648*0f3ccb24STony Lindgren }; 649*0f3ccb24STony Lindgren 6504d38bd12STony Lindgren static struct omap_hwmod dm816x_timer2_hwmod = { 6514d38bd12STony Lindgren .name = "timer2", 6524d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 6534d38bd12STony Lindgren .main_clk = "timer2_fck", 6544d38bd12STony Lindgren .prcm = { 6554d38bd12STony Lindgren .omap4 = { 6564d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_2_CLKCTRL, 6574d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 6584d38bd12STony Lindgren }, 6594d38bd12STony Lindgren }, 6604d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 6614d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 6624d38bd12STony Lindgren }; 6634d38bd12STony Lindgren 6644d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer2 = { 6657e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 6664d38bd12STony Lindgren .slave = &dm816x_timer2_hwmod, 6674d38bd12STony Lindgren .clk = "sysclk6_ck", 6684d38bd12STony Lindgren .user = OCP_USER_MPU, 6694d38bd12STony Lindgren }; 6704d38bd12STony Lindgren 6714d38bd12STony Lindgren static struct omap_hwmod dm816x_timer3_hwmod = { 6724d38bd12STony Lindgren .name = "timer3", 6734d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 6744d38bd12STony Lindgren .main_clk = "timer3_fck", 6754d38bd12STony Lindgren .prcm = { 6764d38bd12STony Lindgren .omap4 = { 6774d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_3_CLKCTRL, 6784d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 6794d38bd12STony Lindgren }, 6804d38bd12STony Lindgren }, 6814d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 6824d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 6834d38bd12STony Lindgren }; 6844d38bd12STony Lindgren 6854d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer3 = { 6867e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 6874d38bd12STony Lindgren .slave = &dm816x_timer3_hwmod, 6884d38bd12STony Lindgren .clk = "sysclk6_ck", 6894d38bd12STony Lindgren .user = OCP_USER_MPU, 6904d38bd12STony Lindgren }; 6914d38bd12STony Lindgren 6924d38bd12STony Lindgren static struct omap_hwmod dm816x_timer4_hwmod = { 6934d38bd12STony Lindgren .name = "timer4", 6944d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 6954d38bd12STony Lindgren .main_clk = "timer4_fck", 6964d38bd12STony Lindgren .prcm = { 6974d38bd12STony Lindgren .omap4 = { 6984d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_4_CLKCTRL, 6994d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 7004d38bd12STony Lindgren }, 7014d38bd12STony Lindgren }, 7024d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 7034d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 7044d38bd12STony Lindgren }; 7054d38bd12STony Lindgren 7064d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer4 = { 7077e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 7084d38bd12STony Lindgren .slave = &dm816x_timer4_hwmod, 7094d38bd12STony Lindgren .clk = "sysclk6_ck", 7104d38bd12STony Lindgren .user = OCP_USER_MPU, 7114d38bd12STony Lindgren }; 7124d38bd12STony Lindgren 7134d38bd12STony Lindgren static struct omap_hwmod dm816x_timer5_hwmod = { 7144d38bd12STony Lindgren .name = "timer5", 7154d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 7164d38bd12STony Lindgren .main_clk = "timer5_fck", 7174d38bd12STony Lindgren .prcm = { 7184d38bd12STony Lindgren .omap4 = { 7194d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_5_CLKCTRL, 7204d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 7214d38bd12STony Lindgren }, 7224d38bd12STony Lindgren }, 7234d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 7244d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 7254d38bd12STony Lindgren }; 7264d38bd12STony Lindgren 7274d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer5 = { 7287e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 7294d38bd12STony Lindgren .slave = &dm816x_timer5_hwmod, 7304d38bd12STony Lindgren .clk = "sysclk6_ck", 7314d38bd12STony Lindgren .user = OCP_USER_MPU, 7324d38bd12STony Lindgren }; 7334d38bd12STony Lindgren 7344d38bd12STony Lindgren static struct omap_hwmod dm816x_timer6_hwmod = { 7354d38bd12STony Lindgren .name = "timer6", 7364d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 7374d38bd12STony Lindgren .main_clk = "timer6_fck", 7384d38bd12STony Lindgren .prcm = { 7394d38bd12STony Lindgren .omap4 = { 7404d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_6_CLKCTRL, 7414d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 7424d38bd12STony Lindgren }, 7434d38bd12STony Lindgren }, 7444d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 7454d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 7464d38bd12STony Lindgren }; 7474d38bd12STony Lindgren 7484d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer6 = { 7497e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 7504d38bd12STony Lindgren .slave = &dm816x_timer6_hwmod, 7514d38bd12STony Lindgren .clk = "sysclk6_ck", 7524d38bd12STony Lindgren .user = OCP_USER_MPU, 7534d38bd12STony Lindgren }; 7544d38bd12STony Lindgren 7554d38bd12STony Lindgren static struct omap_hwmod dm816x_timer7_hwmod = { 7564d38bd12STony Lindgren .name = "timer7", 7574d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 7584d38bd12STony Lindgren .main_clk = "timer7_fck", 7594d38bd12STony Lindgren .prcm = { 7604d38bd12STony Lindgren .omap4 = { 7614d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_TIMER_7_CLKCTRL, 7624d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 7634d38bd12STony Lindgren }, 7644d38bd12STony Lindgren }, 7654d38bd12STony Lindgren .dev_attr = &capability_alwon_dev_attr, 7664d38bd12STony Lindgren .class = &dm816x_timer_hwmod_class, 7674d38bd12STony Lindgren }; 7684d38bd12STony Lindgren 7694d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__timer7 = { 7707e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 7714d38bd12STony Lindgren .slave = &dm816x_timer7_hwmod, 7724d38bd12STony Lindgren .clk = "sysclk6_ck", 7734d38bd12STony Lindgren .user = OCP_USER_MPU, 7744d38bd12STony Lindgren }; 7754d38bd12STony Lindgren 776*0f3ccb24STony Lindgren /* CPSW on dm814x */ 777*0f3ccb24STony Lindgren static struct omap_hwmod_class_sysconfig dm814x_cpgmac_sysc = { 778*0f3ccb24STony Lindgren .rev_offs = 0x0, 779*0f3ccb24STony Lindgren .sysc_offs = 0x8, 780*0f3ccb24STony Lindgren .syss_offs = 0x4, 781*0f3ccb24STony Lindgren .sysc_flags = SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | 782*0f3ccb24STony Lindgren SYSS_HAS_RESET_STATUS, 783*0f3ccb24STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE | 784*0f3ccb24STony Lindgren MSTANDBY_NO, 785*0f3ccb24STony Lindgren .sysc_fields = &omap_hwmod_sysc_type3, 786*0f3ccb24STony Lindgren }; 787*0f3ccb24STony Lindgren 788*0f3ccb24STony Lindgren static struct omap_hwmod_class dm814x_cpgmac0_hwmod_class = { 789*0f3ccb24STony Lindgren .name = "cpgmac0", 790*0f3ccb24STony Lindgren .sysc = &dm814x_cpgmac_sysc, 791*0f3ccb24STony Lindgren }; 792*0f3ccb24STony Lindgren 793*0f3ccb24STony Lindgren struct omap_hwmod dm814x_cpgmac0_hwmod = { 794*0f3ccb24STony Lindgren .name = "cpgmac0", 795*0f3ccb24STony Lindgren .class = &dm814x_cpgmac0_hwmod_class, 796*0f3ccb24STony Lindgren .clkdm_name = "alwon_ethernet_clkdm", 797*0f3ccb24STony Lindgren .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY, 798*0f3ccb24STony Lindgren .main_clk = "cpsw_125mhz_gclk", 799*0f3ccb24STony Lindgren .prcm = { 800*0f3ccb24STony Lindgren .omap4 = { 801*0f3ccb24STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_ETHERNET_0_CLKCTRL, 802*0f3ccb24STony Lindgren .modulemode = MODULEMODE_SWCTRL, 803*0f3ccb24STony Lindgren }, 804*0f3ccb24STony Lindgren }, 805*0f3ccb24STony Lindgren }; 806*0f3ccb24STony Lindgren 807*0f3ccb24STony Lindgren static struct omap_hwmod_class dm814x_mdio_hwmod_class = { 808*0f3ccb24STony Lindgren .name = "davinci_mdio", 809*0f3ccb24STony Lindgren }; 810*0f3ccb24STony Lindgren 811*0f3ccb24STony Lindgren struct omap_hwmod dm814x_mdio_hwmod = { 812*0f3ccb24STony Lindgren .name = "davinci_mdio", 813*0f3ccb24STony Lindgren .class = &dm814x_mdio_hwmod_class, 814*0f3ccb24STony Lindgren .clkdm_name = "alwon_ethernet_clkdm", 815*0f3ccb24STony Lindgren .main_clk = "cpsw_125mhz_gclk", 816*0f3ccb24STony Lindgren }; 817*0f3ccb24STony Lindgren 818*0f3ccb24STony Lindgren static struct omap_hwmod_ocp_if dm814x_l4_hs__cpgmac0 = { 819*0f3ccb24STony Lindgren .master = &dm81xx_l4_hs_hwmod, 820*0f3ccb24STony Lindgren .slave = &dm814x_cpgmac0_hwmod, 821*0f3ccb24STony Lindgren .clk = "cpsw_125mhz_gclk", 822*0f3ccb24STony Lindgren .user = OCP_USER_MPU, 823*0f3ccb24STony Lindgren }; 824*0f3ccb24STony Lindgren 825*0f3ccb24STony Lindgren struct omap_hwmod_ocp_if dm814x_cpgmac0__mdio = { 826*0f3ccb24STony Lindgren .master = &dm814x_cpgmac0_hwmod, 827*0f3ccb24STony Lindgren .slave = &dm814x_mdio_hwmod, 828*0f3ccb24STony Lindgren .user = OCP_USER_MPU, 829*0f3ccb24STony Lindgren .flags = HWMOD_NO_IDLEST, 830*0f3ccb24STony Lindgren }; 831*0f3ccb24STony Lindgren 8324d38bd12STony Lindgren /* EMAC Ethernet */ 8334d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm816x_emac_sysc = { 8344d38bd12STony Lindgren .rev_offs = 0x0, 8354d38bd12STony Lindgren .sysc_offs = 0x4, 8364d38bd12STony Lindgren .sysc_flags = SYSC_HAS_SOFTRESET, 8374d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type2, 8384d38bd12STony Lindgren }; 8394d38bd12STony Lindgren 8404d38bd12STony Lindgren static struct omap_hwmod_class dm816x_emac_hwmod_class = { 8414d38bd12STony Lindgren .name = "emac", 8424d38bd12STony Lindgren .sysc = &dm816x_emac_sysc, 8434d38bd12STony Lindgren }; 8444d38bd12STony Lindgren 8454d38bd12STony Lindgren /* 8464d38bd12STony Lindgren * On dm816x the MDIO is within EMAC0. As the MDIO driver is a separate 8474d38bd12STony Lindgren * driver probed before EMAC0, we let MDIO do the clock idling. 8484d38bd12STony Lindgren */ 8494d38bd12STony Lindgren static struct omap_hwmod dm816x_emac0_hwmod = { 8504d38bd12STony Lindgren .name = "emac0", 8514d38bd12STony Lindgren .clkdm_name = "alwon_ethernet_clkdm", 8524d38bd12STony Lindgren .class = &dm816x_emac_hwmod_class, 8534d38bd12STony Lindgren }; 8544d38bd12STony Lindgren 8557e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_hs__emac0 = { 8567e1b11d1STony Lindgren .master = &dm81xx_l4_hs_hwmod, 8574d38bd12STony Lindgren .slave = &dm816x_emac0_hwmod, 8584d38bd12STony Lindgren .clk = "sysclk5_ck", 8594d38bd12STony Lindgren .user = OCP_USER_MPU, 8604d38bd12STony Lindgren }; 8614d38bd12STony Lindgren 8627e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_mdio_hwmod_class = { 8634d38bd12STony Lindgren .name = "davinci_mdio", 8644d38bd12STony Lindgren .sysc = &dm816x_emac_sysc, 8654d38bd12STony Lindgren }; 8664d38bd12STony Lindgren 8677e1b11d1STony Lindgren struct omap_hwmod dm81xx_emac0_mdio_hwmod = { 8684d38bd12STony Lindgren .name = "davinci_mdio", 8697e1b11d1STony Lindgren .class = &dm81xx_mdio_hwmod_class, 8704d38bd12STony Lindgren .clkdm_name = "alwon_ethernet_clkdm", 8714d38bd12STony Lindgren .main_clk = "sysclk24_ck", 8724d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 8734d38bd12STony Lindgren /* 8744d38bd12STony Lindgren * REVISIT: This should be moved to the emac0_hwmod 8754d38bd12STony Lindgren * once we have a better way to handle device slaves. 8764d38bd12STony Lindgren */ 8774d38bd12STony Lindgren .prcm = { 8784d38bd12STony Lindgren .omap4 = { 8797e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_ETHERNET_0_CLKCTRL, 8804d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 8814d38bd12STony Lindgren }, 8824d38bd12STony Lindgren }, 8834d38bd12STony Lindgren }; 8844d38bd12STony Lindgren 8857e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_emac0__mdio = { 8867e1b11d1STony Lindgren .master = &dm81xx_l4_hs_hwmod, 8877e1b11d1STony Lindgren .slave = &dm81xx_emac0_mdio_hwmod, 8884d38bd12STony Lindgren .user = OCP_USER_MPU, 8894d38bd12STony Lindgren }; 8904d38bd12STony Lindgren 8914d38bd12STony Lindgren static struct omap_hwmod dm816x_emac1_hwmod = { 8924d38bd12STony Lindgren .name = "emac1", 8934d38bd12STony Lindgren .clkdm_name = "alwon_ethernet_clkdm", 8944d38bd12STony Lindgren .main_clk = "sysclk24_ck", 8954d38bd12STony Lindgren .flags = HWMOD_NO_IDLEST, 8964d38bd12STony Lindgren .prcm = { 8974d38bd12STony Lindgren .omap4 = { 8984d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_ETHERNET_1_CLKCTRL, 8994d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 9004d38bd12STony Lindgren }, 9014d38bd12STony Lindgren }, 9024d38bd12STony Lindgren .class = &dm816x_emac_hwmod_class, 9034d38bd12STony Lindgren }; 9044d38bd12STony Lindgren 9054d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_hs__emac1 = { 9067e1b11d1STony Lindgren .master = &dm81xx_l4_hs_hwmod, 9074d38bd12STony Lindgren .slave = &dm816x_emac1_hwmod, 9084d38bd12STony Lindgren .clk = "sysclk5_ck", 9094d38bd12STony Lindgren .user = OCP_USER_MPU, 9104d38bd12STony Lindgren }; 9114d38bd12STony Lindgren 9124d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm816x_mmc_sysc = { 9134d38bd12STony Lindgren .rev_offs = 0x0, 9144d38bd12STony Lindgren .sysc_offs = 0x110, 9154d38bd12STony Lindgren .syss_offs = 0x114, 9164d38bd12STony Lindgren .sysc_flags = SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | 9174d38bd12STony Lindgren SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | 9184d38bd12STony Lindgren SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS, 9194d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, 9204d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 9214d38bd12STony Lindgren }; 9224d38bd12STony Lindgren 9234d38bd12STony Lindgren static struct omap_hwmod_class dm816x_mmc_class = { 9244d38bd12STony Lindgren .name = "mmc", 9254d38bd12STony Lindgren .sysc = &dm816x_mmc_sysc, 9264d38bd12STony Lindgren }; 9274d38bd12STony Lindgren 9284d38bd12STony Lindgren static struct omap_hwmod_opt_clk dm816x_mmc1_opt_clks[] = { 9294d38bd12STony Lindgren { .role = "dbck", .clk = "sysclk18_ck", }, 9304d38bd12STony Lindgren }; 9314d38bd12STony Lindgren 9324d38bd12STony Lindgren static struct omap_hsmmc_dev_attr mmc1_dev_attr = { 9334d38bd12STony Lindgren .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, 9344d38bd12STony Lindgren }; 9354d38bd12STony Lindgren 9364d38bd12STony Lindgren static struct omap_hwmod dm816x_mmc1_hwmod = { 9374d38bd12STony Lindgren .name = "mmc1", 9384d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 9394d38bd12STony Lindgren .opt_clks = dm816x_mmc1_opt_clks, 9404d38bd12STony Lindgren .opt_clks_cnt = ARRAY_SIZE(dm816x_mmc1_opt_clks), 9414d38bd12STony Lindgren .main_clk = "sysclk10_ck", 9424d38bd12STony Lindgren .prcm = { 9434d38bd12STony Lindgren .omap4 = { 9444d38bd12STony Lindgren .clkctrl_offs = DM816X_CM_ALWON_SDIO_CLKCTRL, 9454d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 9464d38bd12STony Lindgren }, 9474d38bd12STony Lindgren }, 9484d38bd12STony Lindgren .dev_attr = &mmc1_dev_attr, 9494d38bd12STony Lindgren .class = &dm816x_mmc_class, 9504d38bd12STony Lindgren }; 9514d38bd12STony Lindgren 9524d38bd12STony Lindgren static struct omap_hwmod_ocp_if dm816x_l4_ls__mmc1 = { 9537e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 9544d38bd12STony Lindgren .slave = &dm816x_mmc1_hwmod, 9554d38bd12STony Lindgren .clk = "sysclk6_ck", 9564d38bd12STony Lindgren .user = OCP_USER_MPU, 9574d38bd12STony Lindgren .flags = OMAP_FIREWALL_L4 9584d38bd12STony Lindgren }; 9594d38bd12STony Lindgren 9604d38bd12STony Lindgren static struct omap_hwmod_class_sysconfig dm816x_mcspi_sysc = { 9614d38bd12STony Lindgren .rev_offs = 0x0, 9624d38bd12STony Lindgren .sysc_offs = 0x110, 9634d38bd12STony Lindgren .syss_offs = 0x114, 9644d38bd12STony Lindgren .sysc_flags = SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | 9654d38bd12STony Lindgren SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | 9664d38bd12STony Lindgren SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS, 9674d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, 9684d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 9694d38bd12STony Lindgren }; 9704d38bd12STony Lindgren 9714d38bd12STony Lindgren static struct omap_hwmod_class dm816x_mcspi_class = { 9724d38bd12STony Lindgren .name = "mcspi", 9734d38bd12STony Lindgren .sysc = &dm816x_mcspi_sysc, 9744d38bd12STony Lindgren .rev = OMAP3_MCSPI_REV, 9754d38bd12STony Lindgren }; 9764d38bd12STony Lindgren 9774d38bd12STony Lindgren static struct omap2_mcspi_dev_attr dm816x_mcspi1_dev_attr = { 9784d38bd12STony Lindgren .num_chipselect = 4, 9794d38bd12STony Lindgren }; 9804d38bd12STony Lindgren 9817e1b11d1STony Lindgren static struct omap_hwmod dm81xx_mcspi1_hwmod = { 9824d38bd12STony Lindgren .name = "mcspi1", 9834d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 9844d38bd12STony Lindgren .main_clk = "sysclk10_ck", 9854d38bd12STony Lindgren .prcm = { 9864d38bd12STony Lindgren .omap4 = { 9877e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_SPI_CLKCTRL, 9884d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 9894d38bd12STony Lindgren }, 9904d38bd12STony Lindgren }, 9914d38bd12STony Lindgren .class = &dm816x_mcspi_class, 9924d38bd12STony Lindgren .dev_attr = &dm816x_mcspi1_dev_attr, 9934d38bd12STony Lindgren }; 9944d38bd12STony Lindgren 9957e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi1 = { 9967e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 9977e1b11d1STony Lindgren .slave = &dm81xx_mcspi1_hwmod, 9984d38bd12STony Lindgren .clk = "sysclk6_ck", 9994d38bd12STony Lindgren .user = OCP_USER_MPU, 10004d38bd12STony Lindgren }; 10014d38bd12STony Lindgren 10027e1b11d1STony Lindgren static struct omap_hwmod_class_sysconfig dm81xx_mailbox_sysc = { 10034d38bd12STony Lindgren .rev_offs = 0x000, 10044d38bd12STony Lindgren .sysc_offs = 0x010, 10054d38bd12STony Lindgren .syss_offs = 0x014, 10064d38bd12STony Lindgren .sysc_flags = SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | 10074d38bd12STony Lindgren SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE, 10084d38bd12STony Lindgren .idlemodes = SIDLE_FORCE | SIDLE_NO | SIDLE_SMART, 10094d38bd12STony Lindgren .sysc_fields = &omap_hwmod_sysc_type1, 10104d38bd12STony Lindgren }; 10114d38bd12STony Lindgren 10127e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_mailbox_hwmod_class = { 10134d38bd12STony Lindgren .name = "mailbox", 10147e1b11d1STony Lindgren .sysc = &dm81xx_mailbox_sysc, 10154d38bd12STony Lindgren }; 10164d38bd12STony Lindgren 10177e1b11d1STony Lindgren static struct omap_hwmod dm81xx_mailbox_hwmod = { 10184d38bd12STony Lindgren .name = "mailbox", 10194d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 10207e1b11d1STony Lindgren .class = &dm81xx_mailbox_hwmod_class, 10214d38bd12STony Lindgren .main_clk = "sysclk6_ck", 10224d38bd12STony Lindgren .prcm = { 10234d38bd12STony Lindgren .omap4 = { 10247e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_MAILBOX_CLKCTRL, 10254d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 10264d38bd12STony Lindgren }, 10274d38bd12STony Lindgren }, 10284d38bd12STony Lindgren }; 10294d38bd12STony Lindgren 10307e1b11d1STony Lindgren static struct omap_hwmod_ocp_if dm81xx_l4_ls__mailbox = { 10317e1b11d1STony Lindgren .master = &dm81xx_l4_ls_hwmod, 10327e1b11d1STony Lindgren .slave = &dm81xx_mailbox_hwmod, 10334d38bd12STony Lindgren .user = OCP_USER_MPU, 10344d38bd12STony Lindgren }; 10354d38bd12STony Lindgren 10367e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_tpcc_hwmod_class = { 10374d38bd12STony Lindgren .name = "tpcc", 10384d38bd12STony Lindgren }; 10394d38bd12STony Lindgren 10407e1b11d1STony Lindgren struct omap_hwmod dm81xx_tpcc_hwmod = { 10414d38bd12STony Lindgren .name = "tpcc", 10427e1b11d1STony Lindgren .class = &dm81xx_tpcc_hwmod_class, 10434d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 10444d38bd12STony Lindgren .main_clk = "sysclk4_ck", 10454d38bd12STony Lindgren .prcm = { 10464d38bd12STony Lindgren .omap4 = { 10477e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_TPCC_CLKCTRL, 10484d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 10494d38bd12STony Lindgren }, 10504d38bd12STony Lindgren }, 10514d38bd12STony Lindgren }; 10524d38bd12STony Lindgren 10537e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tpcc = { 10547e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_fast_hwmod, 10557e1b11d1STony Lindgren .slave = &dm81xx_tpcc_hwmod, 10564d38bd12STony Lindgren .clk = "sysclk4_ck", 10574d38bd12STony Lindgren .user = OCP_USER_MPU, 10584d38bd12STony Lindgren }; 10594d38bd12STony Lindgren 10607e1b11d1STony Lindgren static struct omap_hwmod_addr_space dm81xx_tptc0_addr_space[] = { 10614d38bd12STony Lindgren { 10624d38bd12STony Lindgren .pa_start = 0x49800000, 10634d38bd12STony Lindgren .pa_end = 0x49800000 + SZ_8K - 1, 10644d38bd12STony Lindgren .flags = ADDR_TYPE_RT, 10654d38bd12STony Lindgren }, 10664d38bd12STony Lindgren { }, 10674d38bd12STony Lindgren }; 10684d38bd12STony Lindgren 10697e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_tptc0_hwmod_class = { 10704d38bd12STony Lindgren .name = "tptc0", 10714d38bd12STony Lindgren }; 10724d38bd12STony Lindgren 10737e1b11d1STony Lindgren struct omap_hwmod dm81xx_tptc0_hwmod = { 10744d38bd12STony Lindgren .name = "tptc0", 10757e1b11d1STony Lindgren .class = &dm81xx_tptc0_hwmod_class, 10764d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 10774d38bd12STony Lindgren .main_clk = "sysclk4_ck", 10784d38bd12STony Lindgren .prcm = { 10794d38bd12STony Lindgren .omap4 = { 10807e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_TPTC0_CLKCTRL, 10814d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 10824d38bd12STony Lindgren }, 10834d38bd12STony Lindgren }, 10844d38bd12STony Lindgren }; 10854d38bd12STony Lindgren 10867e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc0 = { 10877e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_fast_hwmod, 10887e1b11d1STony Lindgren .slave = &dm81xx_tptc0_hwmod, 10894d38bd12STony Lindgren .clk = "sysclk4_ck", 10907e1b11d1STony Lindgren .addr = dm81xx_tptc0_addr_space, 10914d38bd12STony Lindgren .user = OCP_USER_MPU, 10924d38bd12STony Lindgren }; 10934d38bd12STony Lindgren 10947e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_tptc0__alwon_l3_fast = { 10957e1b11d1STony Lindgren .master = &dm81xx_tptc0_hwmod, 10967e1b11d1STony Lindgren .slave = &dm81xx_alwon_l3_fast_hwmod, 10974d38bd12STony Lindgren .clk = "sysclk4_ck", 10987e1b11d1STony Lindgren .addr = dm81xx_tptc0_addr_space, 10994d38bd12STony Lindgren .user = OCP_USER_MPU, 11004d38bd12STony Lindgren }; 11014d38bd12STony Lindgren 11027e1b11d1STony Lindgren static struct omap_hwmod_addr_space dm81xx_tptc1_addr_space[] = { 11034d38bd12STony Lindgren { 11044d38bd12STony Lindgren .pa_start = 0x49900000, 11054d38bd12STony Lindgren .pa_end = 0x49900000 + SZ_8K - 1, 11064d38bd12STony Lindgren .flags = ADDR_TYPE_RT, 11074d38bd12STony Lindgren }, 11084d38bd12STony Lindgren { }, 11094d38bd12STony Lindgren }; 11104d38bd12STony Lindgren 11117e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_tptc1_hwmod_class = { 11124d38bd12STony Lindgren .name = "tptc1", 11134d38bd12STony Lindgren }; 11144d38bd12STony Lindgren 11157e1b11d1STony Lindgren struct omap_hwmod dm81xx_tptc1_hwmod = { 11164d38bd12STony Lindgren .name = "tptc1", 11177e1b11d1STony Lindgren .class = &dm81xx_tptc1_hwmod_class, 11184d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 11194d38bd12STony Lindgren .main_clk = "sysclk4_ck", 11204d38bd12STony Lindgren .prcm = { 11214d38bd12STony Lindgren .omap4 = { 11227e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_TPTC1_CLKCTRL, 11234d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 11244d38bd12STony Lindgren }, 11254d38bd12STony Lindgren }, 11264d38bd12STony Lindgren }; 11274d38bd12STony Lindgren 11287e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc1 = { 11297e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_fast_hwmod, 11307e1b11d1STony Lindgren .slave = &dm81xx_tptc1_hwmod, 11314d38bd12STony Lindgren .clk = "sysclk4_ck", 11327e1b11d1STony Lindgren .addr = dm81xx_tptc1_addr_space, 11334d38bd12STony Lindgren .user = OCP_USER_MPU, 11344d38bd12STony Lindgren }; 11354d38bd12STony Lindgren 11367e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_tptc1__alwon_l3_fast = { 11377e1b11d1STony Lindgren .master = &dm81xx_tptc1_hwmod, 11387e1b11d1STony Lindgren .slave = &dm81xx_alwon_l3_fast_hwmod, 11394d38bd12STony Lindgren .clk = "sysclk4_ck", 11407e1b11d1STony Lindgren .addr = dm81xx_tptc1_addr_space, 11414d38bd12STony Lindgren .user = OCP_USER_MPU, 11424d38bd12STony Lindgren }; 11434d38bd12STony Lindgren 11447e1b11d1STony Lindgren static struct omap_hwmod_addr_space dm81xx_tptc2_addr_space[] = { 11454d38bd12STony Lindgren { 11464d38bd12STony Lindgren .pa_start = 0x49a00000, 11474d38bd12STony Lindgren .pa_end = 0x49a00000 + SZ_8K - 1, 11484d38bd12STony Lindgren .flags = ADDR_TYPE_RT, 11494d38bd12STony Lindgren }, 11504d38bd12STony Lindgren { }, 11514d38bd12STony Lindgren }; 11524d38bd12STony Lindgren 11537e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_tptc2_hwmod_class = { 11544d38bd12STony Lindgren .name = "tptc2", 11554d38bd12STony Lindgren }; 11564d38bd12STony Lindgren 11577e1b11d1STony Lindgren struct omap_hwmod dm81xx_tptc2_hwmod = { 11584d38bd12STony Lindgren .name = "tptc2", 11597e1b11d1STony Lindgren .class = &dm81xx_tptc2_hwmod_class, 11604d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 11614d38bd12STony Lindgren .main_clk = "sysclk4_ck", 11624d38bd12STony Lindgren .prcm = { 11634d38bd12STony Lindgren .omap4 = { 11647e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_TPTC2_CLKCTRL, 11654d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 11664d38bd12STony Lindgren }, 11674d38bd12STony Lindgren }, 11684d38bd12STony Lindgren }; 11694d38bd12STony Lindgren 11707e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc2 = { 11717e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_fast_hwmod, 11727e1b11d1STony Lindgren .slave = &dm81xx_tptc2_hwmod, 11734d38bd12STony Lindgren .clk = "sysclk4_ck", 11747e1b11d1STony Lindgren .addr = dm81xx_tptc2_addr_space, 11754d38bd12STony Lindgren .user = OCP_USER_MPU, 11764d38bd12STony Lindgren }; 11774d38bd12STony Lindgren 11787e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_tptc2__alwon_l3_fast = { 11797e1b11d1STony Lindgren .master = &dm81xx_tptc2_hwmod, 11807e1b11d1STony Lindgren .slave = &dm81xx_alwon_l3_fast_hwmod, 11814d38bd12STony Lindgren .clk = "sysclk4_ck", 11827e1b11d1STony Lindgren .addr = dm81xx_tptc2_addr_space, 11834d38bd12STony Lindgren .user = OCP_USER_MPU, 11844d38bd12STony Lindgren }; 11854d38bd12STony Lindgren 11867e1b11d1STony Lindgren static struct omap_hwmod_addr_space dm81xx_tptc3_addr_space[] = { 11874d38bd12STony Lindgren { 11884d38bd12STony Lindgren .pa_start = 0x49b00000, 11894d38bd12STony Lindgren .pa_end = 0x49b00000 + SZ_8K - 1, 11904d38bd12STony Lindgren .flags = ADDR_TYPE_RT, 11914d38bd12STony Lindgren }, 11924d38bd12STony Lindgren { }, 11934d38bd12STony Lindgren }; 11944d38bd12STony Lindgren 11957e1b11d1STony Lindgren static struct omap_hwmod_class dm81xx_tptc3_hwmod_class = { 11964d38bd12STony Lindgren .name = "tptc3", 11974d38bd12STony Lindgren }; 11984d38bd12STony Lindgren 11997e1b11d1STony Lindgren struct omap_hwmod dm81xx_tptc3_hwmod = { 12004d38bd12STony Lindgren .name = "tptc3", 12017e1b11d1STony Lindgren .class = &dm81xx_tptc3_hwmod_class, 12024d38bd12STony Lindgren .clkdm_name = "alwon_l3s_clkdm", 12034d38bd12STony Lindgren .main_clk = "sysclk4_ck", 12044d38bd12STony Lindgren .prcm = { 12054d38bd12STony Lindgren .omap4 = { 12067e1b11d1STony Lindgren .clkctrl_offs = DM81XX_CM_ALWON_TPTC3_CLKCTRL, 12074d38bd12STony Lindgren .modulemode = MODULEMODE_SWCTRL, 12084d38bd12STony Lindgren }, 12094d38bd12STony Lindgren }, 12104d38bd12STony Lindgren }; 12114d38bd12STony Lindgren 12127e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_alwon_l3_fast__tptc3 = { 12137e1b11d1STony Lindgren .master = &dm81xx_alwon_l3_fast_hwmod, 12147e1b11d1STony Lindgren .slave = &dm81xx_tptc3_hwmod, 12154d38bd12STony Lindgren .clk = "sysclk4_ck", 12167e1b11d1STony Lindgren .addr = dm81xx_tptc3_addr_space, 12174d38bd12STony Lindgren .user = OCP_USER_MPU, 12184d38bd12STony Lindgren }; 12194d38bd12STony Lindgren 12207e1b11d1STony Lindgren struct omap_hwmod_ocp_if dm81xx_tptc3__alwon_l3_fast = { 12217e1b11d1STony Lindgren .master = &dm81xx_tptc3_hwmod, 12227e1b11d1STony Lindgren .slave = &dm81xx_alwon_l3_fast_hwmod, 12234d38bd12STony Lindgren .clk = "sysclk4_ck", 12247e1b11d1STony Lindgren .addr = dm81xx_tptc3_addr_space, 12254d38bd12STony Lindgren .user = OCP_USER_MPU, 12264d38bd12STony Lindgren }; 12274d38bd12STony Lindgren 1228*0f3ccb24STony Lindgren /* 1229*0f3ccb24STony Lindgren * REVISIT: Test and enable the following once clocks work: 1230*0f3ccb24STony Lindgren * dm81xx_l4_ls__gpio1 1231*0f3ccb24STony Lindgren * dm81xx_l4_ls__gpio2 1232*0f3ccb24STony Lindgren * dm81xx_l4_ls__mailbox 1233*0f3ccb24STony Lindgren * dm81xx_alwon_l3_slow__gpmc 1234*0f3ccb24STony Lindgren * dm81xx_default_l3_slow__usbss 1235*0f3ccb24STony Lindgren * 1236*0f3ccb24STony Lindgren * Also note that some devices share a single clkctrl_offs.. 1237*0f3ccb24STony Lindgren * For example, i2c1 and 3 share one, and i2c2 and 4 share one. 1238*0f3ccb24STony Lindgren */ 1239*0f3ccb24STony Lindgren static struct omap_hwmod_ocp_if *dm814x_hwmod_ocp_ifs[] __initdata = { 1240*0f3ccb24STony Lindgren &dm814x_mpu__alwon_l3_slow, 1241*0f3ccb24STony Lindgren &dm814x_mpu__alwon_l3_med, 1242*0f3ccb24STony Lindgren &dm81xx_alwon_l3_slow__l4_ls, 1243*0f3ccb24STony Lindgren &dm81xx_alwon_l3_slow__l4_hs, 1244*0f3ccb24STony Lindgren &dm81xx_l4_ls__uart1, 1245*0f3ccb24STony Lindgren &dm81xx_l4_ls__uart2, 1246*0f3ccb24STony Lindgren &dm81xx_l4_ls__uart3, 1247*0f3ccb24STony Lindgren &dm81xx_l4_ls__wd_timer1, 1248*0f3ccb24STony Lindgren &dm81xx_l4_ls__i2c1, 1249*0f3ccb24STony Lindgren &dm81xx_l4_ls__i2c2, 1250*0f3ccb24STony Lindgren &dm81xx_l4_ls__elm, 1251*0f3ccb24STony Lindgren &dm81xx_l4_ls__mcspi1, 1252*0f3ccb24STony Lindgren &dm81xx_alwon_l3_fast__tpcc, 1253*0f3ccb24STony Lindgren &dm81xx_alwon_l3_fast__tptc0, 1254*0f3ccb24STony Lindgren &dm81xx_alwon_l3_fast__tptc1, 1255*0f3ccb24STony Lindgren &dm81xx_alwon_l3_fast__tptc2, 1256*0f3ccb24STony Lindgren &dm81xx_alwon_l3_fast__tptc3, 1257*0f3ccb24STony Lindgren &dm81xx_tptc0__alwon_l3_fast, 1258*0f3ccb24STony Lindgren &dm81xx_tptc1__alwon_l3_fast, 1259*0f3ccb24STony Lindgren &dm81xx_tptc2__alwon_l3_fast, 1260*0f3ccb24STony Lindgren &dm81xx_tptc3__alwon_l3_fast, 1261*0f3ccb24STony Lindgren &dm814x_l4_ls__timer1, 1262*0f3ccb24STony Lindgren &dm814x_l4_ls__timer2, 1263*0f3ccb24STony Lindgren &dm814x_l4_hs__cpgmac0, 1264*0f3ccb24STony Lindgren &dm814x_cpgmac0__mdio, 1265*0f3ccb24STony Lindgren NULL, 1266*0f3ccb24STony Lindgren }; 1267*0f3ccb24STony Lindgren 1268*0f3ccb24STony Lindgren int __init dm814x_hwmod_init(void) 1269*0f3ccb24STony Lindgren { 1270*0f3ccb24STony Lindgren omap_hwmod_init(); 1271*0f3ccb24STony Lindgren return omap_hwmod_register_links(dm814x_hwmod_ocp_ifs); 1272*0f3ccb24STony Lindgren } 1273*0f3ccb24STony Lindgren 12744d38bd12STony Lindgren static struct omap_hwmod_ocp_if *dm816x_hwmod_ocp_ifs[] __initdata = { 12754d38bd12STony Lindgren &dm816x_mpu__alwon_l3_slow, 12764d38bd12STony Lindgren &dm816x_mpu__alwon_l3_med, 12777e1b11d1STony Lindgren &dm81xx_alwon_l3_slow__l4_ls, 12787e1b11d1STony Lindgren &dm81xx_alwon_l3_slow__l4_hs, 12797e1b11d1STony Lindgren &dm81xx_l4_ls__uart1, 12807e1b11d1STony Lindgren &dm81xx_l4_ls__uart2, 12817e1b11d1STony Lindgren &dm81xx_l4_ls__uart3, 12827e1b11d1STony Lindgren &dm81xx_l4_ls__wd_timer1, 12837e1b11d1STony Lindgren &dm81xx_l4_ls__i2c1, 12847e1b11d1STony Lindgren &dm81xx_l4_ls__i2c2, 12854d38bd12STony Lindgren &dm81xx_l4_ls__gpio1, 12864d38bd12STony Lindgren &dm81xx_l4_ls__gpio2, 12874d38bd12STony Lindgren &dm81xx_l4_ls__elm, 12884d38bd12STony Lindgren &dm816x_l4_ls__mmc1, 12894d38bd12STony Lindgren &dm816x_l4_ls__timer1, 12904d38bd12STony Lindgren &dm816x_l4_ls__timer2, 12914d38bd12STony Lindgren &dm816x_l4_ls__timer3, 12924d38bd12STony Lindgren &dm816x_l4_ls__timer4, 12934d38bd12STony Lindgren &dm816x_l4_ls__timer5, 12944d38bd12STony Lindgren &dm816x_l4_ls__timer6, 12954d38bd12STony Lindgren &dm816x_l4_ls__timer7, 12967e1b11d1STony Lindgren &dm81xx_l4_ls__mcspi1, 12977e1b11d1STony Lindgren &dm81xx_l4_ls__mailbox, 12987e1b11d1STony Lindgren &dm81xx_l4_hs__emac0, 12997e1b11d1STony Lindgren &dm81xx_emac0__mdio, 13004d38bd12STony Lindgren &dm816x_l4_hs__emac1, 13017e1b11d1STony Lindgren &dm81xx_alwon_l3_fast__tpcc, 13027e1b11d1STony Lindgren &dm81xx_alwon_l3_fast__tptc0, 13037e1b11d1STony Lindgren &dm81xx_alwon_l3_fast__tptc1, 13047e1b11d1STony Lindgren &dm81xx_alwon_l3_fast__tptc2, 13057e1b11d1STony Lindgren &dm81xx_alwon_l3_fast__tptc3, 13067e1b11d1STony Lindgren &dm81xx_tptc0__alwon_l3_fast, 13077e1b11d1STony Lindgren &dm81xx_tptc1__alwon_l3_fast, 13087e1b11d1STony Lindgren &dm81xx_tptc2__alwon_l3_fast, 13097e1b11d1STony Lindgren &dm81xx_tptc3__alwon_l3_fast, 13104d38bd12STony Lindgren &dm81xx_alwon_l3_slow__gpmc, 13114d38bd12STony Lindgren &dm81xx_default_l3_slow__usbss, 13124d38bd12STony Lindgren NULL, 13134d38bd12STony Lindgren }; 13144d38bd12STony Lindgren 1315*0f3ccb24STony Lindgren int __init dm816x_hwmod_init(void) 13164d38bd12STony Lindgren { 13174d38bd12STony Lindgren omap_hwmod_init(); 13184d38bd12STony Lindgren return omap_hwmod_register_links(dm816x_hwmod_ocp_ifs); 13194d38bd12STony Lindgren } 1320