4 * Copyright (C) 2010 Texas Instruments, Inc. - https://www.ti.com/
5 * Copyright (C) 2013 SKTB SKiT, http://www.skitlab.ru/
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation version 2.
11 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
12 * kind, whether express or implied; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #include <linux/types.h>
20 #include <linux/platform_data/hsmmc-omap.h>
22 #include "omap_hwmod_common_data.h"
28 * DM816X hardware modules integration data
30 * Note: This is incomplete and at present, not generated from h/w database.
34 * Common alwon .clkctrl_offs from dm814x TRM "Table 2-278. CM_ALWON REGISTERS"
35 * also dm816x TRM 18.7.17 CM_ALWON device register values minus 0x1400.
37 #define DM81XX_CM_ALWON_MCASP0_CLKCTRL 0x140
38 #define DM81XX_CM_ALWON_MCASP1_CLKCTRL 0x144
39 #define DM81XX_CM_ALWON_MCASP2_CLKCTRL 0x148
40 #define DM81XX_CM_ALWON_MCBSP_CLKCTRL 0x14c
41 #define DM81XX_CM_ALWON_UART_0_CLKCTRL 0x150
42 #define DM81XX_CM_ALWON_UART_1_CLKCTRL 0x154
43 #define DM81XX_CM_ALWON_UART_2_CLKCTRL 0x158
44 #define DM81XX_CM_ALWON_GPIO_0_CLKCTRL 0x15c
45 #define DM81XX_CM_ALWON_GPIO_1_CLKCTRL 0x160
46 #define DM81XX_CM_ALWON_I2C_0_CLKCTRL 0x164
47 #define DM81XX_CM_ALWON_I2C_1_CLKCTRL 0x168
48 #define DM81XX_CM_ALWON_WDTIMER_CLKCTRL 0x18c
49 #define DM81XX_CM_ALWON_SPI_CLKCTRL 0x190
50 #define DM81XX_CM_ALWON_MAILBOX_CLKCTRL 0x194
51 #define DM81XX_CM_ALWON_SPINBOX_CLKCTRL 0x198
52 #define DM81XX_CM_ALWON_MMUDATA_CLKCTRL 0x19c
53 #define DM81XX_CM_ALWON_MMUCFG_CLKCTRL 0x1a8
54 #define DM81XX_CM_ALWON_CONTROL_CLKCTRL 0x1c4
55 #define DM81XX_CM_ALWON_GPMC_CLKCTRL 0x1d0
56 #define DM81XX_CM_ALWON_ETHERNET_0_CLKCTRL 0x1d4
57 #define DM81XX_CM_ALWON_L3_CLKCTRL 0x1e4
58 #define DM81XX_CM_ALWON_L4HS_CLKCTRL 0x1e8
59 #define DM81XX_CM_ALWON_L4LS_CLKCTRL 0x1ec
60 #define DM81XX_CM_ALWON_RTC_CLKCTRL 0x1f0
61 #define DM81XX_CM_ALWON_TPCC_CLKCTRL 0x1f4
62 #define DM81XX_CM_ALWON_TPTC0_CLKCTRL 0x1f8
63 #define DM81XX_CM_ALWON_TPTC1_CLKCTRL 0x1fc
64 #define DM81XX_CM_ALWON_TPTC2_CLKCTRL 0x200
65 #define DM81XX_CM_ALWON_TPTC3_CLKCTRL 0x204
67 /* Registers specific to dm814x */
68 #define DM814X_CM_ALWON_MCASP_3_4_5_CLKCTRL 0x16c
69 #define DM814X_CM_ALWON_ATL_CLKCTRL 0x170
70 #define DM814X_CM_ALWON_MLB_CLKCTRL 0x174
71 #define DM814X_CM_ALWON_PATA_CLKCTRL 0x178
72 #define DM814X_CM_ALWON_UART_3_CLKCTRL 0x180
73 #define DM814X_CM_ALWON_UART_4_CLKCTRL 0x184
74 #define DM814X_CM_ALWON_UART_5_CLKCTRL 0x188
75 #define DM814X_CM_ALWON_OCM_0_CLKCTRL 0x1b4
76 #define DM814X_CM_ALWON_VCP_CLKCTRL 0x1b8
77 #define DM814X_CM_ALWON_MPU_CLKCTRL 0x1dc
78 #define DM814X_CM_ALWON_DEBUGSS_CLKCTRL 0x1e0
79 #define DM814X_CM_ALWON_DCAN_0_1_CLKCTRL 0x218
80 #define DM814X_CM_ALWON_MMCHS_0_CLKCTRL 0x21c
81 #define DM814X_CM_ALWON_MMCHS_1_CLKCTRL 0x220
82 #define DM814X_CM_ALWON_MMCHS_2_CLKCTRL 0x224
83 #define DM814X_CM_ALWON_CUST_EFUSE_CLKCTRL 0x228
85 /* Registers specific to dm816x */
86 #define DM816X_DM_ALWON_BASE 0x1400
87 #define DM816X_CM_ALWON_TIMER_1_CLKCTRL (0x1570 - DM816X_DM_ALWON_BASE)
88 #define DM816X_CM_ALWON_TIMER_2_CLKCTRL (0x1574 - DM816X_DM_ALWON_BASE)
89 #define DM816X_CM_ALWON_TIMER_3_CLKCTRL (0x1578 - DM816X_DM_ALWON_BASE)
90 #define DM816X_CM_ALWON_TIMER_4_CLKCTRL (0x157c - DM816X_DM_ALWON_BASE)
91 #define DM816X_CM_ALWON_TIMER_5_CLKCTRL (0x1580 - DM816X_DM_ALWON_BASE)
92 #define DM816X_CM_ALWON_TIMER_6_CLKCTRL (0x1584 - DM816X_DM_ALWON_BASE)
93 #define DM816X_CM_ALWON_TIMER_7_CLKCTRL (0x1588 - DM816X_DM_ALWON_BASE)
94 #define DM816X_CM_ALWON_SDIO_CLKCTRL (0x15b0 - DM816X_DM_ALWON_BASE)
95 #define DM816X_CM_ALWON_OCMC_0_CLKCTRL (0x15b4 - DM816X_DM_ALWON_BASE)
96 #define DM816X_CM_ALWON_OCMC_1_CLKCTRL (0x15b8 - DM816X_DM_ALWON_BASE)
97 #define DM816X_CM_ALWON_ETHERNET_1_CLKCTRL (0x15d8 - DM816X_DM_ALWON_BASE)
98 #define DM816X_CM_ALWON_MPU_CLKCTRL (0x15dc - DM816X_DM_ALWON_BASE)
99 #define DM816X_CM_ALWON_SR_0_CLKCTRL (0x1608 - DM816X_DM_ALWON_BASE)
100 #define DM816X_CM_ALWON_SR_1_CLKCTRL (0x160c - DM816X_DM_ALWON_BASE)
103 * The default .clkctrl_offs field is offset from CM_DEFAULT, that's
104 * TRM 18.7.6 CM_DEFAULT device register values minus 0x500
106 #define DM81XX_CM_DEFAULT_OFFSET 0x500
107 #define DM81XX_CM_DEFAULT_USB_CLKCTRL (0x558 - DM81XX_CM_DEFAULT_OFFSET)
108 #define DM81XX_CM_DEFAULT_SATA_CLKCTRL (0x560 - DM81XX_CM_DEFAULT_OFFSET)
110 /* L3 Interconnect entries clocked at 125, 250 and 500MHz */
111 static struct omap_hwmod dm81xx_alwon_l3_slow_hwmod
= {
112 .name
= "alwon_l3_slow",
113 .clkdm_name
= "alwon_l3s_clkdm",
114 .class = &l3_hwmod_class
,
115 .flags
= HWMOD_NO_IDLEST
,
118 static struct omap_hwmod dm81xx_default_l3_slow_hwmod
= {
119 .name
= "default_l3_slow",
120 .clkdm_name
= "default_l3_slow_clkdm",
121 .class = &l3_hwmod_class
,
122 .flags
= HWMOD_NO_IDLEST
,
125 static struct omap_hwmod dm81xx_alwon_l3_med_hwmod
= {
127 .clkdm_name
= "alwon_l3_med_clkdm",
128 .class = &l3_hwmod_class
,
129 .flags
= HWMOD_NO_IDLEST
,
133 * L4 standard peripherals, see TRM table 1-12 for devices using this.
134 * See TRM table 1-73 for devices using the 125MHz SYSCLK6 clock.
136 static struct omap_hwmod dm81xx_l4_ls_hwmod
= {
138 .clkdm_name
= "alwon_l3s_clkdm",
139 .class = &l4_hwmod_class
,
140 .flags
= HWMOD_NO_IDLEST
,
144 * L4 high-speed peripherals. For devices using this, please see the TRM
145 * table 1-13. On dm816x, only EMAC, MDIO and SATA use this. See also TRM
146 * table 1-73 for devices using 250MHz SYSCLK5 clock.
148 static struct omap_hwmod dm81xx_l4_hs_hwmod
= {
150 .clkdm_name
= "alwon_l3_med_clkdm",
151 .class = &l4_hwmod_class
,
152 .flags
= HWMOD_NO_IDLEST
,
155 /* L3 slow -> L4 ls peripheral interface running at 125MHz */
156 static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__l4_ls
= {
157 .master
= &dm81xx_alwon_l3_slow_hwmod
,
158 .slave
= &dm81xx_l4_ls_hwmod
,
159 .user
= OCP_USER_MPU
,
162 /* L3 med -> L4 fast peripheral interface running at 250MHz */
163 static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__l4_hs
= {
164 .master
= &dm81xx_alwon_l3_med_hwmod
,
165 .slave
= &dm81xx_l4_hs_hwmod
,
166 .user
= OCP_USER_MPU
,
170 static struct omap_hwmod dm814x_mpu_hwmod
= {
172 .clkdm_name
= "alwon_l3s_clkdm",
173 .class = &mpu_hwmod_class
,
174 .flags
= HWMOD_INIT_NO_IDLE
,
175 .main_clk
= "mpu_ck",
178 .clkctrl_offs
= DM814X_CM_ALWON_MPU_CLKCTRL
,
179 .modulemode
= MODULEMODE_SWCTRL
,
184 static struct omap_hwmod_ocp_if dm814x_mpu__alwon_l3_slow
= {
185 .master
= &dm814x_mpu_hwmod
,
186 .slave
= &dm81xx_alwon_l3_slow_hwmod
,
187 .user
= OCP_USER_MPU
,
190 /* L3 med peripheral interface running at 200MHz */
191 static struct omap_hwmod_ocp_if dm814x_mpu__alwon_l3_med
= {
192 .master
= &dm814x_mpu_hwmod
,
193 .slave
= &dm81xx_alwon_l3_med_hwmod
,
194 .user
= OCP_USER_MPU
,
197 static struct omap_hwmod dm816x_mpu_hwmod
= {
199 .clkdm_name
= "alwon_mpu_clkdm",
200 .class = &mpu_hwmod_class
,
201 .flags
= HWMOD_INIT_NO_IDLE
,
202 .main_clk
= "mpu_ck",
205 .clkctrl_offs
= DM816X_CM_ALWON_MPU_CLKCTRL
,
206 .modulemode
= MODULEMODE_SWCTRL
,
211 static struct omap_hwmod_ocp_if dm816x_mpu__alwon_l3_slow
= {
212 .master
= &dm816x_mpu_hwmod
,
213 .slave
= &dm81xx_alwon_l3_slow_hwmod
,
214 .user
= OCP_USER_MPU
,
217 /* L3 med peripheral interface running at 250MHz */
218 static struct omap_hwmod_ocp_if dm816x_mpu__alwon_l3_med
= {
219 .master
= &dm816x_mpu_hwmod
,
220 .slave
= &dm81xx_alwon_l3_med_hwmod
,
221 .user
= OCP_USER_MPU
,
225 static struct omap_hwmod_class_sysconfig ti81xx_rtc_sysc
= {
228 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
229 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
|
230 SIDLE_SMART
| SIDLE_SMART_WKUP
,
231 .sysc_fields
= &omap_hwmod_sysc_type3
,
234 static struct omap_hwmod_class ti81xx_rtc_hwmod_class
= {
236 .sysc
= &ti81xx_rtc_sysc
,
239 static struct omap_hwmod ti81xx_rtc_hwmod
= {
241 .class = &ti81xx_rtc_hwmod_class
,
242 .clkdm_name
= "alwon_l3s_clkdm",
243 .flags
= HWMOD_NO_IDLEST
,
244 .main_clk
= "sysclk18_ck",
247 .clkctrl_offs
= DM81XX_CM_ALWON_RTC_CLKCTRL
,
248 .modulemode
= MODULEMODE_SWCTRL
,
253 static struct omap_hwmod_ocp_if ti81xx_l4_ls__rtc
= {
254 .master
= &dm81xx_l4_ls_hwmod
,
255 .slave
= &ti81xx_rtc_hwmod
,
257 .user
= OCP_USER_MPU
,
261 static struct omap_hwmod_class_sysconfig uart_sysc
= {
265 .sysc_flags
= SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SIDLEMODE
|
266 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
|
267 SYSS_HAS_RESET_STATUS
,
268 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
270 .sysc_fields
= &omap_hwmod_sysc_type1
,
273 static struct omap_hwmod_class uart_class
= {
278 static struct omap_hwmod dm81xx_uart1_hwmod
= {
280 .clkdm_name
= "alwon_l3s_clkdm",
281 .main_clk
= "sysclk10_ck",
284 .clkctrl_offs
= DM81XX_CM_ALWON_UART_0_CLKCTRL
,
285 .modulemode
= MODULEMODE_SWCTRL
,
288 .class = &uart_class
,
289 .flags
= DEBUG_TI81XXUART1_FLAGS
,
292 static struct omap_hwmod_ocp_if dm81xx_l4_ls__uart1
= {
293 .master
= &dm81xx_l4_ls_hwmod
,
294 .slave
= &dm81xx_uart1_hwmod
,
296 .user
= OCP_USER_MPU
,
299 static struct omap_hwmod dm81xx_uart2_hwmod
= {
301 .clkdm_name
= "alwon_l3s_clkdm",
302 .main_clk
= "sysclk10_ck",
305 .clkctrl_offs
= DM81XX_CM_ALWON_UART_1_CLKCTRL
,
306 .modulemode
= MODULEMODE_SWCTRL
,
309 .class = &uart_class
,
310 .flags
= DEBUG_TI81XXUART2_FLAGS
,
313 static struct omap_hwmod_ocp_if dm81xx_l4_ls__uart2
= {
314 .master
= &dm81xx_l4_ls_hwmod
,
315 .slave
= &dm81xx_uart2_hwmod
,
317 .user
= OCP_USER_MPU
,
320 static struct omap_hwmod dm81xx_uart3_hwmod
= {
322 .clkdm_name
= "alwon_l3s_clkdm",
323 .main_clk
= "sysclk10_ck",
326 .clkctrl_offs
= DM81XX_CM_ALWON_UART_2_CLKCTRL
,
327 .modulemode
= MODULEMODE_SWCTRL
,
330 .class = &uart_class
,
331 .flags
= DEBUG_TI81XXUART3_FLAGS
,
334 static struct omap_hwmod_ocp_if dm81xx_l4_ls__uart3
= {
335 .master
= &dm81xx_l4_ls_hwmod
,
336 .slave
= &dm81xx_uart3_hwmod
,
338 .user
= OCP_USER_MPU
,
341 static struct omap_hwmod_class_sysconfig wd_timer_sysc
= {
345 .sysc_flags
= SYSC_HAS_EMUFREE
| SYSC_HAS_SOFTRESET
|
346 SYSS_HAS_RESET_STATUS
,
347 .sysc_fields
= &omap_hwmod_sysc_type1
,
350 static struct omap_hwmod_class wd_timer_class
= {
352 .sysc
= &wd_timer_sysc
,
353 .pre_shutdown
= &omap2_wd_timer_disable
,
354 .reset
= &omap2_wd_timer_reset
,
357 static struct omap_hwmod dm81xx_wd_timer_hwmod
= {
359 .clkdm_name
= "alwon_l3s_clkdm",
360 .main_clk
= "sysclk18_ck",
361 .flags
= HWMOD_NO_IDLEST
,
364 .clkctrl_offs
= DM81XX_CM_ALWON_WDTIMER_CLKCTRL
,
365 .modulemode
= MODULEMODE_SWCTRL
,
368 .class = &wd_timer_class
,
371 static struct omap_hwmod_ocp_if dm81xx_l4_ls__wd_timer1
= {
372 .master
= &dm81xx_l4_ls_hwmod
,
373 .slave
= &dm81xx_wd_timer_hwmod
,
375 .user
= OCP_USER_MPU
,
379 static struct omap_hwmod_class_sysconfig i2c_sysc
= {
383 .sysc_flags
= SYSC_HAS_SIDLEMODE
|
384 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
386 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
387 .sysc_fields
= &omap_hwmod_sysc_type1
,
390 static struct omap_hwmod_class i2c_class
= {
395 static struct omap_hwmod dm81xx_i2c1_hwmod
= {
397 .clkdm_name
= "alwon_l3s_clkdm",
398 .main_clk
= "sysclk10_ck",
401 .clkctrl_offs
= DM81XX_CM_ALWON_I2C_0_CLKCTRL
,
402 .modulemode
= MODULEMODE_SWCTRL
,
408 static struct omap_hwmod_ocp_if dm81xx_l4_ls__i2c1
= {
409 .master
= &dm81xx_l4_ls_hwmod
,
410 .slave
= &dm81xx_i2c1_hwmod
,
412 .user
= OCP_USER_MPU
,
415 static struct omap_hwmod dm81xx_i2c2_hwmod
= {
417 .clkdm_name
= "alwon_l3s_clkdm",
418 .main_clk
= "sysclk10_ck",
421 .clkctrl_offs
= DM81XX_CM_ALWON_I2C_1_CLKCTRL
,
422 .modulemode
= MODULEMODE_SWCTRL
,
428 static struct omap_hwmod_ocp_if dm81xx_l4_ls__i2c2
= {
429 .master
= &dm81xx_l4_ls_hwmod
,
430 .slave
= &dm81xx_i2c2_hwmod
,
432 .user
= OCP_USER_MPU
,
435 static struct omap_hwmod_class_sysconfig dm81xx_elm_sysc
= {
439 .sysc_flags
= SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
441 SYSS_HAS_RESET_STATUS
,
442 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
443 .sysc_fields
= &omap_hwmod_sysc_type1
,
446 static struct omap_hwmod_class dm81xx_elm_hwmod_class
= {
448 .sysc
= &dm81xx_elm_sysc
,
451 static struct omap_hwmod dm81xx_elm_hwmod
= {
453 .clkdm_name
= "alwon_l3s_clkdm",
454 .class = &dm81xx_elm_hwmod_class
,
455 .main_clk
= "sysclk6_ck",
458 static struct omap_hwmod_ocp_if dm81xx_l4_ls__elm
= {
459 .master
= &dm81xx_l4_ls_hwmod
,
460 .slave
= &dm81xx_elm_hwmod
,
462 .user
= OCP_USER_MPU
,
465 static struct omap_hwmod_class_sysconfig dm81xx_gpio_sysc
= {
469 .sysc_flags
= SYSC_HAS_AUTOIDLE
| SYSC_HAS_ENAWAKEUP
|
470 SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
471 SYSS_HAS_RESET_STATUS
,
472 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
474 .sysc_fields
= &omap_hwmod_sysc_type1
,
477 static struct omap_hwmod_class dm81xx_gpio_hwmod_class
= {
479 .sysc
= &dm81xx_gpio_sysc
,
482 static struct omap_hwmod_opt_clk gpio1_opt_clks
[] = {
483 { .role
= "dbclk", .clk
= "sysclk18_ck" },
486 static struct omap_hwmod dm81xx_gpio1_hwmod
= {
488 .clkdm_name
= "alwon_l3s_clkdm",
489 .class = &dm81xx_gpio_hwmod_class
,
490 .main_clk
= "sysclk6_ck",
493 .clkctrl_offs
= DM81XX_CM_ALWON_GPIO_0_CLKCTRL
,
494 .modulemode
= MODULEMODE_SWCTRL
,
497 .opt_clks
= gpio1_opt_clks
,
498 .opt_clks_cnt
= ARRAY_SIZE(gpio1_opt_clks
),
501 static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio1
= {
502 .master
= &dm81xx_l4_ls_hwmod
,
503 .slave
= &dm81xx_gpio1_hwmod
,
505 .user
= OCP_USER_MPU
,
508 static struct omap_hwmod_opt_clk gpio2_opt_clks
[] = {
509 { .role
= "dbclk", .clk
= "sysclk18_ck" },
512 static struct omap_hwmod dm81xx_gpio2_hwmod
= {
514 .clkdm_name
= "alwon_l3s_clkdm",
515 .class = &dm81xx_gpio_hwmod_class
,
516 .main_clk
= "sysclk6_ck",
519 .clkctrl_offs
= DM81XX_CM_ALWON_GPIO_1_CLKCTRL
,
520 .modulemode
= MODULEMODE_SWCTRL
,
523 .opt_clks
= gpio2_opt_clks
,
524 .opt_clks_cnt
= ARRAY_SIZE(gpio2_opt_clks
),
527 static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio2
= {
528 .master
= &dm81xx_l4_ls_hwmod
,
529 .slave
= &dm81xx_gpio2_hwmod
,
531 .user
= OCP_USER_MPU
,
534 static struct omap_hwmod_opt_clk gpio3_opt_clks
[] = {
535 { .role
= "dbclk", .clk
= "sysclk18_ck" },
538 static struct omap_hwmod dm81xx_gpio3_hwmod
= {
540 .clkdm_name
= "alwon_l3s_clkdm",
541 .class = &dm81xx_gpio_hwmod_class
,
542 .main_clk
= "sysclk6_ck",
545 .clkctrl_offs
= DM81XX_CM_ALWON_GPIO_1_CLKCTRL
,
546 .modulemode
= MODULEMODE_SWCTRL
,
549 .opt_clks
= gpio3_opt_clks
,
550 .opt_clks_cnt
= ARRAY_SIZE(gpio3_opt_clks
),
553 static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio3
= {
554 .master
= &dm81xx_l4_ls_hwmod
,
555 .slave
= &dm81xx_gpio3_hwmod
,
557 .user
= OCP_USER_MPU
,
560 static struct omap_hwmod_opt_clk gpio4_opt_clks
[] = {
561 { .role
= "dbclk", .clk
= "sysclk18_ck" },
564 static struct omap_hwmod dm81xx_gpio4_hwmod
= {
566 .clkdm_name
= "alwon_l3s_clkdm",
567 .class = &dm81xx_gpio_hwmod_class
,
568 .main_clk
= "sysclk6_ck",
571 .clkctrl_offs
= DM81XX_CM_ALWON_GPIO_1_CLKCTRL
,
572 .modulemode
= MODULEMODE_SWCTRL
,
575 .opt_clks
= gpio4_opt_clks
,
576 .opt_clks_cnt
= ARRAY_SIZE(gpio4_opt_clks
),
579 static struct omap_hwmod_ocp_if dm81xx_l4_ls__gpio4
= {
580 .master
= &dm81xx_l4_ls_hwmod
,
581 .slave
= &dm81xx_gpio4_hwmod
,
583 .user
= OCP_USER_MPU
,
586 static struct omap_hwmod_class_sysconfig dm81xx_gpmc_sysc
= {
590 .sysc_flags
= SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
591 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
,
592 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
593 .sysc_fields
= &omap_hwmod_sysc_type1
,
596 static struct omap_hwmod_class dm81xx_gpmc_hwmod_class
= {
598 .sysc
= &dm81xx_gpmc_sysc
,
601 static struct omap_hwmod dm81xx_gpmc_hwmod
= {
603 .clkdm_name
= "alwon_l3s_clkdm",
604 .class = &dm81xx_gpmc_hwmod_class
,
605 .main_clk
= "sysclk6_ck",
606 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
607 .flags
= DEBUG_OMAP_GPMC_HWMOD_FLAGS
,
610 .clkctrl_offs
= DM81XX_CM_ALWON_GPMC_CLKCTRL
,
611 .modulemode
= MODULEMODE_SWCTRL
,
616 static struct omap_hwmod_ocp_if dm81xx_alwon_l3_slow__gpmc
= {
617 .master
= &dm81xx_alwon_l3_slow_hwmod
,
618 .slave
= &dm81xx_gpmc_hwmod
,
619 .user
= OCP_USER_MPU
,
622 /* USB needs udelay 1 after reset at least on hp t410, use 2 for margin */
623 static struct omap_hwmod_class_sysconfig dm81xx_usbhsotg_sysc
= {
627 .sysc_flags
= SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
629 .idlemodes
= SIDLE_SMART
| MSTANDBY_FORCE
| MSTANDBY_SMART
,
630 .sysc_fields
= &omap_hwmod_sysc_type2
,
633 static struct omap_hwmod_class dm81xx_usbotg_class
= {
635 .sysc
= &dm81xx_usbhsotg_sysc
,
638 static struct omap_hwmod dm814x_usbss_hwmod
= {
639 .name
= "usb_otg_hs",
640 .clkdm_name
= "default_l3_slow_clkdm",
641 .main_clk
= "pll260dcoclkldo", /* 481c5260.adpll.dcoclkldo */
644 .clkctrl_offs
= DM81XX_CM_DEFAULT_USB_CLKCTRL
,
645 .modulemode
= MODULEMODE_SWCTRL
,
648 .class = &dm81xx_usbotg_class
,
651 static struct omap_hwmod_ocp_if dm814x_default_l3_slow__usbss
= {
652 .master
= &dm81xx_default_l3_slow_hwmod
,
653 .slave
= &dm814x_usbss_hwmod
,
655 .user
= OCP_USER_MPU
,
658 static struct omap_hwmod dm816x_usbss_hwmod
= {
659 .name
= "usb_otg_hs",
660 .clkdm_name
= "default_l3_slow_clkdm",
661 .main_clk
= "sysclk6_ck",
664 .clkctrl_offs
= DM81XX_CM_DEFAULT_USB_CLKCTRL
,
665 .modulemode
= MODULEMODE_SWCTRL
,
668 .class = &dm81xx_usbotg_class
,
671 static struct omap_hwmod_ocp_if dm816x_default_l3_slow__usbss
= {
672 .master
= &dm81xx_default_l3_slow_hwmod
,
673 .slave
= &dm816x_usbss_hwmod
,
675 .user
= OCP_USER_MPU
,
678 static struct omap_hwmod_class_sysconfig dm816x_timer_sysc
= {
682 .sysc_flags
= SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
,
683 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
685 .sysc_fields
= &omap_hwmod_sysc_type2
,
688 static struct omap_hwmod_class dm816x_timer_hwmod_class
= {
690 .sysc
= &dm816x_timer_sysc
,
693 static struct omap_hwmod dm816x_timer3_hwmod
= {
695 .clkdm_name
= "alwon_l3s_clkdm",
696 .main_clk
= "timer3_fck",
699 .clkctrl_offs
= DM816X_CM_ALWON_TIMER_3_CLKCTRL
,
700 .modulemode
= MODULEMODE_SWCTRL
,
703 .class = &dm816x_timer_hwmod_class
,
706 static struct omap_hwmod_ocp_if dm816x_l4_ls__timer3
= {
707 .master
= &dm81xx_l4_ls_hwmod
,
708 .slave
= &dm816x_timer3_hwmod
,
710 .user
= OCP_USER_MPU
,
713 static struct omap_hwmod dm816x_timer4_hwmod
= {
715 .clkdm_name
= "alwon_l3s_clkdm",
716 .main_clk
= "timer4_fck",
719 .clkctrl_offs
= DM816X_CM_ALWON_TIMER_4_CLKCTRL
,
720 .modulemode
= MODULEMODE_SWCTRL
,
723 .class = &dm816x_timer_hwmod_class
,
726 static struct omap_hwmod_ocp_if dm816x_l4_ls__timer4
= {
727 .master
= &dm81xx_l4_ls_hwmod
,
728 .slave
= &dm816x_timer4_hwmod
,
730 .user
= OCP_USER_MPU
,
733 static struct omap_hwmod dm816x_timer5_hwmod
= {
735 .clkdm_name
= "alwon_l3s_clkdm",
736 .main_clk
= "timer5_fck",
739 .clkctrl_offs
= DM816X_CM_ALWON_TIMER_5_CLKCTRL
,
740 .modulemode
= MODULEMODE_SWCTRL
,
743 .class = &dm816x_timer_hwmod_class
,
746 static struct omap_hwmod_ocp_if dm816x_l4_ls__timer5
= {
747 .master
= &dm81xx_l4_ls_hwmod
,
748 .slave
= &dm816x_timer5_hwmod
,
750 .user
= OCP_USER_MPU
,
753 static struct omap_hwmod dm816x_timer6_hwmod
= {
755 .clkdm_name
= "alwon_l3s_clkdm",
756 .main_clk
= "timer6_fck",
759 .clkctrl_offs
= DM816X_CM_ALWON_TIMER_6_CLKCTRL
,
760 .modulemode
= MODULEMODE_SWCTRL
,
763 .class = &dm816x_timer_hwmod_class
,
766 static struct omap_hwmod_ocp_if dm816x_l4_ls__timer6
= {
767 .master
= &dm81xx_l4_ls_hwmod
,
768 .slave
= &dm816x_timer6_hwmod
,
770 .user
= OCP_USER_MPU
,
773 static struct omap_hwmod dm816x_timer7_hwmod
= {
775 .clkdm_name
= "alwon_l3s_clkdm",
776 .main_clk
= "timer7_fck",
779 .clkctrl_offs
= DM816X_CM_ALWON_TIMER_7_CLKCTRL
,
780 .modulemode
= MODULEMODE_SWCTRL
,
783 .class = &dm816x_timer_hwmod_class
,
786 static struct omap_hwmod_ocp_if dm816x_l4_ls__timer7
= {
787 .master
= &dm81xx_l4_ls_hwmod
,
788 .slave
= &dm816x_timer7_hwmod
,
790 .user
= OCP_USER_MPU
,
794 static struct omap_hwmod_class_sysconfig dm816x_emac_sysc
= {
797 .sysc_flags
= SYSC_HAS_SOFTRESET
,
798 .sysc_fields
= &omap_hwmod_sysc_type2
,
801 static struct omap_hwmod_class dm816x_emac_hwmod_class
= {
803 .sysc
= &dm816x_emac_sysc
,
807 * On dm816x the MDIO is within EMAC0. As the MDIO driver is a separate
808 * driver probed before EMAC0, we let MDIO do the clock idling.
810 static struct omap_hwmod dm816x_emac0_hwmod
= {
812 .clkdm_name
= "alwon_ethernet_clkdm",
813 .class = &dm816x_emac_hwmod_class
,
814 .flags
= HWMOD_NO_IDLEST
,
817 static struct omap_hwmod_ocp_if dm81xx_l4_hs__emac0
= {
818 .master
= &dm81xx_l4_hs_hwmod
,
819 .slave
= &dm816x_emac0_hwmod
,
821 .user
= OCP_USER_MPU
,
824 static struct omap_hwmod_class dm81xx_mdio_hwmod_class
= {
825 .name
= "davinci_mdio",
826 .sysc
= &dm816x_emac_sysc
,
829 static struct omap_hwmod dm81xx_emac0_mdio_hwmod
= {
830 .name
= "davinci_mdio",
831 .class = &dm81xx_mdio_hwmod_class
,
832 .clkdm_name
= "alwon_ethernet_clkdm",
833 .main_clk
= "sysclk24_ck",
834 .flags
= HWMOD_NO_IDLEST
,
836 * REVISIT: This should be moved to the emac0_hwmod
837 * once we have a better way to handle device slaves.
841 .clkctrl_offs
= DM81XX_CM_ALWON_ETHERNET_0_CLKCTRL
,
842 .modulemode
= MODULEMODE_SWCTRL
,
847 static struct omap_hwmod_ocp_if dm81xx_emac0__mdio
= {
848 .master
= &dm81xx_l4_hs_hwmod
,
849 .slave
= &dm81xx_emac0_mdio_hwmod
,
850 .user
= OCP_USER_MPU
,
853 static struct omap_hwmod dm816x_emac1_hwmod
= {
855 .clkdm_name
= "alwon_ethernet_clkdm",
856 .main_clk
= "sysclk24_ck",
857 .flags
= HWMOD_NO_IDLEST
,
860 .clkctrl_offs
= DM816X_CM_ALWON_ETHERNET_1_CLKCTRL
,
861 .modulemode
= MODULEMODE_SWCTRL
,
864 .class = &dm816x_emac_hwmod_class
,
867 static struct omap_hwmod_ocp_if dm816x_l4_hs__emac1
= {
868 .master
= &dm81xx_l4_hs_hwmod
,
869 .slave
= &dm816x_emac1_hwmod
,
871 .user
= OCP_USER_MPU
,
874 static struct omap_hwmod_class_sysconfig dm81xx_sata_sysc
= {
877 .sysc_flags
= SYSC_HAS_SIDLEMODE
,
878 .idlemodes
= SIDLE_FORCE
,
879 .sysc_fields
= &omap_hwmod_sysc_type3
,
882 static struct omap_hwmod_class dm81xx_sata_hwmod_class
= {
884 .sysc
= &dm81xx_sata_sysc
,
887 static struct omap_hwmod dm81xx_sata_hwmod
= {
889 .clkdm_name
= "default_clkdm",
890 .flags
= HWMOD_NO_IDLEST
,
893 .clkctrl_offs
= DM81XX_CM_DEFAULT_SATA_CLKCTRL
,
894 .modulemode
= MODULEMODE_SWCTRL
,
897 .class = &dm81xx_sata_hwmod_class
,
900 static struct omap_hwmod_ocp_if dm81xx_l4_hs__sata
= {
901 .master
= &dm81xx_l4_hs_hwmod
,
902 .slave
= &dm81xx_sata_hwmod
,
904 .user
= OCP_USER_MPU
,
907 static struct omap_hwmod_class_sysconfig dm81xx_mmc_sysc
= {
911 .sysc_flags
= SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
912 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
913 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
,
914 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
915 .sysc_fields
= &omap_hwmod_sysc_type1
,
918 static struct omap_hwmod_class dm81xx_mmc_class
= {
920 .sysc
= &dm81xx_mmc_sysc
,
923 static struct omap_hwmod_opt_clk dm81xx_mmc_opt_clks
[] = {
924 { .role
= "dbck", .clk
= "sysclk18_ck", },
927 static struct omap_hsmmc_dev_attr mmc_dev_attr
= {
930 static struct omap_hwmod dm814x_mmc1_hwmod
= {
932 .clkdm_name
= "alwon_l3s_clkdm",
933 .opt_clks
= dm81xx_mmc_opt_clks
,
934 .opt_clks_cnt
= ARRAY_SIZE(dm81xx_mmc_opt_clks
),
935 .main_clk
= "sysclk8_ck",
938 .clkctrl_offs
= DM814X_CM_ALWON_MMCHS_0_CLKCTRL
,
939 .modulemode
= MODULEMODE_SWCTRL
,
942 .dev_attr
= &mmc_dev_attr
,
943 .class = &dm81xx_mmc_class
,
946 static struct omap_hwmod_ocp_if dm814x_l4_ls__mmc1
= {
947 .master
= &dm81xx_l4_ls_hwmod
,
948 .slave
= &dm814x_mmc1_hwmod
,
950 .user
= OCP_USER_MPU
,
951 .flags
= OMAP_FIREWALL_L4
954 static struct omap_hwmod dm814x_mmc2_hwmod
= {
956 .clkdm_name
= "alwon_l3s_clkdm",
957 .opt_clks
= dm81xx_mmc_opt_clks
,
958 .opt_clks_cnt
= ARRAY_SIZE(dm81xx_mmc_opt_clks
),
959 .main_clk
= "sysclk8_ck",
962 .clkctrl_offs
= DM814X_CM_ALWON_MMCHS_1_CLKCTRL
,
963 .modulemode
= MODULEMODE_SWCTRL
,
966 .dev_attr
= &mmc_dev_attr
,
967 .class = &dm81xx_mmc_class
,
970 static struct omap_hwmod_ocp_if dm814x_l4_ls__mmc2
= {
971 .master
= &dm81xx_l4_ls_hwmod
,
972 .slave
= &dm814x_mmc2_hwmod
,
974 .user
= OCP_USER_MPU
,
975 .flags
= OMAP_FIREWALL_L4
978 static struct omap_hwmod dm814x_mmc3_hwmod
= {
980 .clkdm_name
= "alwon_l3_med_clkdm",
981 .opt_clks
= dm81xx_mmc_opt_clks
,
982 .opt_clks_cnt
= ARRAY_SIZE(dm81xx_mmc_opt_clks
),
983 .main_clk
= "sysclk8_ck",
986 .clkctrl_offs
= DM814X_CM_ALWON_MMCHS_2_CLKCTRL
,
987 .modulemode
= MODULEMODE_SWCTRL
,
990 .dev_attr
= &mmc_dev_attr
,
991 .class = &dm81xx_mmc_class
,
994 static struct omap_hwmod_ocp_if dm814x_alwon_l3_med__mmc3
= {
995 .master
= &dm81xx_alwon_l3_med_hwmod
,
996 .slave
= &dm814x_mmc3_hwmod
,
998 .user
= OCP_USER_MPU
,
1001 static struct omap_hwmod dm816x_mmc1_hwmod
= {
1003 .clkdm_name
= "alwon_l3s_clkdm",
1004 .opt_clks
= dm81xx_mmc_opt_clks
,
1005 .opt_clks_cnt
= ARRAY_SIZE(dm81xx_mmc_opt_clks
),
1006 .main_clk
= "sysclk10_ck",
1009 .clkctrl_offs
= DM816X_CM_ALWON_SDIO_CLKCTRL
,
1010 .modulemode
= MODULEMODE_SWCTRL
,
1013 .dev_attr
= &mmc_dev_attr
,
1014 .class = &dm81xx_mmc_class
,
1017 static struct omap_hwmod_ocp_if dm816x_l4_ls__mmc1
= {
1018 .master
= &dm81xx_l4_ls_hwmod
,
1019 .slave
= &dm816x_mmc1_hwmod
,
1020 .clk
= "sysclk6_ck",
1021 .user
= OCP_USER_MPU
,
1022 .flags
= OMAP_FIREWALL_L4
1025 static struct omap_hwmod_class_sysconfig dm816x_mcspi_sysc
= {
1029 .sysc_flags
= SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1030 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
1031 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
,
1032 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
1033 .sysc_fields
= &omap_hwmod_sysc_type1
,
1036 static struct omap_hwmod_class dm816x_mcspi_class
= {
1038 .sysc
= &dm816x_mcspi_sysc
,
1041 static struct omap_hwmod dm81xx_mcspi1_hwmod
= {
1043 .clkdm_name
= "alwon_l3s_clkdm",
1044 .main_clk
= "sysclk10_ck",
1047 .clkctrl_offs
= DM81XX_CM_ALWON_SPI_CLKCTRL
,
1048 .modulemode
= MODULEMODE_SWCTRL
,
1051 .class = &dm816x_mcspi_class
,
1054 static struct omap_hwmod dm81xx_mcspi2_hwmod
= {
1056 .clkdm_name
= "alwon_l3s_clkdm",
1057 .main_clk
= "sysclk10_ck",
1060 .clkctrl_offs
= DM81XX_CM_ALWON_SPI_CLKCTRL
,
1061 .modulemode
= MODULEMODE_SWCTRL
,
1064 .class = &dm816x_mcspi_class
,
1067 static struct omap_hwmod dm81xx_mcspi3_hwmod
= {
1069 .clkdm_name
= "alwon_l3s_clkdm",
1070 .main_clk
= "sysclk10_ck",
1073 .clkctrl_offs
= DM81XX_CM_ALWON_SPI_CLKCTRL
,
1074 .modulemode
= MODULEMODE_SWCTRL
,
1077 .class = &dm816x_mcspi_class
,
1080 static struct omap_hwmod dm81xx_mcspi4_hwmod
= {
1082 .clkdm_name
= "alwon_l3s_clkdm",
1083 .main_clk
= "sysclk10_ck",
1086 .clkctrl_offs
= DM81XX_CM_ALWON_SPI_CLKCTRL
,
1087 .modulemode
= MODULEMODE_SWCTRL
,
1090 .class = &dm816x_mcspi_class
,
1093 static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi1
= {
1094 .master
= &dm81xx_l4_ls_hwmod
,
1095 .slave
= &dm81xx_mcspi1_hwmod
,
1096 .clk
= "sysclk6_ck",
1097 .user
= OCP_USER_MPU
,
1100 static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi2
= {
1101 .master
= &dm81xx_l4_ls_hwmod
,
1102 .slave
= &dm81xx_mcspi2_hwmod
,
1103 .clk
= "sysclk6_ck",
1104 .user
= OCP_USER_MPU
,
1107 static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi3
= {
1108 .master
= &dm81xx_l4_ls_hwmod
,
1109 .slave
= &dm81xx_mcspi3_hwmod
,
1110 .clk
= "sysclk6_ck",
1111 .user
= OCP_USER_MPU
,
1114 static struct omap_hwmod_ocp_if dm81xx_l4_ls__mcspi4
= {
1115 .master
= &dm81xx_l4_ls_hwmod
,
1116 .slave
= &dm81xx_mcspi4_hwmod
,
1117 .clk
= "sysclk6_ck",
1118 .user
= OCP_USER_MPU
,
1121 static struct omap_hwmod_class_sysconfig dm81xx_mailbox_sysc
= {
1125 .sysc_flags
= SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1126 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
,
1127 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
1128 .sysc_fields
= &omap_hwmod_sysc_type1
,
1131 static struct omap_hwmod_class dm81xx_mailbox_hwmod_class
= {
1133 .sysc
= &dm81xx_mailbox_sysc
,
1136 static struct omap_hwmod dm81xx_mailbox_hwmod
= {
1138 .clkdm_name
= "alwon_l3s_clkdm",
1139 .class = &dm81xx_mailbox_hwmod_class
,
1140 .main_clk
= "sysclk6_ck",
1143 .clkctrl_offs
= DM81XX_CM_ALWON_MAILBOX_CLKCTRL
,
1144 .modulemode
= MODULEMODE_SWCTRL
,
1149 static struct omap_hwmod_ocp_if dm81xx_l4_ls__mailbox
= {
1150 .master
= &dm81xx_l4_ls_hwmod
,
1151 .slave
= &dm81xx_mailbox_hwmod
,
1152 .clk
= "sysclk6_ck",
1153 .user
= OCP_USER_MPU
,
1156 static struct omap_hwmod_class_sysconfig dm81xx_spinbox_sysc
= {
1160 .sysc_flags
= SYSC_HAS_CLOCKACTIVITY
| SYSC_HAS_SIDLEMODE
|
1161 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
,
1162 .idlemodes
= SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
,
1163 .sysc_fields
= &omap_hwmod_sysc_type1
,
1166 static struct omap_hwmod_class dm81xx_spinbox_hwmod_class
= {
1168 .sysc
= &dm81xx_spinbox_sysc
,
1171 static struct omap_hwmod dm81xx_spinbox_hwmod
= {
1173 .clkdm_name
= "alwon_l3s_clkdm",
1174 .class = &dm81xx_spinbox_hwmod_class
,
1175 .main_clk
= "sysclk6_ck",
1178 .clkctrl_offs
= DM81XX_CM_ALWON_SPINBOX_CLKCTRL
,
1179 .modulemode
= MODULEMODE_SWCTRL
,
1184 static struct omap_hwmod_ocp_if dm81xx_l4_ls__spinbox
= {
1185 .master
= &dm81xx_l4_ls_hwmod
,
1186 .slave
= &dm81xx_spinbox_hwmod
,
1187 .clk
= "sysclk6_ck",
1188 .user
= OCP_USER_MPU
,
1192 * REVISIT: Test and enable the following once clocks work:
1193 * dm81xx_l4_ls__mailbox
1195 * Also note that some devices share a single clkctrl_offs..
1196 * For example, i2c1 and 3 share one, and i2c2 and 4 share one.
1198 static struct omap_hwmod_ocp_if
*dm814x_hwmod_ocp_ifs
[] __initdata
= {
1199 &dm814x_mpu__alwon_l3_slow
,
1200 &dm814x_mpu__alwon_l3_med
,
1201 &dm81xx_alwon_l3_slow__l4_ls
,
1202 &dm81xx_alwon_l3_slow__l4_hs
,
1203 &dm81xx_l4_ls__uart1
,
1204 &dm81xx_l4_ls__uart2
,
1205 &dm81xx_l4_ls__uart3
,
1206 &dm81xx_l4_ls__wd_timer1
,
1207 &dm81xx_l4_ls__i2c1
,
1208 &dm81xx_l4_ls__i2c2
,
1209 &dm81xx_l4_ls__gpio1
,
1210 &dm81xx_l4_ls__gpio2
,
1211 &dm81xx_l4_ls__gpio3
,
1212 &dm81xx_l4_ls__gpio4
,
1214 &dm81xx_l4_ls__mcspi1
,
1215 &dm81xx_l4_ls__mcspi2
,
1216 &dm81xx_l4_ls__mcspi3
,
1217 &dm81xx_l4_ls__mcspi4
,
1218 &dm814x_l4_ls__mmc1
,
1219 &dm814x_l4_ls__mmc2
,
1221 &dm81xx_alwon_l3_slow__gpmc
,
1222 &dm814x_default_l3_slow__usbss
,
1223 &dm814x_alwon_l3_med__mmc3
,
1227 int __init
dm814x_hwmod_init(void)
1230 return omap_hwmod_register_links(dm814x_hwmod_ocp_ifs
);
1233 static struct omap_hwmod_ocp_if
*dm816x_hwmod_ocp_ifs
[] __initdata
= {
1234 &dm816x_mpu__alwon_l3_slow
,
1235 &dm816x_mpu__alwon_l3_med
,
1236 &dm81xx_alwon_l3_slow__l4_ls
,
1237 &dm81xx_alwon_l3_slow__l4_hs
,
1238 &dm81xx_l4_ls__uart1
,
1239 &dm81xx_l4_ls__uart2
,
1240 &dm81xx_l4_ls__uart3
,
1241 &dm81xx_l4_ls__wd_timer1
,
1242 &dm81xx_l4_ls__i2c1
,
1243 &dm81xx_l4_ls__i2c2
,
1244 &dm81xx_l4_ls__gpio1
,
1245 &dm81xx_l4_ls__gpio2
,
1248 &dm816x_l4_ls__mmc1
,
1249 &dm816x_l4_ls__timer3
,
1250 &dm816x_l4_ls__timer4
,
1251 &dm816x_l4_ls__timer5
,
1252 &dm816x_l4_ls__timer6
,
1253 &dm816x_l4_ls__timer7
,
1254 &dm81xx_l4_ls__mcspi1
,
1255 &dm81xx_l4_ls__mailbox
,
1256 &dm81xx_l4_ls__spinbox
,
1257 &dm81xx_l4_hs__emac0
,
1258 &dm81xx_emac0__mdio
,
1259 &dm816x_l4_hs__emac1
,
1260 &dm81xx_l4_hs__sata
,
1261 &dm81xx_alwon_l3_slow__gpmc
,
1262 &dm816x_default_l3_slow__usbss
,
1266 int __init
dm816x_hwmod_init(void)
1269 return omap_hwmod_register_links(dm816x_hwmod_ocp_ifs
);