]> git.sur5r.net Git - u-boot/blobdiff - board/cm41xx/cm41xx.c
i.MX6: crm_regs: define IOMUXC_GPR4/6/7
[u-boot] / board / cm41xx / cm41xx.c
index 65eaa942c54c3a03484e50cae6b5143f3bd573ca..d9dff4e1e5cf87eb22e517e481b6c2c8b683a7c2 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 CM41xx */
        gd->bd->bi_arch_number = 672;
 
@@ -92,8 +97,6 @@ int board_init (void)
 
 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;