int board_init(void) { at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE; /* Enable Ctrlc */ console_init_f(); writel((1 << AT91SAM9G45_ID_PIOA) | (1 << AT91SAM9G45_ID_PIOB) | (1 << AT91SAM9G45_ID_PIOC) | (1 << AT91SAM9G45_ID_PIODE), &pmc->pcer); /* arch number of AT91SAM9M10G45EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_PM9G45; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; at91_serial_hw_init(); #ifdef CONFIG_CMD_NAND pm9g45_nand_hw_init(); #endif #ifdef CONFIG_MACB pm9g45_macb_hw_init(); #endif return 0; }
int board_init(void) { /* arch number of AT91SAM9M10G45EK-Board */ gd->bd->bi_arch_number = MACH_TYPE_PM9G45; /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; #ifdef CONFIG_CMD_NAND pm9g45_nand_hw_init(); #endif #ifdef CONFIG_MACB pm9g45_macb_hw_init(); #endif return 0; }