X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=cpu%2Fmpc512x%2Fi2c.c;h=77a6f0dc48fc8bd2af3d40de284e763c7b6ad174;hb=6d0f6bcf337c5261c08fabe12982178c2c489d76;hp=56ba44372694ac44b2246a5ef854600b9c2c5aac;hpb=71edc271816ec82cf0550dd6980be2da3cc2ad9e;p=karo-tx-uboot.git diff --git a/cpu/mpc512x/i2c.c b/cpu/mpc512x/i2c.c index 56ba443726..77a6f0dc48 100644 --- a/cpu/mpc512x/i2c.c +++ b/cpu/mpc512x/i2c.c @@ -32,7 +32,7 @@ DECLARE_GLOBAL_DATA_PTR; #include #include -#define immr ((immap_t *)CFG_IMMR) +#define immr ((immap_t *)CONFIG_SYS_IMMR) /* by default set I2C bus 0 active */ static unsigned int bus_num = 0; @@ -422,7 +422,7 @@ unsigned int i2c_get_bus_speed (void) int i2c_set_bus_speed (unsigned int speed) { - if (speed != CFG_I2C_SPEED) + if (speed != CONFIG_SYS_I2C_SPEED) return -1; return 0;