Skip to contentSkip to conversation

ARM: AM43xx: Enable SPL_DM

PATCH New Lokesh Vutla 2 participants 8 messages Feb 21, 2017 – Mar 21, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v4 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 sine v3:
- Use imply keyword for enabling various DM_* configs

Changes since v2:
- Adapted to use 'imply' in Kconfig

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
ARM: AM43xx: Enable DM_I2C/SPI/ETH
configs: am43xx_evm: Enable SPL_DM

 arch/arm/Kconfig                          |  6 +++++
 arch/arm/dts/am437x-gp-evm-u-boot.dtsi    | 38 +++++++++++++++++++++++++++++++
 arch/arm/mach-omap2/am33xx/Kconfig        |  5 ++++
 configs/am43xx_evm_defconfig              |  2 +-
 configs/am43xx_evm_ethboot_defconfig      |  1 +
 configs/am43xx_evm_usbhost_boot_defconfig |  2 +-
 configs/am43xx_hs_evm_defconfig           |  2 +-
 include/configs/am43xx_evm.h              |  7 ++----
 8 files changed, 55 insertions(+), 8 deletions(-)
 create mode 100644 arch/arm/dts/am437x-gp-evm-u-boot.dtsi
Signature · 1 line
2.11.0
#1 lore raw

PATCH v4 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
new file mode 100644
index 0000000000..885a9a92db
@@ -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
#2 lore raw

PATCH v4 1/3 ARM: dts: am43xx: Add u-boot specific dtsi

Quoted 5 lines · Lokesh Vutla

Add u-boot specific dtsi for am43xx-gp-evm so
that it will be used for SPL.

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: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170321/f3289c9b/attachment.sig>
#3 lore raw

PATCH v4 2/3 ARM: AM43xx: Enable DM_I2C/SPI/ETH

In reply to Lokesh Vutla

Enable DM_I2C/SPI/ETH for all AM43XX based boards. Enable it using imply keyword so that a user can disable this when not needed.

---
 arch/arm/mach-omap2/am33xx/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-omap2/am33xx/Kconfig +5 -0
index 5b5d3f8cec..64f688de2a 100644
@@ -114,6 +114,11 @@ config TARGET_AM43XX_EVM
 	bool "Support am43xx_evm"
 	select BOARD_LATE_INIT
 	select TI_I2C_BOARD_DETECT
+	imply DM_I2C
+	imply DM_SPI_FLASH
+	imply SPI_FLASH_BAR
+	imply DM_ETH
+	imply DM_SPI
 	help
 	  This option specifies support for the AM43xx
 	  GP and HS EVM development platforms.The AM437x
Signature · 1 line
2.11.0
#4 lore raw

PATCH v4 2/3 ARM: AM43xx: Enable DM_I2C/SPI/ETH

Quoted 5 lines · Lokesh Vutla

Enable DM_I2C/SPI/ETH for all AM43XX based boards. Enable it using imply keyword so that a user can disable this when not needed.

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: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170321/a050fbe3/attachment.sig>
#5 lore raw

PATCH v4 3/3 configs: am43xx_evm: Enable SPL_DM

In reply to Lokesh Vutla

Enable SPL_DM on all AM43xx based platforms

---
 arch/arm/Kconfig                          | 6 ++++++
 configs/am43xx_evm_defconfig              | 2 +-
 configs/am43xx_evm_ethboot_defconfig      | 1 +
 configs/am43xx_evm_usbhost_boot_defconfig | 2 +-
 configs/am43xx_hs_evm_defconfig           | 2 +-
 include/configs/am43xx_evm.h              | 7 ++-----
 6 files changed, 12 insertions(+), 8 deletions(-)
arch/arm/Kconfig +6 -0
index e84b74efb6..ceec643bc3 100644
@@ -583,6 +583,12 @@ config OMAP54XX
 config AM43XX
 	bool "AM43XX SoC"
 	select ARCH_OMAP2
+	imply SPL_SYS_MALLOC_SIMPLE
+	imply SPL_SEPARATE_BSS
+	imply SPL_OF_CONTROL
+	imply SPL_DM
+	imply SPL_DM_SEQ_ALIAS
+	imply SPL_OF_TRANSLATE
 	help
 	  Support for AM43xx SOC from Texas Instruments.
 	  The AM43xx high performance SOC features a Cortex-A9
configs/am43xx_evm_defconfig +1 -1
index 6fb2053f33..a04ba1dddb 100644
@@ -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
@@ -73,4 +74,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_ethboot_defconfig +1 -0
index f395b6d097..66fbcd0310 100644
@@ -6,6 +6,7 @@ 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 is not set
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NET_SUPPORT=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -1
index 5775ab16dd..65824cea0e 100644
@@ -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
@@ -71,4 +72,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 +1 -1
index 6bcbfd77ed..61e2d58fc9 100644
@@ -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
@@ -82,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
include/configs/am43xx_evm.h +2 -5
index 1d622eff2f..ec99958fcd 100644
@@ -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
#6 lore raw

PATCH v4 3/3 configs: am43xx_evm: Enable SPL_DM

Quoted 4 lines · Lokesh Vutla

Enable SPL_DM on all AM43xx based platforms

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/20170227/4ebe7952/attachment.sig>
#7 lore raw

PATCH v4 3/3 configs: am43xx_evm: Enable SPL_DM

In reply to Lokesh Vutla
Quoted 5 lines · Lokesh Vutla

Enable SPL_DM on all AM43xx based platforms

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: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170321/b7b636b4/attachment.sig>