int board_early_init_f(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; /* Enable clocks for all PIOs */ writel((1 << ATMEL_ID_PIOA) | (1 << ATMEL_ID_PIOB) | (1 << ATMEL_ID_PIOC) | (1 << ATMEL_ID_PIODE), &pmc->pcer); at91_seriald_hw_init(); return 0; }
int board_init(void) { /* Adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; /* Enable the serial interface */ at91_set_gpio_output(AT91_PIN_PC9, 1); at91_seriald_hw_init(); stamp9G20_nand_hw_init(); #ifdef CONFIG_MACB stamp9G20_macb_hw_init(); #endif return 0; }
int board_init(void) { /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; at91_seriald_hw_init(); sbc35_a9g20_nand_hw_init(); #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 4 | 1 << 5); #endif #ifdef CONFIG_MACB sbc35_a9g20_macb_hw_init(); #endif return 0; }
int board_init(void) { /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; at91_seriald_hw_init(); #ifdef CONFIG_CMD_NAND at91sam9260ek_nand_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init((1 << 0) | (1 << 1)); #endif #ifdef CONFIG_MACB at91sam9260ek_macb_hw_init(); #endif return 0; }
int board_init(void) { at91_periph_clk_enable(ATMEL_ID_PIOA); at91_periph_clk_enable(ATMEL_ID_PIOB); at91_periph_clk_enable(ATMEL_ID_PIOC); /* The mach-type is the same for both Snapper 9260 and 9G20 */ gd->bd->bi_arch_number = MACH_TYPE_SNAPPER_9260; /* Address of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; /* Initialise peripherals */ at91_seriald_hw_init(); i2c_set_bus_num(0); nand_hw_init(); macb_hw_init(); return 0; }
int board_init(void) { /* Enable Ctrlc */ console_init_f(); gd->bd->bi_arch_number = MACH_TYPE_SBC35_A9G20; /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; at91_seriald_hw_init(); sbc35_a9g20_nand_hw_init(); #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 4 | 1 << 5); #endif #ifdef CONFIG_MACB sbc35_a9g20_macb_hw_init(); #endif return 0; }
int board_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; /* Enable PIO clocks */ writel((1 << ATMEL_ID_PIOA) | (1 << ATMEL_ID_PIOB) | (1 << ATMEL_ID_PIOC), &pmc->pcer); /* The mach-type is the same for both Snapper 9260 and 9G20 */ gd->bd->bi_arch_number = MACH_TYPE_SNAPPER_9260; /* Address of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; /* Initialise peripherals */ at91_seriald_hw_init(); i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); nand_hw_init(); macb_hw_init(); return 0; }
int board_early_init_f(void) { at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; /* enable all clocks */ writel((1 << ATMEL_ID_PIOA) | (1 << ATMEL_ID_PIOB) | (1 << ATMEL_ID_PIOCDE) | (1 << ATMEL_ID_TWI) | (1 << ATMEL_ID_SPI0) | #ifdef CONFIG_LCD (1 << ATMEL_ID_LCDC) | #endif (1 << ATMEL_ID_UHP), &pmc->pcer); at91_seriald_hw_init(); /* arch number of OTC570-Board */ gd->bd->bi_arch_number = MACH_TYPE_OTC570; return 0; }
int board_init(void) { /* arch number of TOP9000 Board */ gd->bd->bi_arch_number = MACH_TYPE_TOP9000; /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; at91_seriald_hw_init(); #ifdef CONFIG_CMD_NAND nand_hw_init(); #endif #ifdef CONFIG_MACB macb_hw_init(); #endif #ifdef CONFIG_ATMEL_SPI0 /* (n+4) denotes to use nSPISEL(0) in GPIO mode! */ at91_spi0_hw_init(1 << (FRAM_CS_NUM + 4)); #endif #ifdef CONFIG_ATMEL_SPI1 at91_spi1_hw_init(1 << (ENC_CS_NUM + 4)); #endif return 0; }
void board_debug_uart_init(void) { at91_seriald_hw_init(); }
int board_early_init_f(void) { at91_seriald_hw_init(); return 0; }
int board_early_init_f(void) { at91_seriald_hw_init(); corvus_request_gpio(); return 0; }