dm36x: revert cache disable patch
[oweals/u-boot.git] / board / cm4008 / cm4008.c
index a306f25cab43c053daa00f262f595c2db112b233..ed493a8588d0c22e4943554eeb3f2cd3ddb5e096 100644 (file)
@@ -30,6 +30,9 @@
 
 #include <common.h>
 #include <asm/arch/platform.h>
+#include <netdev.h>
+
+DECLARE_GLOBAL_DATA_PTR;
 
 /* ------------------------------------------------------------------------- */
 
@@ -44,8 +47,8 @@
  */
 int env_flash_cmdline (void)
 {
-       unsigned char *sp = (unsigned char *) 0x0201c020;
-       unsigned char *ep;
+       char *sp = (char *) 0x0201c020;
+       char *ep;
        int len;
 
        /* Check if "erase" push button is depressed */
@@ -72,11 +75,13 @@ int board_late_init (void)
        return 0;
 }
 
+int board_eth_init(bd_t *bis)
+{
+       return ks8695_eth_initialize();
+}
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of CM4008 */
        gd->bd->bi_arch_number = 624;
 
@@ -86,14 +91,12 @@ int board_init (void)
        /* power down all but port 0 on the switch */
        ks8695_write(KS8695_SWITCH_LPPM12, 0x00000005);
        ks8695_write(KS8695_SWITCH_LPPM34, 0x00050005);
-       
+
        return 0;
 }
 
 int dram_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size  = PHYS_SDRAM_1_SIZE;