diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2007-11-22 12:14:11 +0100 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-27 15:27:29 +0200 |
commit | 0a2e48792dd372c90b80059f3235e67a567e16fc (patch) | |
tree | caee4c410450870029be7c92c6a181072027e85f /board | |
parent | 781eb9a1e4af4bd34c138e6126ec5cc6dd4b5440 (diff) | |
download | u-boot-imx-0a2e48792dd372c90b80059f3235e67a567e16fc.zip u-boot-imx-0a2e48792dd372c90b80059f3235e67a567e16fc.tar.gz u-boot-imx-0a2e48792dd372c90b80059f3235e67a567e16fc.tar.bz2 |
avr32: Add support for the ATSTK1006 board
This is a replacement for ATSTK1002 with 64MB SDRAM and NAND flash on
board. It's currently in production and will be available soon.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/atmel/atstk1000/atstk1000.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/atmel/atstk1000/atstk1000.c b/board/atmel/atstk1000/atstk1000.c index 28f64c4..d3580a1 100644 --- a/board/atmel/atstk1000/atstk1000.c +++ b/board/atmel/atstk1000/atstk1000.c @@ -29,6 +29,25 @@ DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_ATSTK1006 +/* Dual MT48LC16M16A2-7E on daughterboard */ +static const struct sdram_info sdram = { + .phys_addr = CFG_SDRAM_BASE, + .row_bits = 13, + .col_bits = 9, + .bank_bits = 2, + .cas = 2, + .twr = 2, + .trc = 7, + .trp = 2, + .trcd = 2, + .tras = 4, + .txsr = 7, + /* 7.81 us */ + .refresh_period = (781 * (SDRAMC_BUS_HZ / 1000)) / 100000, +}; +#else +/* MT48LC2M32B2-5 on motherboard */ static const struct sdram_info sdram = { .phys_addr = CFG_SDRAM_BASE, .row_bits = 11, @@ -44,6 +63,7 @@ static const struct sdram_info sdram = { /* 15.6 us */ .refresh_period = (156 * (SDRAMC_BUS_HZ / 1000)) / 10000, }; +#endif int board_early_init_f(void) { |