summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter.korsgaard@barco.com>2012-10-18 01:21:08 +0000
committerTom Rini <trini@ti.com>2012-10-25 11:30:50 -0700
commitc50cce275866b4b0e36e1102041d7ee7aa24ee28 (patch)
treee4d27ba39df8e529c046ded382d8b45fb50be6b8
parent69916bcf71766d85cc6a7131a1d5716a724a8475 (diff)
downloadu-boot-imx-c50cce275866b4b0e36e1102041d7ee7aa24ee28.zip
u-boot-imx-c50cce275866b4b0e36e1102041d7ee7aa24ee28.tar.gz
u-boot-imx-c50cce275866b4b0e36e1102041d7ee7aa24ee28.tar.bz2
am33xx/board.c: make wdtimer/uart_base static
Only used here (and uart_base only for SPL). Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
-rw-r--r--arch/arm/cpu/armv7/am33xx/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c
index 772203f..0b8b76d 100644
--- a/arch/arm/cpu/armv7/am33xx/board.c
+++ b/arch/arm/cpu/armv7/am33xx/board.c
@@ -36,8 +36,10 @@
DECLARE_GLOBAL_DATA_PTR;
-struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;
-struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
+static struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;
+#ifdef CONFIG_SPL_BUILD
+static struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
+#endif
static const struct gpio_bank gpio_bank_am33xx[4] = {
{ (void *)AM33XX_GPIO0_BASE, METHOD_GPIO_24XX },