]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/atmel/at91rm9200ek/at91rm9200ek.c
570a09a0741b2ed7c1cd2d4e88c1f7bb663979d7
3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
6 * See file CREDITS for list of people who contributed to this
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 #include <asm/arch/AT91RM9200.h>
30 #if defined(CONFIG_DRIVER_ETHER)
31 #include <at91rm9200_net.h>
35 DECLARE_GLOBAL_DATA_PTR
;
37 /* ------------------------------------------------------------------------- */
39 * Miscelaneous platform dependent initialisations
48 * Correct IRDA resistor problem
49 * Set PA23_TXD in Output
51 writel(AT91C_PA23_TXD2
, ((AT91PS_PIO
) AT91C_BASE_PIOA
)->PIO_OER
);
54 * memory and cpu-speed are setup before relocation
55 * so we do _nothing_ here
58 /* arch number of AT91RM9200EK-Board */
59 gd
->bd
->bi_arch_number
= MACH_TYPE_AT91RM9200EK
;
60 /* adress of boot parameters */
61 gd
->bd
->bi_boot_params
= PHYS_SDRAM
+ 0x100;
68 gd
->bd
->bi_dram
[0].start
= PHYS_SDRAM
;
69 gd
->bd
->bi_dram
[0].size
= PHYS_SDRAM_SIZE
;
73 #if defined(CONFIG_DRIVER_ETHER) && defined(CONFIG_CMD_NET)
76 * at91rm9200_GetPhyInterface
78 * Initialise the interface functions to the PHY
84 void at91rm9200_GetPhyInterface(AT91PS_PhyOps p_phyops
)
86 p_phyops
->Init
= dm9161_InitPhy
;
87 p_phyops
->IsPhyConnected
= dm9161_IsPhyConnected
;
88 p_phyops
->GetLinkSpeed
= dm9161_GetLinkSpeed
;
89 p_phyops
->AutoNegotiate
= dm9161_AutoNegotiate
;
93 #ifdef CONFIG_DRIVER_AT91EMAC
94 int board_eth_init(bd_t
*bis
)
97 rc
= at91emac_register(bis
, 0);