forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm/mach-ixp4xx/fsg-setup.c
....@@ -29,6 +29,8 @@
2929 #include <asm/mach/arch.h>
3030 #include <asm/mach/flash.h>
3131
32
+#include "irqs.h"
33
+
3234 #define FSG_SDA_PIN 12
3335 #define FSG_SCL_PIN 13
3436
....@@ -130,6 +132,22 @@
130132 };
131133
132134 /* Built-in 10/100 Ethernet MAC interfaces */
135
+static struct resource fsg_eth_npeb_resources[] = {
136
+ {
137
+ .start = IXP4XX_EthB_BASE_PHYS,
138
+ .end = IXP4XX_EthB_BASE_PHYS + 0x0fff,
139
+ .flags = IORESOURCE_MEM,
140
+ },
141
+};
142
+
143
+static struct resource fsg_eth_npec_resources[] = {
144
+ {
145
+ .start = IXP4XX_EthC_BASE_PHYS,
146
+ .end = IXP4XX_EthC_BASE_PHYS + 0x0fff,
147
+ .flags = IORESOURCE_MEM,
148
+ },
149
+};
150
+
133151 static struct eth_plat_info fsg_plat_eth[] = {
134152 {
135153 .phy = 5,
....@@ -149,12 +167,16 @@
149167 .dev = {
150168 .platform_data = fsg_plat_eth,
151169 },
170
+ .num_resources = ARRAY_SIZE(fsg_eth_npeb_resources),
171
+ .resource = fsg_eth_npeb_resources,
152172 }, {
153173 .name = "ixp4xx_eth",
154174 .id = IXP4XX_ETH_NPEC,
155175 .dev = {
156176 .platform_data = fsg_plat_eth + 1,
157177 },
178
+ .num_resources = ARRAY_SIZE(fsg_eth_npec_resources),
179
+ .resource = fsg_eth_npec_resources,
158180 }
159181 };
160182