summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-kirkwood
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-07-25 06:23:48 +0000
committerPrafulla Wadaskar <prafulla@marvell.com>2012-10-03 16:43:13 +0530
commitb3168f4be86ef02905281ff7531960112e10cc7e (patch)
treebd5b68951292adc14ffdf59943419f0b01954be8 /arch/arm/include/asm/arch-kirkwood
parent455151652524570d7c5b320718c7004e63e01656 (diff)
downloadu-boot-b3168f4be86ef02905281ff7531960112e10cc7e.tar.gz
u-boot-b3168f4be86ef02905281ff7531960112e10cc7e.tar.xz
u-boot-b3168f4be86ef02905281ff7531960112e10cc7e.zip
kirkwood: implement kw_sdram_size_adjust
Size of the SDRAM chips might differ between any two (otherwise identical) instances of the same board. So add a function kw_sdram_size_adjust() which reads out the current ram size for a given bank, and adjusts the Kirkwood's SDRAM window size register accordingly. Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> cc: Prafulla Wadaskar <prafulla@marvell.com> cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'arch/arm/include/asm/arch-kirkwood')
-rw-r--r--arch/arm/include/asm/arch-kirkwood/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-kirkwood/cpu.h b/arch/arm/include/asm/arch-kirkwood/cpu.h
index d28c51a9b6..23783d5432 100644
--- a/arch/arm/include/asm/arch-kirkwood/cpu.h
+++ b/arch/arm/include/asm/arch-kirkwood/cpu.h
@@ -159,6 +159,7 @@ void reset_cpu(unsigned long ignored);
unsigned char get_random_hex(void);
unsigned int kw_sdram_bar(enum memory_bank bank);
unsigned int kw_sdram_bs(enum memory_bank bank);
+void kw_sdram_size_adjust(enum memory_bank bank);
int kw_config_adr_windows(void);
void kw_config_gpio(unsigned int gpp0_oe_val, unsigned int gpp1_oe_val,
unsigned int gpp0_oe, unsigned int gpp1_oe);