diff options
author | Tony Lindgren <tony@atomide.com> | 2015-10-23 21:13:38 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-10-23 21:13:38 -0400 |
commit | ef4da0c1c8f3ca3e9dcf6936bf687a32cd62f293 (patch) | |
tree | ad49f7ba9dce35f9169bdaaabc58c6e1f43f410a | |
parent | 55ee7017ee31a3abcc240e0d40284b02ddac92c8 (diff) | |
parent | c4384a97af852121f66e52ba96e98d6f13ad19eb (diff) |
Merge tag 'for-v4.4/omap-hwmod-cleanup-a' of git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending into omap-for-v4.4/soc
ARM: OMAP2+: hwmod cleanup for v4.4
Remove some superfluous data from the OMAP2+ hwmod data files. Mostly
this is a result of data being moved to DT files. Nothing too
controversial, here.
Basic build, boot, and PM test results are available here:
http://www.pwsan.com/omap/testlogs/hwmod-cleanup-a-for-v4.4/20151023130140/
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 29 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 30 |
5 files changed, 1 insertions, 91 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c index 8f5989d48a80..1c210cb2b8c1 100644 --- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c | |||
@@ -152,20 +152,10 @@ struct omap_hwmod_ocp_if am33xx_cpgmac0__mdio = { | |||
152 | .user = OCP_USER_MPU, | 152 | .user = OCP_USER_MPU, |
153 | }; | 153 | }; |
154 | 154 | ||
155 | static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = { | ||
156 | { | ||
157 | .pa_start = 0x48080000, | ||
158 | .pa_end = 0x48080000 + SZ_8K - 1, | ||
159 | .flags = ADDR_TYPE_RT | ||
160 | }, | ||
161 | { } | ||
162 | }; | ||
163 | |||
164 | struct omap_hwmod_ocp_if am33xx_l4_ls__elm = { | 155 | struct omap_hwmod_ocp_if am33xx_l4_ls__elm = { |
165 | .master = &am33xx_l4_ls_hwmod, | 156 | .master = &am33xx_l4_ls_hwmod, |
166 | .slave = &am33xx_elm_hwmod, | 157 | .slave = &am33xx_elm_hwmod, |
167 | .clk = "l4ls_gclk", | 158 | .clk = "l4ls_gclk", |
168 | .addr = am33xx_elm_addr_space, | ||
169 | .user = OCP_USER_MPU, | 159 | .user = OCP_USER_MPU, |
170 | }; | 160 | }; |
171 | 161 | ||
@@ -285,20 +275,10 @@ struct omap_hwmod_ocp_if am33xx_epwmss2__ehrpwm2 = { | |||
285 | }; | 275 | }; |
286 | 276 | ||
287 | /* l3s cfg -> gpmc */ | 277 | /* l3s cfg -> gpmc */ |
288 | static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = { | ||
289 | { | ||
290 | .pa_start = 0x50000000, | ||
291 | .pa_end = 0x50000000 + SZ_8K - 1, | ||
292 | .flags = ADDR_TYPE_RT, | ||
293 | }, | ||
294 | { } | ||
295 | }; | ||
296 | |||
297 | struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = { | 278 | struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = { |
298 | .master = &am33xx_l3_s_hwmod, | 279 | .master = &am33xx_l3_s_hwmod, |
299 | .slave = &am33xx_gpmc_hwmod, | 280 | .slave = &am33xx_gpmc_hwmod, |
300 | .clk = "l3s_gclk", | 281 | .clk = "l3s_gclk", |
301 | .addr = am33xx_gpmc_addr_space, | ||
302 | .user = OCP_USER_MPU, | 282 | .user = OCP_USER_MPU, |
303 | }; | 283 | }; |
304 | 284 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index dc55f8dedf2c..aff78d5198d2 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/platform_data/asoc-ti-mcbsp.h> | 26 | #include <linux/platform_data/asoc-ti-mcbsp.h> |
27 | #include <linux/platform_data/spi-omap2-mcspi.h> | 27 | #include <linux/platform_data/spi-omap2-mcspi.h> |
28 | #include <linux/platform_data/iommu-omap.h> | 28 | #include <linux/platform_data/iommu-omap.h> |
29 | #include <linux/platform_data/mailbox-omap.h> | ||
30 | #include <plat/dmtimer.h> | 29 | #include <plat/dmtimer.h> |
31 | 30 | ||
32 | #include "soc.h" | 31 | #include "soc.h" |
@@ -1506,26 +1505,9 @@ static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = { | |||
1506 | .sysc = &omap3xxx_mailbox_sysc, | 1505 | .sysc = &omap3xxx_mailbox_sysc, |
1507 | }; | 1506 | }; |
1508 | 1507 | ||
1509 | static struct omap_mbox_dev_info omap3xxx_mailbox_info[] = { | ||
1510 | { .name = "dsp", .tx_id = 0, .rx_id = 1 }, | ||
1511 | }; | ||
1512 | |||
1513 | static struct omap_mbox_pdata omap3xxx_mailbox_attrs = { | ||
1514 | .num_users = 2, | ||
1515 | .num_fifos = 2, | ||
1516 | .info_cnt = ARRAY_SIZE(omap3xxx_mailbox_info), | ||
1517 | .info = omap3xxx_mailbox_info, | ||
1518 | }; | ||
1519 | |||
1520 | static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = { | ||
1521 | { .irq = 26 + OMAP_INTC_START, }, | ||
1522 | { .irq = -1 }, | ||
1523 | }; | ||
1524 | |||
1525 | static struct omap_hwmod omap3xxx_mailbox_hwmod = { | 1508 | static struct omap_hwmod omap3xxx_mailbox_hwmod = { |
1526 | .name = "mailbox", | 1509 | .name = "mailbox", |
1527 | .class = &omap3xxx_mailbox_hwmod_class, | 1510 | .class = &omap3xxx_mailbox_hwmod_class, |
1528 | .mpu_irqs = omap3xxx_mailbox_irqs, | ||
1529 | .main_clk = "mailboxes_ick", | 1511 | .main_clk = "mailboxes_ick", |
1530 | .prcm = { | 1512 | .prcm = { |
1531 | .omap2 = { | 1513 | .omap2 = { |
@@ -1536,7 +1518,6 @@ static struct omap_hwmod omap3xxx_mailbox_hwmod = { | |||
1536 | .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT, | 1518 | .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT, |
1537 | }, | 1519 | }, |
1538 | }, | 1520 | }, |
1539 | .dev_attr = &omap3xxx_mailbox_attrs, | ||
1540 | }; | 1521 | }; |
1541 | 1522 | ||
1542 | /* | 1523 | /* |
@@ -3276,20 +3257,10 @@ static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = { | |||
3276 | .user = OCP_USER_MPU, | 3257 | .user = OCP_USER_MPU, |
3277 | }; | 3258 | }; |
3278 | 3259 | ||
3279 | static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = { | ||
3280 | { | ||
3281 | .pa_start = 0x48094000, | ||
3282 | .pa_end = 0x480941ff, | ||
3283 | .flags = ADDR_TYPE_RT, | ||
3284 | }, | ||
3285 | { } | ||
3286 | }; | ||
3287 | |||
3288 | /* l4_core -> mailbox */ | 3260 | /* l4_core -> mailbox */ |
3289 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = { | 3261 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = { |
3290 | .master = &omap3xxx_l4_core_hwmod, | 3262 | .master = &omap3xxx_l4_core_hwmod, |
3291 | .slave = &omap3xxx_mailbox_hwmod, | 3263 | .slave = &omap3xxx_mailbox_hwmod, |
3292 | .addr = omap3xxx_mailbox_addrs, | ||
3293 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 3264 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
3294 | }; | 3265 | }; |
3295 | 3266 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 43eebf2c59e2..a5e444b1e57a 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -4471,21 +4471,11 @@ static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = { | |||
4471 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 4471 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
4472 | }; | 4472 | }; |
4473 | 4473 | ||
4474 | static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = { | ||
4475 | { | ||
4476 | .pa_start = 0x4a0f6000, | ||
4477 | .pa_end = 0x4a0f6fff, | ||
4478 | .flags = ADDR_TYPE_RT | ||
4479 | }, | ||
4480 | { } | ||
4481 | }; | ||
4482 | |||
4483 | /* l4_cfg -> spinlock */ | 4474 | /* l4_cfg -> spinlock */ |
4484 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = { | 4475 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = { |
4485 | .master = &omap44xx_l4_cfg_hwmod, | 4476 | .master = &omap44xx_l4_cfg_hwmod, |
4486 | .slave = &omap44xx_spinlock_hwmod, | 4477 | .slave = &omap44xx_spinlock_hwmod, |
4487 | .clk = "l4_div_ck", | 4478 | .clk = "l4_div_ck", |
4488 | .addr = omap44xx_spinlock_addrs, | ||
4489 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 4479 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
4490 | }; | 4480 | }; |
4491 | 4481 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c b/arch/arm/mach-omap2/omap_hwmod_54xx_data.c index 7c3fac035e93..8cdfd9b7ab4f 100644 --- a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_54xx_data.c | |||
@@ -1844,8 +1844,7 @@ static struct omap_hwmod_class_sysconfig omap54xx_usb_host_hs_sysc = { | |||
1844 | .rev_offs = 0x0000, | 1844 | .rev_offs = 0x0000, |
1845 | .sysc_offs = 0x0010, | 1845 | .sysc_offs = 0x0010, |
1846 | .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS | | 1846 | .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS | |
1847 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | | 1847 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET), |
1848 | SYSC_HAS_RESET_STATUS), | ||
1849 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | | 1848 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
1850 | SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | | 1849 | SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | |
1851 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), | 1850 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), |
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 562247bced49..51d1ecb384bd 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c | |||
@@ -2566,21 +2566,11 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = { | |||
2566 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2566 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2567 | }; | 2567 | }; |
2568 | 2568 | ||
2569 | static struct omap_hwmod_addr_space dra7xx_elm_addrs[] = { | ||
2570 | { | ||
2571 | .pa_start = 0x48078000, | ||
2572 | .pa_end = 0x48078fff, | ||
2573 | .flags = ADDR_TYPE_RT | ||
2574 | }, | ||
2575 | { } | ||
2576 | }; | ||
2577 | |||
2578 | /* l4_per1 -> elm */ | 2569 | /* l4_per1 -> elm */ |
2579 | static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = { | 2570 | static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = { |
2580 | .master = &dra7xx_l4_per1_hwmod, | 2571 | .master = &dra7xx_l4_per1_hwmod, |
2581 | .slave = &dra7xx_elm_hwmod, | 2572 | .slave = &dra7xx_elm_hwmod, |
2582 | .clk = "l3_iclk_div", | 2573 | .clk = "l3_iclk_div", |
2583 | .addr = dra7xx_elm_addrs, | ||
2584 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2574 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2585 | }; | 2575 | }; |
2586 | 2576 | ||
@@ -2648,21 +2638,11 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per1__gpio8 = { | |||
2648 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2638 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2649 | }; | 2639 | }; |
2650 | 2640 | ||
2651 | static struct omap_hwmod_addr_space dra7xx_gpmc_addrs[] = { | ||
2652 | { | ||
2653 | .pa_start = 0x50000000, | ||
2654 | .pa_end = 0x500003ff, | ||
2655 | .flags = ADDR_TYPE_RT | ||
2656 | }, | ||
2657 | { } | ||
2658 | }; | ||
2659 | |||
2660 | /* l3_main_1 -> gpmc */ | 2641 | /* l3_main_1 -> gpmc */ |
2661 | static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = { | 2642 | static struct omap_hwmod_ocp_if dra7xx_l3_main_1__gpmc = { |
2662 | .master = &dra7xx_l3_main_1_hwmod, | 2643 | .master = &dra7xx_l3_main_1_hwmod, |
2663 | .slave = &dra7xx_gpmc_hwmod, | 2644 | .slave = &dra7xx_gpmc_hwmod, |
2664 | .clk = "l3_iclk_div", | 2645 | .clk = "l3_iclk_div", |
2665 | .addr = dra7xx_gpmc_addrs, | ||
2666 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2646 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2667 | }; | 2647 | }; |
2668 | 2648 | ||
@@ -3029,21 +3009,11 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__smartreflex_mpu = { | |||
3029 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 3009 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
3030 | }; | 3010 | }; |
3031 | 3011 | ||
3032 | static struct omap_hwmod_addr_space dra7xx_spinlock_addrs[] = { | ||
3033 | { | ||
3034 | .pa_start = 0x4a0f6000, | ||
3035 | .pa_end = 0x4a0f6fff, | ||
3036 | .flags = ADDR_TYPE_RT | ||
3037 | }, | ||
3038 | { } | ||
3039 | }; | ||
3040 | |||
3041 | /* l4_cfg -> spinlock */ | 3012 | /* l4_cfg -> spinlock */ |
3042 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = { | 3013 | static struct omap_hwmod_ocp_if dra7xx_l4_cfg__spinlock = { |
3043 | .master = &dra7xx_l4_cfg_hwmod, | 3014 | .master = &dra7xx_l4_cfg_hwmod, |
3044 | .slave = &dra7xx_spinlock_hwmod, | 3015 | .slave = &dra7xx_spinlock_hwmod, |
3045 | .clk = "l3_iclk_div", | 3016 | .clk = "l3_iclk_div", |
3046 | .addr = dra7xx_spinlock_addrs, | ||
3047 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 3017 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
3048 | }; | 3018 | }; |
3049 | 3019 | ||