summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-03-07 16:20:08 -0700
committerStephen Warren <swarren@nvidia.com>2014-03-14 12:46:47 -0600
commitf9fa0376ea42a6ebd125677b73c088acabe03bbd (patch)
tree9c5000519128202a2a3445d97ae1353833af6877 /board
parentc1a1f83cf1ae453ddb9b3a56df4aa1e596d3041f (diff)
downloadu-boot-f9fa0376ea42a6ebd125677b73c088acabe03bbd.tar.gz
ARM: tegra: prototype pinmux_init() in board.h
pinmux_init() is a board-level function, not a pinmux driver function. Move the prototype to a board header rather than the driver header. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org> --- Sent V1
Diffstat (limited to 'board')
-rw-r--r--board/nvidia/common/board.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 3b18e28cc4..d3d7bbd195 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -48,6 +48,12 @@ const struct tegra_sysinfo sysinfo = {
CONFIG_TEGRA_BOARD_STRING
};
+void __pinmux_init(void)
+{
+}
+
+void pinmux_init(void) __attribute__((weak, alias("__pinmux_init")));
+
void __pin_mux_usb(void)
{
}
@@ -176,9 +182,7 @@ void gpio_early_init(void) __attribute__((weak, alias("__gpio_early_init")));
int board_early_init_f(void)
{
-#if !defined(CONFIG_TEGRA20)
pinmux_init();
-#endif
board_init_uart_f();
/* Initialize periph GPIOs */