int board_init(void) { /* address of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_CMD_NAND corvus_nand_hw_init(); #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 4); #endif #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_MACB corvus_macb_hw_init(); #endif #ifdef CONFIG_CMD_USB taurus_usb_hw_init(); #endif #ifdef CONFIG_USB_GADGET_ATMEL_USBA at91_udp_hw_init(); usba_udc_probe(&pdata); #endif return 0; }
int board_init(void) { /* arch number of AT91SAM9X5EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK; /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_CMD_NAND at91sam9x5ek_nand_hw_init(); #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 0); at91_spi0_hw_init(1 << 4); #endif #ifdef CONFIG_MACB at91_macb_hw_init(); #endif #if defined(CONFIG_USB_OHCI_NEW) || defined(CONFIG_USB_EHCI) at91_uhp_hw_init(); #endif #ifdef CONFIG_LCD at91sam9x5ek_lcd_hw_init(); #endif return 0; }
int board_init(void) { #ifdef CONFIG_AT91SAM9G20EK_2MMC /* arch number of AT91SAM9G20EK_2MMC-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK_2MMC; #else #ifdef CONFIG_AT91SAM9G20EK /* arch number of AT91SAM9G20EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK; #else /* arch number of AT91SAM9260EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9260EK; #endif #endif /* 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) { /* 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) { /* address of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; /* we have to request the gpios again after relocation */ corvus_request_gpio(); #ifdef CONFIG_CMD_NAND corvus_nand_hw_init(); #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 4); #endif #ifdef CONFIG_MACB corvus_macb_hw_init(); #endif #ifdef CONFIG_CMD_USB taurus_usb_hw_init(); #endif #ifdef CONFIG_USB_GADGET_ATMEL_USBA at91_udp_hw_init(); usba_udc_probe(&pdata); #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 at91sam9n12ek_nand_hw_init(); #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_USB_ATMEL at91_ohci_hw_init(); #endif #ifdef CONFIG_LCD at91_lcd_hw_init(); #endif #ifdef CONFIG_KS8851_MLL at91sam9n12ek_ks8851_hw_init(); #endif return 0; }
int board_init(void) { /* Enable Ctrlc */ console_init_f(); #ifdef CONFIG_AT91SAM9G20EK /* arch number of AT91SAM9260EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK; #else /* arch number of AT91SAM9260EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9260EK; #endif /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; at91_serial_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) { /* 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) { /* 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; }
void spl_board_init(void) { #ifdef CONFIG_SYS_USE_MMC sama5d3xek_mci_hw_init(); #elif CONFIG_SYS_USE_NANDFLASH sama5d3xek_nand_hw_init(); #elif CONFIG_SYS_USE_SERIALFLASH at91_spi0_hw_init(1 << 0); #endif }
void at91_spl_board_init(void) { #ifdef CONFIG_SYS_USE_MMC at91_mci_hw_init(); #elif CONFIG_SYS_USE_NANDFLASH at91sam9x5ek_nand_hw_init(); #elif CONFIG_SYS_USE_SPIFLASH at91_spi0_hw_init(1 << 4); #endif }
int board_init(void) { gd->bd->bi_arch_number = MACH_TYPE_PICOSAM9G45; /* adress of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_CMD_USB picosam9g45_usb_hw_init(); #endif #ifdef CONFIG_HAS_DATAFLASH at91_spi0_hw_init(1 << 0); #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 4); #endif #ifdef CONFIG_MACB picosam9g45_macb_hw_init(); #endif #ifdef CONFIG_LCD picosam9g45_lcd_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) { /* 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) { /* Enable Ctrlc */ console_init_f(); /* arch number of AT91SAM9260EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_AFEB9260; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; at91_serial_hw_init(); #ifdef CONFIG_CMD_NAND afeb9260_nand_hw_init(); #endif at91_spi0_hw_init((1 << 0) || (1 << 1)); #ifdef CONFIG_MACB afeb9260_macb_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; }
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; }
int board_init(void) { const char *rev_str; #ifdef CONFIG_CMD_NAND int ret; #endif at91_periph_clk_enable(ATMEL_ID_PIOA); at91_periph_clk_enable(ATMEL_ID_PIOB); at91_periph_clk_enable(ATMEL_ID_PIOC); at91_periph_clk_enable(ATMEL_ID_PIODE); at91sam9g45_slowclock_init(); /* * Clear the RTC IDR to disable all IRQs. Avoid issues when Linux * boots with spurious IRQs. */ writel(0xffffffff, AT91_RTC_IDR); /* Make sure that the reset signal is attached properly */ setbits_le32(AT91_ASM_RSTC_MR, AT91_RSTC_KEY | AT91_RSTC_MR_URSTEN); gd->bd->bi_arch_number = MACH_TYPE_SNAPPER_9260; /* Address of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; #ifdef CONFIG_CMD_NAND ret = gurnard_nand_hw_init(); if (ret) return ret; #endif #ifdef CONFIG_ATMEL_SPI at91_spi0_hw_init(1 << 4); #endif #ifdef CONFIG_MACB gurnard_macb_hw_init(); #endif #ifdef CONFIG_GURNARD_FPGA fpga_hw_init(); #endif #ifdef CONFIG_CMD_USB gurnard_usb_init(); #endif #ifdef CONFIG_CMD_MMC at91_set_A_periph(AT91_PIN_PA12, 0); at91_set_gpio_output(AT91_PIN_PA8, 1); at91_set_gpio_value(AT91_PIN_PA8, 0); at91_mci_hw_init(); #endif #ifdef CONFIG_DM_VIDEO at91sam9g45_lcd_hw_init(); at91_set_A_periph(AT91_PIN_PE6, 1); /* power up */ /* Select the second timing index for board rev 2 */ rev_str = getenv("board_rev"); if (rev_str && !strncmp(rev_str, "2", 1)) { struct udevice *dev; uclass_find_first_device(UCLASS_VIDEO, &dev); if (dev) { struct atmel_lcd_platdata *plat = dev_get_platdata(dev); plat->timing_index = 1; } } #endif return 0; }