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; }
static void sama5d3xek_lcd_hw_init(void) { gd->fb_base = CONFIG_SAMA5D3_LCD_BASE; /* The higher 8 bit of LCD is board related */ at91_set_c_periph(AT91_PIO_PORTC, 14, 0); /* LCDD16 */ at91_set_c_periph(AT91_PIO_PORTC, 13, 0); /* LCDD17 */ at91_set_c_periph(AT91_PIO_PORTC, 12, 0); /* LCDD18 */ at91_set_c_periph(AT91_PIO_PORTC, 11, 0); /* LCDD19 */ at91_set_c_periph(AT91_PIO_PORTC, 10, 0); /* LCDD20 */ at91_set_c_periph(AT91_PIO_PORTC, 15, 0); /* LCDD21 */ at91_set_c_periph(AT91_PIO_PORTE, 27, 0); /* LCDD22 */ at91_set_c_periph(AT91_PIO_PORTE, 28, 0); /* LCDD23 */ /* Configure lower 16 bit of LCD and enable clock */ at91_lcd_hw_init(); }