]> git.sur5r.net Git - u-boot/commitdiff
tegra: add pin_mux_spi() board initialization function
authorStephen Warren <swarren@nvidia.com>
Tue, 12 Jun 2012 08:33:40 +0000 (08:33 +0000)
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>
Mon, 9 Jul 2012 20:44:33 +0000 (22:44 +0200)
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>
board/nvidia/common/board.c

index fc8b928cfcf006f88d6919d6f36ac014062cba83..e65fc9e8436c3d401e96a7162d497d406a00c618 100644 (file)
@@ -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 */