Skip to contentSkip to conversation

ARM: am3517_evm: Enable SPL_OF_CONTROL and SPL_OF_PLATDATA

PATCH In review Adam Ford 2 participants 2 messages Jun 8, 2018 – Jun 13, 2018

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 ARM: am3517_evm: Enable SPL_OF_CONTROL and SPL_OF_PLATDATA

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.

board/logicpd/am3517evm/am3517evm.c +0 -14
index bcd3588818..da8be22085 100644
@@ -37,20 +37,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #define CPGMACSS_SW_RST		(1 << 1)
 #define PHY_GPIO		30
 
-/* This is only needed until SPL gets OF support */
-#ifdef CONFIG_SPL_BUILD
-static const struct ns16550_platdata am3517_serial = {
-	.base = OMAP34XX_UART3,
-	.reg_shift = 2,
-	.clock = V_NS16550_CLK,
-	.fcr = UART_FCR_DEFVAL,
-};
-
-U_BOOT_DEVICE(am3517_uart) = {
-	"ns16550_serial",
-	&am3517_serial
-};
-#endif
 
 /*
  * Routine: board_init
configs/am3517_evm_defconfig +3 -0
index 6643f93e33..3b8e2900eb 100644
@@ -30,6 +30,8 @@ CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(MLO),1920k(u-boot),256k(u-boot-env),8m(kernel),512k(dtb),-(rootfs)"
 CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_SPL_OF_PLATDATA=y
 # CONFIG_ENV_IS_IN_FAT is not set
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_MMC_OMAP_HS=y
@@ -43,3 +45,4 @@ CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_AM35X=y
 CONFIG_BCH=y
+# CONFIG_SPL_OF_LIBFDT is not set
Signature · 1 line
2.17.1
#1 lore raw

board/logicpd/am3517evm/am3517evm.c

Quoted 10 lines · Adam Ford

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.

board/logicpd/am3517evm/am3517evm.c +0 -0
index bcd3588818..da8be22085 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180613/17fcf928/attachment.sig>