]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/renesas/ecovec/ecovec.c
Merge branch 'master' of git://git.denx.de/u-boot-usb
[karo-tx-uboot.git] / board / renesas / ecovec / ecovec.c
index e2d365a1875112dcd96ae962de7b148eecba9995..d862d997e5607aa7eb69d6d61b6ea8e606102a52 100644 (file)
@@ -41,7 +41,7 @@ static void debug_led(u8 led)
 int board_late_init(void)
 {
        u8 mac[6];
-       char env_mac[17];
+       char env_mac[18];
 
        udelay(1000);
 
@@ -57,8 +57,7 @@ int board_late_init(void)
 
        outl(inl(MSTPCR2) & ~0x10000000, MSTPCR2);
 
-       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
-       i2c_set_bus_num(CONFIG_SYS_I2C_MODULE); /* Use I2C 1 */
+       i2c_set_bus_num(1); /* Use I2C 1 */
 
        /* Read MAC address */
        i2c_read(0x50, 0x10, 0, mac, 6);
@@ -77,7 +76,7 @@ int board_init(void)
 {
 
        /* LED (PTG) */
-       outw((inw(PGCR) & ~0xFF) | 0x66, PGCR);
+       outw((inw(PGCR) & ~0xFF) | 0x55, PGCR);
        outw((inw(HIZCRA) & ~0x02), HIZCRA);
 
        debug_led(1 << 0);
@@ -98,7 +97,7 @@ int board_init(void)
        /* USB host */
        outw((inw(PBCR) & ~0x300) | 0x100, PBCR);
        outb((inb(PBDR) & ~0x10) | 0x10, PBDR);
-       outl(inl(MSTPCR2) & 0x100000, MSTPCR2);
+       outl(inl(MSTPCR2) & ~0x100000, MSTPCR2);
        outw(0x0600, UPONCR0);
 
        debug_led(1 << 3);