diff options
author | Markus Klotzbuecher <mk@denx.de> | 2007-04-23 13:17:22 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@pollux.denx.de> | 2007-04-23 13:17:22 +0200 |
commit | 61ea75aa07838435ec570ac85a2e3fc038844596 (patch) | |
tree | 20135a513c4c9d0bddb2a8ceaf009a8ed5e8bbdf /board/atmel/atstk1000/atstk1000.c | |
parent | e2fb36a57f364016b973b1db255531e07cfefd52 (diff) | |
parent | 14da5f7675bbb427c469e3f45006e027b6e21db9 (diff) | |
download | u-boot-imx-61ea75aa07838435ec570ac85a2e3fc038844596.zip u-boot-imx-61ea75aa07838435ec570ac85a2e3fc038844596.tar.gz u-boot-imx-61ea75aa07838435ec570ac85a2e3fc038844596.tar.bz2 |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'board/atmel/atstk1000/atstk1000.c')
-rw-r--r-- | board/atmel/atstk1000/atstk1000.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/board/atmel/atstk1000/atstk1000.c b/board/atmel/atstk1000/atstk1000.c index 4d737d2..6618963 100644 --- a/board/atmel/atstk1000/atstk1000.c +++ b/board/atmel/atstk1000/atstk1000.c @@ -23,6 +23,8 @@ #include <asm/io.h> #include <asm/sdram.h> +#include <asm/arch/gpio.h> +#include <asm/arch/hmatrix2.h> DECLARE_GLOBAL_DATA_PTR; @@ -40,9 +42,27 @@ static const struct sdram_info sdram = { .txsr = 5, }; -void board_init_memories(void) +int board_early_init_f(void) { - gd->sdram_size = sdram_init(&sdram); + /* Set the SDRAM_ENABLE bit in the HEBI SFR */ + hmatrix2_writel(SFR4, 1 << 1); + + gpio_enable_ebi(); + gpio_enable_usart1(); +#if defined(CONFIG_MACB) + gpio_enable_macb0(); + gpio_enable_macb1(); +#endif +#if defined(CONFIG_MMC) + gpio_enable_mmci(); +#endif + + return 0; +} + +long int initdram(int board_type) +{ + return sdram_init(&sdram); } void board_init_info(void) |