]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: omapl138_lcdk: add the mmc device to SPL
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 14 Nov 2019 15:10:30 +0000 (16:10 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:44:14 +0000 (08:44 -0500)
We don't have full device-tree support in SPL yet - add an appropriate
U_BOOT_DEVICE() to the board file.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
arch/arm/mach-davinci/Kconfig
board/davinci/da8xxevm/omapl138_lcdk.c

index adc50922c8f562d9572f2cc0b78cd5ba596c28de..8a81c078811d4eb4dc00090f92b443b8a92a4ea8 100644 (file)
@@ -14,6 +14,7 @@ config TARGET_OMAPL138_LCDK
        bool "OMAPL138 LCDK"
        select SOC_DA8XX
        select SUPPORT_SPL
+       select SPL_BOARD_INIT
 
 config TARGET_LEGOEV3
        bool "LEGO MINDSTORMS EV3"
index d4cda0a8a7fe0785d093fa792a9fb578247d4157..608a7f28eb09b719285b0319354cced0722dd9b1 100644 (file)
@@ -366,4 +366,13 @@ U_BOOT_DEVICE(omapl138_uart) = {
        .name = "ns16550_serial",
        .platdata = &serial_pdata,
 };
+
+U_BOOT_DEVICE(omapl138_mmc) = {
+       .name = "davinci_mmc",
+};
+
+void spl_board_init(void)
+{
+       davinci_configure_pin_mux(mmc0_pins, ARRAY_SIZE(mmc0_pins));
+}
 #endif