diff mbox series

[U-Boot,2/3] ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

Message ID 20171217023606.10308-1-woods.technical@gmail.com
State Superseded
Delegated to: Tom Rini
Headers show
Series None | expand

Commit Message

Derald Woods Dec. 17, 2017, 2:36 a.m. UTC
This commit updates the configuration files needed to support OF_CONTROL
on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled
- CONFIG_SPL_EXT_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

Signed-off-by: Derald D. Woods <woods.technical@gmail.com>

---

v2:
- Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
- Bring back bus and filesystem commands previously dropped
- Update commit message

 arch/arm/mach-omap2/omap3/Kconfig | 4 ++++
 configs/omap3_evm_defconfig       | 6 +++++-
 include/configs/omap3_evm.h       | 6 ------
 3 files changed, 9 insertions(+), 7 deletions(-)

Comments

Tom Rini Dec. 27, 2017, 1:15 p.m. UTC | #1
On Sat, Dec 16, 2017 at 08:36:06PM -0600, Derald D. Woods wrote:

> This commit updates the configuration files needed to support OF_CONTROL
> on the OMAP3 EVM baseboard.
> 
> Additionally:
> - CONFIG_SYS_THUMB_BUILD is enabled
> - CONFIG_SPL_ENV_SUPPORT is enabled
> - CONFIG_SPL_EXT_SUPPORT is enabled
> 
> Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].
> 
> Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
> ---
> 
> v2:
> - Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
> - Bring back bus and filesystem commands previously dropped
> - Update commit message

So, this fails for me:
https://travis-ci.org/trini/u-boot/jobs/321879321

There's two possible reasons.  One, gcc 7.2.0 is doing a better job of
optimizing things down and it still fits in SRAM.  Or two, I noticed
when test building this at first that CONFIG_SPL_EXT_SUPPORT was both
enabled then disabled in the defconfig, and the disable won.  Given the
commit message about enabling it specifically I also dropped the disable
line from the defconfig.  Perhaps there's really not room for
CONFIG_SPL_EXT_SUPPORT ?
Derald Woods Dec. 27, 2017, 3:22 p.m. UTC | #2
On Wed, Dec 27, 2017 at 08:15:11AM -0500, Tom Rini wrote:
> On Sat, Dec 16, 2017 at 08:36:06PM -0600, Derald D. Woods wrote:
> 
> > This commit updates the configuration files needed to support OF_CONTROL
> > on the OMAP3 EVM baseboard.
> > 
> > Additionally:
> > - CONFIG_SYS_THUMB_BUILD is enabled
> > - CONFIG_SPL_ENV_SUPPORT is enabled
> > - CONFIG_SPL_EXT_SUPPORT is enabled
> > 
> > Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].
> > 
> > Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
> > ---
> > 
> > v2:
> > - Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
> > - Bring back bus and filesystem commands previously dropped
> > - Update commit message
> 
> So, this fails for me:
> https://travis-ci.org/trini/u-boot/jobs/321879321
> 
> There's two possible reasons.  One, gcc 7.2.0 is doing a better job of
> optimizing things down and it still fits in SRAM.  Or two, I noticed
> when test building this at first that CONFIG_SPL_EXT_SUPPORT was both
> enabled then disabled in the defconfig, and the disable won.  Given the
> commit message about enabling it specifically I also dropped the disable
> line from the defconfig.  Perhaps there's really not room for
> CONFIG_SPL_EXT_SUPPORT ?
> 

Okay. I will revert the CONFIG_SPL_EXT_SUPPORT so that the 'CI' build
works for the board. A 'V3' will be posted shortly.

Derald
diff mbox series

Patch

diff --git a/arch/arm/mach-omap2/omap3/Kconfig b/arch/arm/mach-omap2/omap3/Kconfig
index 4dbf9a27da..6d714f6cdb 100644
--- a/arch/arm/mach-omap2/omap3/Kconfig
+++ b/arch/arm/mach-omap2/omap3/Kconfig
@@ -61,6 +61,10 @@  config TARGET_DEVKIT8000
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
+	select DM
+	select DM_SERIAL
+	select DM_GPIO
+	select OMAP3_GPIO_3
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
diff --git a/configs/omap3_evm_defconfig b/configs/omap3_evm_defconfig
index 0c513664fe..c69b880bcc 100644
--- a/configs/omap3_evm_defconfig
+++ b/configs/omap3_evm_defconfig
@@ -1,10 +1,11 @@ 
 CONFIG_ARM=y
-# CONFIG_SYS_THUMB_BUILD is not set
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_TEXT_BASE=0x80100000
+CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SYS_MPUCLK=720
 CONFIG_TARGET_OMAP3_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="omap3-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
@@ -12,6 +13,8 @@  CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_DEFAULT_FDT_FILE="omap3-evm.dtb"
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SPL_EXT_SUPPORT is not set
 CONFIG_SPL_MTD_SUPPORT=y
@@ -36,6 +39,7 @@  CONFIG_CMD_UBI=y
 # CONFIG_ISO_PARTITION is not set
 # CONFIG_EFI_PARTITION is not set
 CONFIG_SPL_PARTITION_UUIDS=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h
index 42f2153637..629d60b961 100644
--- a/include/configs/omap3_evm.h
+++ b/include/configs/omap3_evm.h
@@ -42,8 +42,6 @@ 
 #define CONFIG_SYS_NS16550_COM1         OMAP34XX_UART1
 #if defined(CONFIG_SPL_BUILD)
 #undef CONFIG_SYS_NS16550_REG_SIZE
-#else /* !CONFIG_SPL_BUILD  */
-#define CONFIG_SYS_NS16550_REG_SIZE     (-1)
 #endif /* CONFIG_SPL_BUILD */
 
 /* NAND */
@@ -86,8 +84,6 @@ 
 /* Environment */
 #define CONFIG_PREBOOT                  "usb start"
 
-#if !defined(CONFIG_SPL_BUILD)
-
 #include <config_distro_defaults.h>
 
 #define MEM_LAYOUT_ENV_SETTINGS \
@@ -181,6 +177,4 @@ 
 		"bootm ${loadaddr} - ${fdtaddr}\0" \
 	BOOTENV
 
-#endif /* !CONFIG_SPL_BUILD */
-
 #endif /* __CONFIG_H */