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); /* arch number of MEESC-Board */ gd->bd->bi_arch_number = MACH_TYPE_MEESC; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; at91_serial_hw_init(); #ifdef CONFIG_CMD_NAND meesc_nand_hw_init(); #endif meesc_ethercat_hw_init(); #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_MACB meesc_macb_hw_init(); #endif #ifdef CONFIG_AT91_CAN at91_can_hw_init(); #endif return 0; }
int board_init(void) { /* initialize ET1100 Controller */ meesc_ethercat_hw_init(); /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_CMD_NAND meesc_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_MACB meesc_macb_hw_init(); #endif #ifdef CONFIG_AT91_CAN at91_can_hw_init(); #endif #ifdef CONFIG_USB_OHCI_NEW at91_uhp_hw_init(); #endif return 0; }