ARM: AM43xx: Enable SPL_DM
v2 cover ARM: AM43xx: Enable SPL_DM
Enable SPL_DM on all AM4xx based boards.
This series depends on:
- DRA7 SPL_DM series[1]
- http://patchwork.ozlabs.org/patch/727106/
[1] https://www.mail-archive.com/u-boot at lists.denx.de/msg238751.html
Changes since v1:
- Fixed build error with non-SPL_DM defconfigs
- Increased SYS_MALLOC_F_LEN
Lokesh Vutla (3):
ARM: dts: am43xx: Add u-boot specific dtsi
config: am43xx_usbhost_boot: sync with am43xx_evm
configs: am43xx_evm: Enable SPL_DM
arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 38 +++++++++++++++++++++++++++++++ configs/am43xx_evm_defconfig | 8 ++++++- configs/am43xx_evm_usbhost_boot_defconfig | 13 ++++++++++- configs/am43xx_hs_evm_defconfig | 8 ++++++- include/configs/am43xx_evm.h | 7 ++---- 5 files changed, 66 insertions(+), 8 deletions(-) create mode 100644 arch/arm/dts/am437x-gp-evm-u-boot.dtsi
Signature · 1 line
2.11.0
PATCH v2 1/3 ARM: dts: am43xx: Add u-boot specific dtsi
Add u-boot specific dtsi for am43xx-gp-evm so
that it will be used for SPL.
--- arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 arch/arm/dts/am437x-gp-evm-u-boot.dtsi
arch/arm/dts/am437x-gp-evm-u-boot.dtsi new file +38 -0
@@ -0,0 +1,38 @@ +/* + * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * Based on "dra7.dtsi" + */ + +/{ + ocp { + u-boot,dm-pre-reloc; + }; +}; + +&uart0 { + u-boot,dm-pre-reloc; +}; + +&mmc1 { + u-boot,dm-pre-reloc; +}; + +&mac { + u-boot,dm-pre-reloc; +}; + +&davinci_mdio { + u-boot,dm-pre-reloc; +}; + +&cpsw_emac0 { + u-boot,dm-pre-reloc; +}; + +&phy_sel { + u-boot,dm-pre-reloc; +};
Signature · 1 line
2.11.0
PATCH v2 2/3 config: am43xx_usbhost_boot: sync with am43xx_evm
In reply to Lokesh Vutlaam43xx_evm defconfig has been modified without making changes in am43xx_usbhost_boot defconfig. Synce here.
--- configs/am43xx_evm_usbhost_boot_defconfig | 5 +++++ 1 file changed, 5 insertions(+)
configs/am43xx_evm_usbhost_boot_defconfig +5 -0
@@ -48,13 +48,18 @@ CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y CONFIG_DFU_SF=y CONFIG_DM_GPIO=y +CONFIG_DM_I2C=y CONFIG_DM_MMC=y # CONFIG_DM_MMC_OPS is not set CONFIG_MMC_OMAP_HS=y +CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH=y +CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_DM_ETH=y CONFIG_DM_SERIAL=y CONFIG_SYS_NS16550=y +CONFIG_DM_SPI=y CONFIG_TI_QSPI=y CONFIG_TIMER=y CONFIG_OMAP_TIMER=y
Signature · 1 line
2.11.0
PATCH v2 3/3 configs: am43xx_evm: Enable SPL_DM
In reply to Lokesh VutlaEnable SPL_DM on all AM43xx based platforms
--- configs/am43xx_evm_defconfig | 8 +++++++- configs/am43xx_evm_usbhost_boot_defconfig | 8 +++++++- configs/am43xx_hs_evm_defconfig | 8 +++++++- include/configs/am43xx_evm.h | 7 ++----- 4 files changed, 23 insertions(+), 8 deletions(-)
configs/am43xx_evm_defconfig +7 -1
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_AM43XX=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_AM43XX_EVM=y CONFIG_SPL_STACK_R_ADDR=0x82000000 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -10,7 +11,9 @@ CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,NAND" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_OS_BOOT=y CONFIG_HUSH_PARSER=y
@@ -38,8 +41,12 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ISO_PARTITION=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm" CONFIG_DM=y +CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_SPL_OF_TRANSLATE=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -73,4 +80,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0403 CONFIG_G_DNL_PRODUCT_NUM=0xbd00 -CONFIG_SPL_OF_LIBFDT=y
configs/am43xx_evm_usbhost_boot_defconfig +7 -1
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_AM43XX=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TARGET_AM43XX_EVM=y CONFIG_ISW_ENTRY_ADDR=0x40300350 CONFIG_SPL_STACK_R_ADDR=0x82000000
@@ -11,7 +12,9 @@ CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_OS_BOOT=y CONFIG_SPL_USB_HOST_SUPPORT=y
@@ -41,8 +44,12 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ISO_PARTITION=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm" CONFIG_DM=y +CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_SPL_OF_TRANSLATE=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -76,4 +83,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0403 CONFIG_G_DNL_PRODUCT_NUM=0xbd00 -CONFIG_SPL_OF_LIBFDT=y
configs/am43xx_hs_evm_defconfig +7 -1
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_AM43XX=y +CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_TI_SECURE_DEVICE=y CONFIG_TARGET_AM43XX_EVM=y CONFIG_ISW_ENTRY_ADDR=0x403018e0
@@ -14,7 +15,9 @@ CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,NAND" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_ETH_SUPPORT=y CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_NET_SUPPORT=y
@@ -48,8 +51,12 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ISO_PARTITION=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm" CONFIG_DM=y +CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_SPL_OF_TRANSLATE=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -82,4 +89,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0403 CONFIG_G_DNL_PRODUCT_NUM=0xbd00 -CONFIG_SPL_OF_LIBFDT=y
include/configs/am43xx_evm.h +2 -5
@@ -18,9 +18,9 @@/* NS16550 Configuration */ #define CONFIG_SYS_NS16550_CLK 48000000 -#if defined(CONFIG_SPL_BUILD ) || !defined(CONFIG_DM_SERIAL ) +#if !defined(CONFIG_SPL_DM ) || !defined(CONFIG_DM_SERIAL ) +#define CONFIG_SYS_NS16550_REG_SIZE (-4)#define CONFIG_SYS_NS16550_SERIAL -#define CONFIG_SYS_NS16550_REG_SIZE (-4)#endif /* I2C Configuration */
@@ -111,9 +111,6 @@* DM support in SPL */ #ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_MMC -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH#undef CONFIG_TIMER#endif
Signature · 1 line
2.11.0
v2 cover ARM: AM43xx: Enable SPL_DM
In reply to Lokesh VutlaQuoted 7 lines · Lokesh Vutla
Enable
SPL_DMon all AM4xx based boards.This series depends on:
- DRA7SPL_DMseries[1]
- http://patchwork.ozlabs.org/patch/727106/[1] https://www.mail-archive.com/u-boot at lists.denx.de/msg238751.html
Since we're targeting v2017.05 for inclusion of these patches, can you please switch to using 'imply' under arch/arm/Kconfig entries for AM33XX, AM43XX, etc, etc, to enable various things that should be set to y (but that the user may wish to disable all the same) so that these stop getting out of sync? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170216/9d6b018f/attachment.sig>