1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2010 Andreas Bießmann <andreas@biessmann.org>
5 * derived from previous work
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9 * Marius Groeger <mgroeger@sysgo.de>
16 #include <asm/mach-types.h>
17 #include <asm/arch/hardware.h>
18 #include <asm/arch/at91_pio.h>
19 #include <asm/arch/at91_common.h>
22 DECLARE_GLOBAL_DATA_PTR;
24 /* ------------------------------------------------------------------------- */
27 at91_pio_t *pio = (at91_pio_t *)AT91_PIO_BASE;
30 * Correct IRDA resistor problem
31 * Set PA23_TXD in Output
33 writel(ATMEL_PMX_AA_TXD2, &pio->pioa.oer);
35 /* arch number of AT91RM9200EK-Board */
36 gd->bd->bi_arch_number = MACH_TYPE_AT91RM9200EK;
37 /* adress of boot parameters */
38 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
43 int board_early_init_f(void)
45 at91_seriald_hw_init();
51 /* dram_init must store complete ramsize in gd->ram_size */
52 gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
53 CONFIG_SYS_SDRAM_SIZE);
57 #ifdef CONFIG_DRIVER_AT91EMAC
58 int board_eth_init(bd_t *bis)
60 return at91emac_register(bis, (u32) ATMEL_BASE_EMAC);