int board_init(void) { /* arch number of AT91SAM9G20EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; #ifdef CONFIG_CMD_NAND at91sam9g20ek_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH at91sam9g20ek_spi_hw_init(); #endif #ifdef CONFIG_MACB at91sam9g20ek_macb_hw_init(); #endif /** Setup MMC/SD Peripheral **/ at91_set_A_periph(AT91_PIN_PA6, 1); at91_set_A_periph(AT91_PIN_PA7, 1); at91_set_A_periph(AT91_PIN_PA8, 0); at91_set_A_periph(AT91_PIN_PA9, 1); at91_set_A_periph(AT91_PIN_PA10, 1); at91_set_A_periph(AT91_PIN_PA11, 1); at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_MCI); /** Setup serial ports **/ at91_serial_hw_init(); return 0; }
int board_init(void) { /* Enable Ctrlc */ console_init_f(); /* arch number of AT91SAM9G20EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; at91sam9g20ek_serial_hw_init(); #ifdef CONFIG_CMD_NAND at91sam9g20ek_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH at91sam9g20ek_spi_hw_init(); #endif #ifdef CONFIG_MACB at91sam9g20ek_macb_hw_init(); #endif return 0; }