int board_init(void) { /* initialize ET1100 Controller */ otc570_ethercat_hw_init(); /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_CMD_NAND otc570_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_MACB otc570_macb_hw_init(); #endif #ifdef CONFIG_AT91_CAN at91_can_hw_init(); #endif #ifdef CONFIG_USB_OHCI_NEW at91_uhp_hw_init(); #endif #ifdef CONFIG_LCD otc570_lcd_hw_init(); #endif return 0; }
int board_init(void) { /* Peripheral Clock Enable Register */ at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9263_ID_PIOA | 1 << AT91SAM9263_ID_PIOB | 1 << AT91SAM9263_ID_PIOCDE | 1 << AT91SAM9263_ID_TWI | 1 << AT91SAM9263_ID_SPI0 | 1 << AT91SAM9263_ID_LCDC | 1 << AT91SAM9263_ID_UHP); /* arch number of OTC570-Board */ gd->bd->bi_arch_number = MACH_TYPE_OTC570; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; at91_serial_hw_init(); #ifdef CONFIG_CMD_NAND otc570_nand_hw_init(); #endif otc570_ethercat_hw_init(); #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_MACB otc570_macb_hw_init(); #endif #ifdef CONFIG_AT91_CAN at91_can_hw_init(); #endif #ifdef CONFIG_USB_OHCI_NEW at91_uhp_hw_init(); #endif #ifdef CONFIG_LCD otc570_lcd_hw_init(); #endif return 0; }