]> git.sur5r.net Git - u-boot/blobdiff - board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c
i2c: Drop use of CONFIG_I2C_HARD
[u-boot] / board / alphaproject / ap_sh4a_4a / ap_sh4a_4a.c
index b81a68d63d19d0c970602183732e14f24499192c..9205c22e0b5955d164a59dea820d8d58462d69f4 100644 (file)
@@ -11,8 +11,6 @@
 #include <netdev.h>
 #include <i2c.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 #define MODEMR                 (0xFFCC0020)
 #define MODEMR_MASK            (0x6)
 #define MODEMR_533MHZ  (0x2)
@@ -158,26 +156,7 @@ int board_init(void)
 
 int board_late_init(void)
 {
-       u8 mac[6];
-
-       /* Read Mac Address and set*/
-       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
-       i2c_set_bus_num(CONFIG_SYS_I2C_MODULE);
-
-       /* Read MAC address */
-       i2c_read(0x50, 0x0, 0, mac, 6);
-
-       if (is_valid_ether_addr(mac))
-               eth_setenv_enetaddr("ethaddr", mac);
-
-       return 0;
-}
-
-int dram_init(void)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
+       printf("Cannot use I2C to get MAC address\n");
 
        return 0;
 }