summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-06-12 08:33:40 +0000
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>2012-07-09 22:44:33 +0200
commite02849488724bdfdc36ef8105c59a49986db3ebc (patch)
tree0e351950f2a34491c2c66ecccbe4674492e07527
parenta016e144ed6a7e17774d3371c29544c329459667 (diff)
downloadu-boot-imx-e02849488724bdfdc36ef8105c59a49986db3ebc.zip
u-boot-imx-e02849488724bdfdc36ef8105c59a49986db3ebc.tar.gz
u-boot-imx-e02849488724bdfdc36ef8105c59a49986db3ebc.tar.bz2
tegra: add pin_mux_spi() board initialization function
Boards can override this to set up the pinmux correctly to access serial flash. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
-rw-r--r--board/nvidia/common/board.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index fc8b928..e65fc9e 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -64,6 +64,12 @@ void __pin_mux_usb(void)
void pin_mux_usb(void) __attribute__((weak, alias("__pin_mux_usb")));
+void __pin_mux_spi(void)
+{
+}
+
+void pin_mux_spi(void) __attribute__((weak, alias("__pin_mux_spi")));
+
/*
* Routine: power_det_init
* Description: turn off power detects
@@ -95,6 +101,7 @@ int board_init(void)
gpio_config_uart();
#endif
#ifdef CONFIG_TEGRA_SPI
+ pin_mux_spi();
spi_init();
#endif
/* boot param addr */