aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-overo.c
diff options
context:
space:
mode:
authorJean Pihet <jpihet@mvista.com>2009-07-24 21:43:25 -0400
committerpaul <paul@twilight.(none)>2009-07-24 21:43:25 -0400
commit9fb97412c3be5d0d1dd0e9d7c5268469e4c942aa (patch)
treeb9d9dbb03ed73a668986001758eb707bf4add97a /arch/arm/mach-omap2/board-overo.c
parent58cda884ecc87dcce18d463b0c8bd928dae63ad8 (diff)
OMAP3: Setup MUX settings for SDRC CKE signals
This patches ensures the MUX settings are correct for the SDRC CKE signals to SDRAM. This allows the self-refresh to work when 2 chip-selects are in use. A warning is thrown away in case the initial muxing is incorrect, in order to track faulty or old-dated bootloaders. Note: The CONFIG_OMAP_MUX and CONFIG_OMAP_MUX_WARNINGS options must be enabled for the mux code to have effect. Signed-off-by: Jean Pihet <jpihet@mvista.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-overo.c')
-rw-r--r--arch/arm/mach-omap2/board-overo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c
index 44bc1c54cd03..6b171b338ec0 100644
--- a/arch/arm/mach-omap2/board-overo.c
+++ b/arch/arm/mach-omap2/board-overo.c
@@ -44,6 +44,7 @@
44#include <mach/gpmc.h> 44#include <mach/gpmc.h>
45#include <mach/hardware.h> 45#include <mach/hardware.h>
46#include <mach/nand.h> 46#include <mach/nand.h>
47#include <mach/mux.h>
47#include <mach/usb.h> 48#include <mach/usb.h>
48 49
49#include "sdram-micron-mt46h32m32lf-6.h" 50#include "sdram-micron-mt46h32m32lf-6.h"
@@ -396,6 +397,10 @@ static void __init overo_init(void)
396 overo_ads7846_init(); 397 overo_ads7846_init();
397 overo_init_smsc911x(); 398 overo_init_smsc911x();
398 399
400 /* Ensure SDRC pins are mux'd for self-refresh */
401 omap_cfg_reg(H16_34XX_SDRC_CKE0);
402 omap_cfg_reg(H17_34XX_SDRC_CKE1);
403
399 if ((gpio_request(OVERO_GPIO_W2W_NRESET, 404 if ((gpio_request(OVERO_GPIO_W2W_NRESET,
400 "OVERO_GPIO_W2W_NRESET") == 0) && 405 "OVERO_GPIO_W2W_NRESET") == 0) &&
401 (gpio_direction_output(OVERO_GPIO_W2W_NRESET, 1) == 0)) { 406 (gpio_direction_output(OVERO_GPIO_W2W_NRESET, 1) == 0)) {