ARM: DRA7: AM57xx: Enable SPL_DM
Subsystems (3)
v2 cover ARM: DRA7: AM57xx: Enable SPL_DM
- Enable SPL_DM on all DRA7 and AM57xx based platforms.
- SPL uses a generic dts on all platforms with same defconfig.
- After this series SPL size is increased by ~8KB.
Verified MMC, eMMC boot on DRA74-evm, DRA72-evm.
MMC boot on AM57xx-evm.
Changes since v1:
- Instead of creating a new dts file for each platform, created a omap5 specific common dtsi that will be included automatically.
Lokesh Vutla (5):
tools: omapimage: Fix size in header
ARM: OMAP2+: define _image_binary_end to fix SPL_OF_CONTROL
ARM: dts: OMAP5+: Add u-boot specific dtsi
configs: am57xx_evm: Enable SPL_DM
configs: dra7xx_evm: Enable SPL_DM
arch/arm/dts/omap5-u-boot.dtsi | 46 ++++++++++++++++++++++++++++++++++++++ arch/arm/mach-omap2/u-boot-spl.lds | 2 ++ configs/am57xx_evm_defconfig | 7 ++++-- configs/am57xx_hs_evm_defconfig | 5 ++++- configs/dra7xx_evm_defconfig | 5 ++++- configs/dra7xx_hs_evm_defconfig | 5 ++++- include/configs/am57xx_evm.h | 5 ----- include/configs/dra7xx_evm.h | 5 ----- include/configs/ti_omap5_common.h | 8 +------ tools/gpimage.c | 2 +- tools/omapimage.c | 2 +- 11 files changed, 68 insertions(+), 24 deletions(-) create mode 100644 arch/arm/dts/omap5-u-boot.dtsi
Signature · 1 line
2.11.0
PATCH v2 1/5 tools: omapimage: Fix size in header
The size field in GP header that is expected by ROM is size of the image + size of the header. But omapimage generates a gp header only with size of the image as size field. Fix it
--- tools/gpimage.c | 2 +- tools/omapimage.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
tools/gpimage.c +1 -1
@@ -54,7 +54,7 @@ static void gpimage_set_header(void *ptr, struct stat *sbuf, int ifd, {struct gp_header *gph = (struct gp_header *)ptr; -gph_set_header (gph, sbuf->st_size -GPIMAGE_HDR_SIZE , params->addr,1 ); +gph_set_header (gph, sbuf->st_size, params->addr,1 ); }/*
tools/omapimage.c +1 -1
@@ -143,7 +143,7 @@ static void omapimage_set_header(void *ptr, struct stat *sbuf, int ifd, toc++;memset (toc,0xff ,sizeof (*toc)); -gph_set_header (gph, sbuf->st_size -OMAP_FILE_HDR_SIZE , +gph_set_header (gph, sbuf->st_size -OMAP_CH_HDR_SIZE , params->addr,0 );if (strncmp (params->imagename,"byteswap" ,8 ) ==0 ) {
Signature · 1 line
2.11.0
PATCH v2 2/5 ARM: OMAP2+: define _image_binary_end to fix SPL_OF_CONTROL
In reply to Lokesh VutlaTo make SPL_OF_CONTROL work on OMAP2+ SoCs, _image_binary_end must be defined in the linker script along with CONFIG_SPL_SEPARATE_BSS.
--- arch/arm/mach-omap2/u-boot-spl.lds | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-omap2/u-boot-spl.lds +2 -0
@@ -46,6 +46,8 @@ SECTIONS *(.__end) } + _image_binary_end = .; + .bss : { . = ALIGN(4);
Signature · 1 line
2.11.0
PATCH v2 3/5 ARM: dts: OMAP5+: Add u-boot specific dtsi
In reply to Lokesh VutlaAdd u-boot specific dtsi so that this will be
included automatically while building dts.
--- arch/arm/dts/omap5-u-boot.dtsi | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 arch/arm/dts/omap5-u-boot.dtsi
arch/arm/dts/omap5-u-boot.dtsi new file +46 -0
@@ -0,0 +1,46 @@ +/* + * 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; + }; +}; + +&uart1 { + u-boot,dm-pre-reloc; +}; + +&uart3 { + u-boot,dm-pre-reloc; +}; + +&mmc1 { + u-boot,dm-pre-reloc; +}; + +&mmc2 { + u-boot,dm-pre-reloc; +}; + +&l4_wkup { + u-boot,dm-pre-reloc; +}; + +&scm_wkup { + u-boot,dm-pre-reloc; +}; + +&qspi { + u-boot,dm-pre-reloc; + + m25p80 at 0 { + u-boot,dm-pre-reloc; + }; +};
Signature · 1 line
2.11.0
PATCH v2 3/5 ARM: dts: OMAP5+: Add u-boot specific dtsi
Quoted 4 lines · Lokesh Vutla
Add u-boot specific dtsi so that this will be
included automatically while building dts.Signed-off-by Lokesh Vutla <[email protected]>
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/20170209/6aad4de2/attachment.sig>
PATCH v2 3/5 ARM: dts: OMAP5+: Add u-boot specific dtsi
Quoted 9 lines · Tom Rini
Quoted 4 lines · Lokesh Vutla
Add u-boot specific dtsi so that this will be
included automatically while building dts.Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Tom Rini <[email protected]>
As I said earlier, I see a problem with this approach. We want this omap5-u-boot.dtsi only
for SPL. But Makefile.lib tries to append this for each dtb in proper U-Boot as well. As we might not need any of these in U-Boot before relocation, the behavior is unexpected(sometimes U-boot does not comes up ). I would like to go ahead with V1 of this series, what do you say?
Thanks and regards,
Lokesh
PATCH v2 3/5 ARM: dts: OMAP5+: Add u-boot specific dtsi
Quoted 10 lines · Lokesh Vutla
Quoted 7 lines · Tom Rini
Quoted 4 lines · Lokesh Vutla
Add u-boot specific dtsi so that this will be
included automatically while building dts.Signed-off-by Lokesh Vutla <[email protected]>
Quoted 8 lines
Quoted 1 line
Reviewed-by Tom Rini <[email protected]>As I said earlier, I see a problem with this approach. We want this
omap5-u-boot.dtsionly
for SPL. But Makefile.lib tries to append this for each dtb in proper U-Boot as well. As we might not need any of these in U-Boot before relocation, the behavior is unexpected(sometimes U-boot does not comes up ). I would like to go ahead with V1 of this series, what do you say?
All of the other platforms are able to have pre-reloc on nodes without issue, can you describe what's going on a bit more? Simon, any ideas? 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/20170210/306fb07f/attachment.sig>
PATCH v2 3/5 ARM: dts: OMAP5+: Add u-boot specific dtsi
Quoted 20 lines · Tom Rini
Quoted 10 lines · Lokesh Vutla
Quoted 7 lines · Tom Rini
Quoted 4 lines · Lokesh Vutla
Add u-boot specific dtsi so that this will be
included automatically while building dts.Signed-off-by Lokesh Vutla <[email protected]>Quoted 8 lines
Quoted 1 line
Reviewed-by Tom Rini <[email protected]>As I said earlier, I see a problem with this approach. We want this
omap5-u-boot.dtsionly
for SPL. But Makefile.lib tries to append this for each dtb in proper U-Boot as well. As we might not need any of these in U-Boot before relocation, the behavior is unexpected(sometimes U-boot does not comes up ). I would like to go ahead with V1 of this series, what do you say?
Quoted 4 lines
All of the other platforms are able to have pre-reloc on nodes without issue, can you describe what's going on a bit more? Simon, any ideas? Thanks!
So, when more nodes were added with pre-reloc, dm_scan_fdt() is failing with NOMEM. Then I realized that SYS_MALLOC_F_LEN is 0x400 which is very less. Increased the length to 0x2000 and everything working fine. Sorry for the noise :)
Will be posting an updated series soon.
Thanks and regards,
Lokesh
PATCH v2 4/5 configs: am57xx_evm: Enable SPL_DM
In reply to Lokesh VutlaEnable SPL_DM on all AM57xx based platforms.
--- configs/am57xx_evm_defconfig | 7 +++++-- configs/am57xx_hs_evm_defconfig | 5 ++++- include/configs/am57xx_evm.h | 5 ----- 3 files changed, 9 insertions(+), 8 deletions(-)
configs/am57xx_evm_defconfig +5 -2
@@ -6,7 +6,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_ARMV7_LPAE=y CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15" +CONFIG_DEFAULT_DEVICE_TREE="am572x-idk" CONFIG_FIT=y CONFIG_SPL_LOAD_FIT=y CONFIG_OF_BOARD_SETUP=y
@@ -14,7 +14,9 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_DMA_SUPPORT=y CONFIG_SPL_OS_BOOT=y CONFIG_HUSH_PARSER=y
@@ -52,8 +54,10 @@ 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="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am572x-idk am571x-idk" CONFIG_DM=y +CONFIG_SPL_DM=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -87,4 +91,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 -CONFIG_SPL_OF_LIBFDT=y
configs/am57xx_hs_evm_defconfig +4 -1
@@ -19,7 +19,9 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_DMA_SUPPORT=y CONFIG_HUSH_PARSER=y CONFIG_FASTBOOT=y
@@ -55,7 +57,9 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ISO_PARTITION=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_DM=y +CONFIG_SPL_DM=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -85,4 +89,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 -CONFIG_SPL_OF_LIBFDT=y
include/configs/am57xx_evm.h +0 -5
@@ -121,11 +121,6 @@#define CONFIG_SYS_SPI_ARGS_OFFS 0x140000#define CONFIG_SYS_SPI_ARGS_SIZE 0x80000 -#ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif -/* SPI SPL */ #define CONFIG_TI_EDMA3 #define CONFIG_SPL_SPI_LOAD
Signature · 1 line
2.11.0
PATCH v2 4/5 configs: am57xx_evm: Enable SPL_DM
Quoted 14 lines · Lokesh Vutla
Enable
SPL_DMon all AM57xx based platforms.Signed-off-by Lokesh Vutla <[email protected]>--- configs/am57xx_evm_defconfig | 7 +++++-- configs/am57xx_hs_evm_defconfig | 5 ++++- include/configs/am57xx_evm.h | 5 ----- 3 files changed, 9 insertions(+), 8 deletions(-)configs/am57xx_evm_defconfig +0
-0
configs/am57xx_evm_defconfig CONFIG_SPL_SPI_FLASH_SUPPORT=y · line 9
Quoted 5 lines
configs/am57xx_evm_defconfig +1
-1@@ -6,7 +6,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_ARMV7_LPAE=y CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15" +CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
Did you really want to change the default tree?
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/20170209/2420f8e8/attachment.sig>
PATCH v2 4/5 configs: am57xx_evm: Enable SPL_DM
Quoted 11 lines · Tom Rini
Quoted 9 lines · Lokesh Vutla
Enable
SPL_DMon all AM57xx based platforms.Signed-off-by Lokesh Vutla <[email protected]>--- configs/am57xx_evm_defconfig | 7 +++++-- configs/am57xx_hs_evm_defconfig | 5 ++++- include/configs/am57xx_evm.h | 5 ----- 3 files changed, 9 insertions(+), 8 deletions(-)
Quoted 12 lines
configs/am57xx_evm_defconfig CONFIG_SPL_SPI_FLASH_SUPPORT=y · line 9
Quoted 10 lines
configs/am57xx_evm_defconfig +1
-1@@ -6,7 +6,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_ARMV7_LPAE=y CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15" +CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"Did you really want to change the default tree?
Yeah, I make this as default as it contains peripherals for all boot modes.
Thanks and regards,
Lokesh
PATCH v2 4/5 configs: am57xx_evm: Enable SPL_DM
Quoted 27 lines · Lokesh Vutla
Quoted 11 lines · Tom Rini
Quoted 9 lines · Lokesh Vutla
Enable
SPL_DMon all AM57xx based platforms.Signed-off-by Lokesh Vutla <[email protected]>--- configs/am57xx_evm_defconfig | 7 +++++-- configs/am57xx_hs_evm_defconfig | 5 ++++- include/configs/am57xx_evm.h | 5 ----- 3 files changed, 9 insertions(+), 8 deletions(-)Quoted 12 lines
configs/am57xx_evm_defconfig CONFIG_SPL_SPI_FLASH_SUPPORT=y · line 9
Quoted 10 lines
configs/am57xx_evm_defconfig +1
-1@@ -6,7 +6,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_ARMV7_LPAE=y CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15" +CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"Did you really want to change the default tree?
Quoted 1 line
Yeah, I make this as default as it contains peripherals for all boot modes.
OK, 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/20170210/2cfc61f8/attachment.sig>
PATCH v2 5/5 configs: dra7xx_evm: Enable SPL_DM
In reply to Lokesh VutlaEnable SPL_DM on all DRA7 based platforms.
--- configs/dra7xx_evm_defconfig | 5 ++++- configs/dra7xx_hs_evm_defconfig | 5 ++++- include/configs/dra7xx_evm.h | 5 ----- include/configs/ti_omap5_common.h | 8 +------- 4 files changed, 9 insertions(+), 14 deletions(-)
configs/dra7xx_evm_defconfig +4 -1
@@ -14,7 +14,9 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_DMA_SUPPORT=y CONFIG_SPL_OS_BOOT=y CONFIG_HUSH_PARSER=y
@@ -52,8 +54,10 @@ 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="dra7-evm dra72-evm dra72-evm-revc dra71-evm" CONFIG_DM=y +CONFIG_SPL_DM=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -96,4 +100,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 -CONFIG_SPL_OF_LIBFDT=y
configs/dra7xx_hs_evm_defconfig +4 -1
@@ -20,7 +20,9 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL=y +CONFIG_SPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_DMA_SUPPORT=y CONFIG_HUSH_PARSER=y CONFIG_FASTBOOT=y
@@ -57,8 +59,10 @@ 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="dra7-evm dra72-evm dra72-evm-revc dra71-evm" CONFIG_DM=y +CONFIG_SPL_DM=y # CONFIG_BLK is not set CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y
@@ -101,4 +105,3 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 -CONFIG_SPL_OF_LIBFDT=y
include/configs/dra7xx_evm.h +0 -5
@@ -123,11 +123,6 @@#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0#define CONFIG_QSPI_QUAD_SUPPORT -#ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_SPI -#undef CONFIG_DM_SPI_FLASH -#endif -/* * Default to using SPI for environment, etc. * 0x000000 - 0x040000 : QSPI.SPL (256KiB)
include/configs/ti_omap5_common.h +1 -7
@@ -45,7 +45,7 @@* Hardware drivers */ #define CONFIG_SYS_NS16550_CLK 48000000 -#if defined(CONFIG_SPL_BUILD ) || !defined(CONFIG_DM_SERIAL ) +#if !defined(CONFIG_DM_SERIAL )#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE (-4)#endif
@@ -163,14 +163,8 @@#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ #endif -/* -* Disable MMC DM for SPL build and can be re-enabled after adding -* DM support in SPL -*/ #ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_MMC#undef CONFIG_TIMER -#undef CONFIG_DM_ETH#endif #endif /* __CONFIG_TI_OMAP5_COMMON_H */
Signature · 1 line
2.11.0
PATCH v2 5/5 configs: dra7xx_evm: Enable SPL_DM
Quoted 3 lines · Lokesh Vutla
Enable
SPL_DMon all DRA7 based platforms.Signed-off-by Lokesh Vutla <[email protected]>
[snip]
Quoted 15 lines
+++
b/include/configs/ti_omap5_common.hinclude/configs/ti_omap5_common.h +1
-2@@ -45,7 +45,7 @@* Hardware drivers */ #define CONFIG_SYS_NS16550_CLK 48000000 -#if defined(CONFIG_SPL_BUILD ) || !defined(CONFIG_DM_SERIAL ) +#if !defined(CONFIG_DM_SERIAL )#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE (-4)#endif @@ -163,14 +163,8 @@#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ #endif -/*
include/configs/ti_omap5_common.h line 170
Quoted 10 lines
include/configs/ti_omap5_common.h +0
-5-* Disable MMC DM for SPL build and can be re-enabled after adding -* DM support in SPL -*/ #ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_MMC#undef CONFIG_TIMER -#undef CONFIG_DM_ETH#endif #endif /* __CONFIG_TI_OMAP5_COMMON_H */
Do you know why we need to disable timer?
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/20170209/7e51bb5d/attachment.sig>
PATCH v2 5/5 configs: dra7xx_evm: Enable SPL_DM
Quoted 30 lines · Tom Rini
Quoted 3 lines · Lokesh Vutla
Enable
SPL_DMon all DRA7 based platforms.Signed-off-by Lokesh Vutla <[email protected]>[snip]
Quoted 24 lines
+++
b/include/configs/ti_omap5_common.hinclude/configs/ti_omap5_common.h +1
-7@@ -45,7 +45,7 @@* Hardware drivers */ #define CONFIG_SYS_NS16550_CLK 48000000 -#if defined(CONFIG_SPL_BUILD ) || !defined(CONFIG_DM_SERIAL ) +#if !defined(CONFIG_DM_SERIAL )#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE (-4)#endif @@ -163,14 +163,8 @@#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ #endif -/* -* Disable MMC DM for SPL build and can be re-enabled after adding -* DM support in SPL -*/ #ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_MMC#undef CONFIG_TIMER -#undef CONFIG_DM_ETH#endif
Quoted 3 lines
include/configs/ti_omap5_common.h line 170
Quoted 1 line
include/configs/ti_omap5_common.h +0
-0#endif /* __CONFIG_TI_OMAP5_COMMON_H */ Do you know why we need to disable timer?
drivers/timer/ is not yet include in SPL and also we need to implement timer_early in SPL. I guess that is a different task. So till then I though of disabling it here.
Thanks and regards,
Lokesh
PATCH v2 5/5 configs: dra7xx_evm: Enable SPL_DM
Quoted 31 lines · Lokesh Vutla
Quoted 30 lines · Tom Rini
Quoted 3 lines · Lokesh Vutla
Enable
SPL_DMon all DRA7 based platforms.Signed-off-by Lokesh Vutla <[email protected]>[snip]
Quoted 24 lines
+++
b/include/configs/ti_omap5_common.hinclude/configs/ti_omap5_common.h +1
-7@@ -45,7 +45,7 @@* Hardware drivers */ #define CONFIG_SYS_NS16550_CLK 48000000 -#if defined(CONFIG_SPL_BUILD ) || !defined(CONFIG_DM_SERIAL ) +#if !defined(CONFIG_DM_SERIAL )#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE (-4)#endif @@ -163,14 +163,8 @@#define CONFIG_SPL_NAND_AM33XX_BCH /* ELM support */ #endif -/* -* Disable MMC DM for SPL build and can be re-enabled after adding -* DM support in SPL -*/ #ifdef CONFIG_SPL_BUILD -#undef CONFIG_DM_MMC#undef CONFIG_TIMER -#undef CONFIG_DM_ETH#endif
Quoted 7 lines
Quoted 3 lines
include/configs/ti_omap5_common.h line 170
Quoted 1 line
include/configs/ti_omap5_common.h +0
-0#endif /* __CONFIG_TI_OMAP5_COMMON_H */ Do you know why we need to disable timer?
drivers/timer/is not yet include in SPL and also we need to implementtimer_earlyin SPL. I guess that is a different task. So till then I though of disabling it here.
OK 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/20170210/84cab7fe/attachment.sig>
v2 cover ARM: DRA7: AM57xx: Enable SPL_DM
In reply to Lokesh VutlaHi Tom,
Quoted 10 lines · Lokesh Vutla
- Enable
SPL_DMon all DRA7 and AM57xx based platforms.
- SPL uses a generic dts on all platforms with same defconfig.
- After this series SPL size is increased by ~8KB.Verified MMC, eMMC boot on DRA74-evm, DRA72-evm.
MMC boot on AM57xx-evm.Changes since v1:
- Instead of creating a new dts file for each platform, created a omap5 specific common dtsi that will be included automatically.
I see a problem with this approach. We want this omap5-u-boot.dtsi only for SPL. But Makefile.lib tries to append this for each dtb in proper U-Boot as well. As we might not need any of these in U-Boot before relocation, the behavior is unexpected(sometimes U-boot does not comes up ). I would like to go ahead with V1 of this series, what do you say?
Thanks and regards,
Lokesh