forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm/mach-ixp4xx/nas100d-setup.c
....@@ -34,6 +34,8 @@
3434 #include <asm/mach/arch.h>
3535 #include <asm/mach/flash.h>
3636
37
+#include "irqs.h"
38
+
3739 #define NAS100D_SDA_PIN 5
3840 #define NAS100D_SCL_PIN 6
3941
....@@ -163,6 +165,14 @@
163165 };
164166
165167 /* Built-in 10/100 Ethernet MAC interfaces */
168
+static struct resource nas100d_eth_resources[] = {
169
+ {
170
+ .start = IXP4XX_EthB_BASE_PHYS,
171
+ .end = IXP4XX_EthB_BASE_PHYS + 0x0fff,
172
+ .flags = IORESOURCE_MEM,
173
+ },
174
+};
175
+
166176 static struct eth_plat_info nas100d_plat_eth[] = {
167177 {
168178 .phy = 0,
....@@ -176,6 +186,8 @@
176186 .name = "ixp4xx_eth",
177187 .id = IXP4XX_ETH_NPEB,
178188 .dev.platform_data = nas100d_plat_eth,
189
+ .num_resources = ARRAY_SIZE(nas100d_eth_resources),
190
+ .resource = nas100d_eth_resources,
179191 }
180192 };
181193
....@@ -278,9 +290,6 @@
278290 int i;
279291
280292 ixp4xx_sys_init();
281
-
282
- /* gpio 14 and 15 are _not_ clocks */
283
- *IXP4XX_GPIO_GPCLKR = 0;
284293
285294 nas100d_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
286295 nas100d_flash_resource.end =