Skip to content
Snippets Groups Projects
Commit c60dc852 authored by Stefan Roese's avatar Stefan Roese Committed by Wolfgang Denk
Browse files

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: default avatarStefan Roese <sr@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
Acked-by: default avatarHeiko <Schocher&lt;hs@denx.de>
parent 58f10460
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment