From: Stephen Warren Date: Tue, 12 Jun 2012 08:33:40 +0000 (+0000) Subject: tegra: add pin_mux_spi() board initialization function X-Git-Tag: v2012.07-rc1~2^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e02849488724bdfdc36ef8105c59a49986db3ebc;p=u-boot 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 Signed-off-by: Tom Warren --- diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index fc8b928cfc..e65fc9e843 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 */