forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm/mach-ixp4xx/vulcan-setup.c
....@@ -22,6 +22,8 @@
2222 #include <asm/mach/arch.h>
2323 #include <asm/mach/flash.h>
2424
25
+#include "irqs.h"
26
+
2527 static struct flash_platform_data vulcan_flash_data = {
2628 .map_name = "cfi_probe",
2729 .width = 2,
....@@ -122,6 +124,22 @@
122124 .num_resources = ARRAY_SIZE(vulcan_uart_resources),
123125 };
124126
127
+static struct resource vulcan_npeb_resources[] = {
128
+ {
129
+ .start = IXP4XX_EthB_BASE_PHYS,
130
+ .end = IXP4XX_EthB_BASE_PHYS + 0x0fff,
131
+ .flags = IORESOURCE_MEM,
132
+ },
133
+};
134
+
135
+static struct resource vulcan_npec_resources[] = {
136
+ {
137
+ .start = IXP4XX_EthC_BASE_PHYS,
138
+ .end = IXP4XX_EthC_BASE_PHYS + 0x0fff,
139
+ .flags = IORESOURCE_MEM,
140
+ },
141
+};
142
+
125143 static struct eth_plat_info vulcan_plat_eth[] = {
126144 [0] = {
127145 .phy = 0,
....@@ -142,6 +160,8 @@
142160 .dev = {
143161 .platform_data = &vulcan_plat_eth[0],
144162 },
163
+ .num_resources = ARRAY_SIZE(vulcan_npeb_resources),
164
+ .resource = vulcan_npeb_resources,
145165 },
146166 [1] = {
147167 .name = "ixp4xx_eth",
....@@ -149,6 +169,8 @@
149169 .dev = {
150170 .platform_data = &vulcan_plat_eth[1],
151171 },
172
+ .num_resources = ARRAY_SIZE(vulcan_npec_resources),
173
+ .resource = vulcan_npec_resources,
152174 },
153175 };
154176