#include <common.h>
#include <asm/arch/platform.h>
+#include <netdev.h>
+
+DECLARE_GLOBAL_DATA_PTR;
/* ------------------------------------------------------------------------- */
*/
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 */
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;
/* 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;