hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/mach-omap2/omap_hwmod_2430_data.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
34 *
....@@ -5,17 +6,12 @@
56 * Copyright (C) 2012 Texas Instruments, Inc.
67 * Paul Walmsley
78 *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
129 * XXX handle crossbar/shared link difference for L3?
1310 * XXX these should be marked initdata for multi-OMAP kernels
1411 */
1512
1613 #include <linux/platform_data/i2c-omap.h>
1714 #include <linux/platform_data/hsmmc-omap.h>
18
-#include <linux/omap-dma.h>
1915
2016 #include "omap_hwmod.h"
2117 #include "l3_2xxx.h"
....@@ -68,7 +64,6 @@
6864 static struct omap_hwmod_class i2c_class = {
6965 .name = "i2c",
7066 .sysc = &i2c_sysc,
71
- .rev = OMAP_I2C_IP_VERSION_1,
7267 .reset = &omap_i2c_reset,
7368 };
7469
....@@ -123,21 +118,6 @@
123118 },
124119 },
125120 .class = &omap2xxx_gpio_hwmod_class,
126
-};
127
-
128
-/* dma attributes */
129
-static struct omap_dma_dev_attr dma_dev_attr = {
130
- .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
131
- IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
132
- .lch_count = 32,
133
-};
134
-
135
-static struct omap_hwmod omap2430_dma_system_hwmod = {
136
- .name = "dma",
137
- .class = &omap2xxx_dma_hwmod_class,
138
- .main_clk = "core_l3_ck",
139
- .dev_attr = &dma_dev_attr,
140
- .flags = HWMOD_NO_IDLEST,
141121 };
142122
143123 /* mailbox */
....@@ -456,14 +436,6 @@
456436 .user = OCP_USER_MPU | OCP_USER_SDMA,
457437 };
458438
459
-/* l4_wkup -> timer1 */
460
-static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
461
- .master = &omap2xxx_l4_wkup_hwmod,
462
- .slave = &omap2xxx_timer1_hwmod,
463
- .clk = "gpt1_ick",
464
- .user = OCP_USER_MPU | OCP_USER_SDMA,
465
-};
466
-
467439 /* l4_wkup -> wd_timer2 */
468440 static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
469441 .master = &omap2xxx_l4_wkup_hwmod,
....@@ -509,22 +481,6 @@
509481 .master = &omap2xxx_l4_core_hwmod,
510482 .slave = &omap2430_gpio5_hwmod,
511483 .clk = "gpio5_ick",
512
- .user = OCP_USER_MPU | OCP_USER_SDMA,
513
-};
514
-
515
-/* dma_system -> L3 */
516
-static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
517
- .master = &omap2430_dma_system_hwmod,
518
- .slave = &omap2xxx_l3_main_hwmod,
519
- .clk = "core_l3_ck",
520
- .user = OCP_USER_MPU | OCP_USER_SDMA,
521
-};
522
-
523
-/* l4_core -> dma_system */
524
-static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
525
- .master = &omap2xxx_l4_core_hwmod,
526
- .slave = &omap2430_dma_system_hwmod,
527
- .clk = "sdma_ick",
528484 .user = OCP_USER_MPU | OCP_USER_SDMA,
529485 };
530486
....@@ -584,14 +540,6 @@
584540 .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE,
585541 };
586542
587
-/* l4_wkup -> 32ksync_counter */
588
-static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = {
589
- .master = &omap2xxx_l4_wkup_hwmod,
590
- .slave = &omap2xxx_counter_32k_hwmod,
591
- .clk = "sync_32k_ick",
592
- .user = OCP_USER_MPU | OCP_USER_SDMA,
593
-};
594
-
595543 static struct omap_hwmod_ocp_if omap2430_l3__gpmc = {
596544 .master = &omap2xxx_l3_main_hwmod,
597545 .slave = &omap2xxx_gpmc_hwmod,
....@@ -617,8 +565,6 @@
617565 &omap2xxx_l4_core__mcspi2,
618566 &omap2430_l4_core__mcspi3,
619567 &omap2430_l3__iva,
620
- &omap2430_l4_wkup__timer1,
621
- &omap2xxx_l4_core__timer2,
622568 &omap2xxx_l4_core__timer3,
623569 &omap2xxx_l4_core__timer4,
624570 &omap2xxx_l4_core__timer5,
....@@ -639,8 +585,6 @@
639585 &omap2430_l4_wkup__gpio3,
640586 &omap2430_l4_wkup__gpio4,
641587 &omap2430_l4_core__gpio5,
642
- &omap2430_dma_system__l3,
643
- &omap2430_l4_core__dma_system,
644588 &omap2430_l4_core__mailbox,
645589 &omap2430_l4_core__mcbsp1,
646590 &omap2430_l4_core__mcbsp2,
....@@ -651,7 +595,6 @@
651595 &omap2xxx_l4_core__rng,
652596 &omap2xxx_l4_core__sham,
653597 &omap2xxx_l4_core__aes,
654
- &omap2430_l4_wkup__counter_32k,
655598 &omap2430_l3__gpmc,
656599 NULL,
657600 };