forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/arm/mach-ixp4xx/omixp-setup.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * arch/arm/mach-ixp4xx/omixp-setup.c
34 *
....@@ -6,10 +7,6 @@
67 *
78 * based nslu2-setup.c, ixdp425-setup.c:
89 * Copyright (C) 2003-2004 MontaVista Software, Inc.
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation.
1310 */
1411
1512 #include <linux/kernel.h>
....@@ -26,6 +23,8 @@
2623 #include <asm/mach/flash.h>
2724
2825 #include <mach/hardware.h>
26
+
27
+#include "irqs.h"
2928
3029 static struct resource omixp_flash_resources[] = {
3130 {
....@@ -171,6 +170,22 @@
171170 };
172171
173172 /* Built-in 10/100 Ethernet MAC interfaces */
173
+static struct resource ixp425_npeb_resources[] = {
174
+ {
175
+ .start = IXP4XX_EthB_BASE_PHYS,
176
+ .end = IXP4XX_EthB_BASE_PHYS + 0x0fff,
177
+ .flags = IORESOURCE_MEM,
178
+ },
179
+};
180
+
181
+static struct resource ixp425_npec_resources[] = {
182
+ {
183
+ .start = IXP4XX_EthC_BASE_PHYS,
184
+ .end = IXP4XX_EthC_BASE_PHYS + 0x0fff,
185
+ .flags = IORESOURCE_MEM,
186
+ },
187
+};
188
+
174189 static struct eth_plat_info ixdp425_plat_eth[] = {
175190 {
176191 .phy = 0,
....@@ -188,10 +203,14 @@
188203 .name = "ixp4xx_eth",
189204 .id = IXP4XX_ETH_NPEB,
190205 .dev.platform_data = ixdp425_plat_eth,
206
+ .num_resources = ARRAY_SIZE(ixp425_npeb_resources),
207
+ .resource = ixp425_npeb_resources,
191208 }, {
192209 .name = "ixp4xx_eth",
193210 .id = IXP4XX_ETH_NPEC,
194211 .dev.platform_data = ixdp425_plat_eth + 1,
212
+ .num_resources = ARRAY_SIZE(ixp425_npec_resources),
213
+ .resource = ixp425_npec_resources,
195214 },
196215 };
197216