summaryrefslogtreecommitdiff
path: root/cpu/mpc512x
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-06-08 09:38:07 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:47:18 +0200
commitc60dc8527dbb2a1318c03bc18bdebcfbd0164551 (patch)
tree1f448bc0267d121dea5fc375b5cf070e7d8f9d52 /cpu/mpc512x
parent58f10460b05e0928d986b15edd4f2e1e99403f7e (diff)
mpc512x: Fix problem with I2C access before relocation
This is needed for the upcoming esd MECP5123 board port which uses I2C EEPROM for environment storage. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com> Acked-by: Heiko Schocher<hs@denx.de>
Diffstat (limited to 'cpu/mpc512x')
-rw-r--r--cpu/mpc512x/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc512x/i2c.c b/cpu/mpc512x/i2c.c
index 97bda0d84e..e2d909751e 100644
--- a/cpu/mpc512x/i2c.c
+++ b/cpu/mpc512x/i2c.c
@@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR;
#include <i2c.h>
/* by default set I2C bus 0 active */
-static unsigned int bus_num = 0;
+static unsigned int bus_num __attribute__ ((section (".data"))) = 0;
#define I2C_TIMEOUT 100
#define I2C_RETRIES 3