aboutsummaryrefslogtreecommitdiff
path: root/board/technexion/twister
diff options
context:
space:
mode:
authorStefano Babic2013-02-23 00:53:26 +0000
committerTom Rini2013-03-01 12:01:32 -0500
commit30372965d3d5d42258ebc39d7d06522b4c18472a (patch)
tree53856658e597741c563ef46a06f8735a8fb3c6fb /board/technexion/twister
parent3e1b393976ba59045e477fdea0beb69bd29b9102 (diff)
OMAP3: drop CONFIG_SPL_OS_BOOT_KEY and use local define
CONFIG_SPL_OS_BOOT_KEY is used only in board files. It is not required to have a general CONFIG_ option. Rename it and define it in board directory. Signed-off-by: Stefano Babic <sbabic@denx.de> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/technexion/twister')
-rw-r--r--board/technexion/twister/twister.c8
-rw-r--r--board/technexion/twister/twister.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/board/technexion/twister/twister.c b/board/technexion/twister/twister.c
index c9eea9b3045..fa0ace019ae 100644
--- a/board/technexion/twister/twister.c
+++ b/board/technexion/twister/twister.c
@@ -165,10 +165,10 @@ void spl_board_prepare_for_linux(void)
int spl_start_uboot(void)
{
int val = 0;
- if (!gpio_request(CONFIG_SPL_OS_BOOT_KEY, "U-Boot key")) {
- gpio_direction_input(CONFIG_SPL_OS_BOOT_KEY);
- val = gpio_get_value(CONFIG_SPL_OS_BOOT_KEY);
- gpio_free(CONFIG_SPL_OS_BOOT_KEY);
+ if (!gpio_request(SPL_OS_BOOT_KEY, "U-Boot key")) {
+ gpio_direction_input(SPL_OS_BOOT_KEY);
+ val = gpio_get_value(SPL_OS_BOOT_KEY);
+ gpio_free(SPL_OS_BOOT_KEY);
}
return val;
}
diff --git a/board/technexion/twister/twister.h b/board/technexion/twister/twister.h
index a2051c00442..cff479c07f6 100644
--- a/board/technexion/twister/twister.h
+++ b/board/technexion/twister/twister.h
@@ -38,6 +38,8 @@ const omap3_sysinfo sysinfo = {
#define XR16L2751_UART1_BASE 0x21000000
#define XR16L2751_UART2_BASE 0x23000000
+/* GPIO used to select between U-Boot and kernel */
+#define SPL_OS_BOOT_KEY 55
/*
* IEN - Input Enable