diff options
author | Tero Kristo <tero.kristo@nokia.com> | 2009-11-22 13:11:36 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-22 13:24:33 -0500 |
commit | 2000655ee7b44ef2816d565c62ae03de74333204 (patch) | |
tree | ced6d06756f3f0922765cccfa7ed4204472eea4b /arch/arm/mach-omap2/board-rx51.c | |
parent | 58c54e156c80ce8d4dd740ad5f414b03b71ff0b7 (diff) |
omap3: rx51: Add SDRAM init
This patch adds board specific SDRAM init for RX51. This patch is a
collaboration of work from following people:
Juha Yrjola: Original code
Lauri Leukkunen: Port to RX51
Tero Kristo: Support for multiple OPP:s, merge of patches
Samu Onkalo: Fixed SDRAM parameters according to specs
Kalle Jokiniemi: A fix for rounding error
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Cc: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Cc: Lauri Leukkunen <lauri.leukkunen@nokia.com>
Cc: Juha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index f1e7e5bbf985..1bb1de245917 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -30,6 +30,8 @@ | |||
30 | #include <plat/gpmc.h> | 30 | #include <plat/gpmc.h> |
31 | #include <plat/usb.h> | 31 | #include <plat/usb.h> |
32 | 32 | ||
33 | struct omap_sdrc_params *rx51_get_sdram_timings(void); | ||
34 | |||
33 | static struct omap_lcd_config rx51_lcd_config = { | 35 | static struct omap_lcd_config rx51_lcd_config = { |
34 | .ctrl_name = "internal", | 36 | .ctrl_name = "internal", |
35 | }; | 37 | }; |
@@ -55,9 +57,12 @@ static struct omap_board_config_kernel rx51_config[] = { | |||
55 | 57 | ||
56 | static void __init rx51_init_irq(void) | 58 | static void __init rx51_init_irq(void) |
57 | { | 59 | { |
60 | struct omap_sdrc_params *sdrc_params; | ||
61 | |||
58 | omap_board_config = rx51_config; | 62 | omap_board_config = rx51_config; |
59 | omap_board_config_size = ARRAY_SIZE(rx51_config); | 63 | omap_board_config_size = ARRAY_SIZE(rx51_config); |
60 | omap2_init_common_hw(NULL, NULL); | 64 | sdrc_params = rx51_get_sdram_timings(); |
65 | omap2_init_common_hw(sdrc_params, sdrc_params); | ||
61 | omap_init_irq(); | 66 | omap_init_irq(); |
62 | omap_gpio_init(); | 67 | omap_gpio_init(); |
63 | } | 68 | } |