int board_init(void) { /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_NAND_ATMEL sama5d3xek_nand_hw_init(); #endif #ifdef CONFIG_MTD_NOR_FLASH sama5d3xek_nor_hw_init(); #endif #ifdef CONFIG_CMD_USB sama5d3xek_usb_hw_init(); #endif #ifdef CONFIG_USB_GADGET_ATMEL_USBA at91_udp_hw_init(); #endif #ifdef CONFIG_GENERIC_ATMEL_MCI sama5d3xek_mci_hw_init(); #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_MACB if (has_emac()) at91_macb_hw_init(); if (has_gmac()) at91_gmac_hw_init(); #endif #ifdef CONFIG_LCD if (has_lcdc()) sama5d3xek_lcd_hw_init(); #endif return 0; }
int board_init(void) { /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_NAND_ATMEL sama5d3_xplained_nand_hw_init(); #endif #ifdef CONFIG_CMD_USB sama5d3_xplained_usb_hw_init(); #endif #ifdef CONFIG_GENERIC_ATMEL_MCI sama5d3_xplained_mci0_hw_init(); #endif #ifdef CONFIG_MACB at91_gmac_hw_init(); at91_macb_hw_init(); #endif return 0; }