]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: omap3_logic: Enable SPL_OF_CONTROL and SPL_OF_PLATDATA
authorAdam Ford <aford173@gmail.com>
Wed, 27 Dec 2017 19:39:56 +0000 (13:39 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 22 Jan 2018 15:27:13 +0000 (10:27 -0500)
The SPL doesn't have much room, so in order to support OF_CONTROL
in SPL, we need the extra functionality of SPL_OF_PLATDATA.

Adding these features allows us to remove a small part of code without
losing the serial port during SPL.

Signed-off-by: Adam Ford <aford173@gmail.com>
board/logicpd/omap3som/omap3logic.c
configs/omap3_logic_defconfig

index b30fa24a322d6d77714fc16ad44c61ec3f2983d3..4cbbf96faa393cbcb7f842fced8815c5ffa3ee4b 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/* This is only needed until SPL gets OF support */
-#ifdef CONFIG_SPL_BUILD
-static const struct ns16550_platdata omap3logic_serial = {
-       .base = OMAP34XX_UART1,
-       .reg_shift = 2,
-       .clock = V_NS16550_CLK,
-       .fcr = UART_FCR_DEFVAL,
-};
-
-U_BOOT_DEVICE(omap3logic_uart) = {
-       "ns16550_serial",
-       &omap3logic_serial
-};
-#endif
-
 /*
  * two dimensional array of strucures containining board name and Linux
  * machine IDs; row it selected based on CPU column is slected based
index db72e6f6a86eaaf202d0728c888f8ac6febadbc8..5590b9a9163a70b4eda4aae6094551789c8d57e7 100644 (file)
@@ -29,6 +29,8 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(MLO),1792k(u-boot),128k(spl-
 CONFIG_CMD_UBI=y
 CONFIG_ISO_PARTITION=y
 CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_SPL_OF_PLATDATA=y
 CONFIG_ENV_IS_IN_NAND=y
 # CONFIG_BLK is not set
 CONFIG_DM_I2C=y
@@ -56,3 +58,4 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
 CONFIG_USB_GADGET_PRODUCT_NUM=0xd022
 CONFIG_USB_ETHER=y
 CONFIG_BCH=y
+# CONFIG_SPL_OF_LIBFDT is not set