]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/nvidia/common/board.c
tegra: Allow boards to perform early GPIO setup
[people/ms/u-boot.git] / board / nvidia / common / board.c
index 2e22133591c27347835832b483bb2ad63aa825ba..a159deb675109d68e18631f855b55d619881f128 100644 (file)
@@ -132,11 +132,18 @@ int board_init(void)
 }
 
 #ifdef CONFIG_BOARD_EARLY_INIT_F
+static void __gpio_early_init(void)
+{
+}
+
+void gpio_early_init(void) __attribute__((weak, alias("__gpio_early_init")));
+
 int board_early_init_f(void)
 {
        board_init_uart_f();
 
        /* Initialize periph GPIOs */
+       gpio_early_init();
 #ifdef CONFIG_SPI_UART_SWITCH
        gpio_early_init_uart();
 #else