| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/mach-ixp4xx/omixp-setup.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * based nslu2-setup.c, ixdp425-setup.c: |
|---|
| 8 | 9 | * 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. |
|---|
| 13 | 10 | */ |
|---|
| 14 | 11 | |
|---|
| 15 | 12 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 26 | 23 | #include <asm/mach/flash.h> |
|---|
| 27 | 24 | |
|---|
| 28 | 25 | #include <mach/hardware.h> |
|---|
| 26 | + |
|---|
| 27 | +#include "irqs.h" |
|---|
| 29 | 28 | |
|---|
| 30 | 29 | static struct resource omixp_flash_resources[] = { |
|---|
| 31 | 30 | { |
|---|
| .. | .. |
|---|
| 171 | 170 | }; |
|---|
| 172 | 171 | |
|---|
| 173 | 172 | /* 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 | + |
|---|
| 174 | 189 | static struct eth_plat_info ixdp425_plat_eth[] = { |
|---|
| 175 | 190 | { |
|---|
| 176 | 191 | .phy = 0, |
|---|
| .. | .. |
|---|
| 188 | 203 | .name = "ixp4xx_eth", |
|---|
| 189 | 204 | .id = IXP4XX_ETH_NPEB, |
|---|
| 190 | 205 | .dev.platform_data = ixdp425_plat_eth, |
|---|
| 206 | + .num_resources = ARRAY_SIZE(ixp425_npeb_resources), |
|---|
| 207 | + .resource = ixp425_npeb_resources, |
|---|
| 191 | 208 | }, { |
|---|
| 192 | 209 | .name = "ixp4xx_eth", |
|---|
| 193 | 210 | .id = IXP4XX_ETH_NPEC, |
|---|
| 194 | 211 | .dev.platform_data = ixdp425_plat_eth + 1, |
|---|
| 212 | + .num_resources = ARRAY_SIZE(ixp425_npec_resources), |
|---|
| 213 | + .resource = ixp425_npec_resources, |
|---|
| 195 | 214 | }, |
|---|
| 196 | 215 | }; |
|---|
| 197 | 216 | |
|---|