summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenaud Barbier <renaud.barbier@ge.com>2012-09-10 12:21:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-11 10:06:09 +0200
commit4271879e3b82e2e4d52a46f7c4ef01461a786b5e (patch)
tree0143cf59226a328e6cc07f27f50afd5eeb76f37a
parent9c011ef7abd3d176522ffe97847f2fdd7af532b9 (diff)
downloadbarebox-4271879e3b82e2e4d52a46f7c4ef01461a786b5e.tar.gz
barebox-4271879e3b82e2e4d52a46f7c4ef01461a786b5e.tar.xz
fsl TSEC: register map boundary
The end boundary of each registers set may overlap with the start of the next register set. Subtract 1 to the end boundary. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/ppc/mach-mpc85xx/eth-devices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc/mach-mpc85xx/eth-devices.c b/arch/ppc/mach-mpc85xx/eth-devices.c
index 02a3722136..c6e8f3660d 100644
--- a/arch/ppc/mach-mpc85xx/eth-devices.c
+++ b/arch/ppc/mach-mpc85xx/eth-devices.c
@@ -32,15 +32,15 @@ int fsl_eth_init(int num, struct gfar_info_struct *gf)
res = xzalloc(3 * sizeof(struct resource));
/* TSEC interface registers */
res[0].start = GFAR_BASE_ADDR + ((num - 1) * 0x1000);
- res[0].end = res[0].start + 0x1000;
+ res[0].end = res[0].start + 0x1000 - 1;
res[0].flags = IORESOURCE_MEM;
/* External PHY access always through eTSEC1 */
res[1].start = MDIO_BASE_ADDR;
- res[1].end = res[1].start + 0x1000;
+ res[1].end = res[1].start + 0x1000 - 1;
res[1].flags = IORESOURCE_MEM;
/* Access to TBI/RTBI interface. */
res[2].start = MDIO_BASE_ADDR + ((num - 1) * 0x1000);
- res[2].end = res[2].start + 0x1000;
+ res[2].end = res[2].start + 0x1000 - 1;
res[2].flags = IORESOURCE_MEM;
add_generic_device_res("gfar", DEVICE_ID_DYNAMIC, res, 3, gf);