Skip to contentSkip to conversation

ARM: AM57xx: Enable fit support

PATCH New Lokesh Vutla 2 participants 11 messages Jun 10, 2016 – Jun 19, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

v2 cover ARM: AM57xx: Enable fit support

This series adds support for AM572x-IDK and FIT support on all AM57xx platforms.

Lokesh Vutla (4):
board: am57xx: Rename TARGET_BEAGLE_X15 as TARGET_AM57XX_EVM
board: am57xx: fit: add support for selecting dtb dynamically
ARM: AM57xx: Enable FIT
ti_omap5_common: Add right dtb file for AM572x-IDK

Schuyler Patton (1):
ARM: dts: AM572x-IDK Initial Support

 arch/arm/cpu/armv7/omap5/Kconfig    |   4 +-
 arch/arm/dts/Makefile               |   3 +-
 arch/arm/dts/am572x-idk.dts         |  89 +++++++++++
 arch/arm/dts/am57xx-idk-common.dtsi | 302 ++++++++++++++++++++++++++++++++++++
 board/ti/am57xx/Kconfig             |   2 +-
 board/ti/am57xx/board.c             |  14 ++
 configs/am57xx_evm_defconfig        |   6 +-
 configs/am57xx_evm_nodt_defconfig   |   2 +-
 configs/am57xx_hs_evm_defconfig     |   2 +-
 include/configs/ti_omap5_common.h   |   2 +
 10 files changed, 419 insertions(+), 7 deletions(-)
 create mode 100644 arch/arm/dts/am572x-idk.dts
 create mode 100644 arch/arm/dts/am57xx-idk-common.dtsi
Signature · 1 line
2.8.2
#1 lore raw

PATCH v2 1/5 board: am57xx: Rename TARGET_BEAGLE_X15 as TARGET_AM57XX_EVM

board/am57xx supports all boards based on am57xx. Rename the taget as TARGET_AM57XX_EVM.

Fixes 74cc8b097d9af ("board: ti: beagle_x15: Rename to indicate support for TI am57xx evms")
---
 arch/arm/cpu/armv7/omap5/Kconfig  | 4 ++--
 arch/arm/dts/Makefile             | 2 +-
 board/ti/am57xx/Kconfig           | 2 +-
 configs/am57xx_evm_defconfig      | 2 +-
 configs/am57xx_evm_nodt_defconfig | 2 +-
 configs/am57xx_hs_evm_defconfig   | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
arch/arm/cpu/armv7/omap5/Kconfig +2 -2
index 026bf24..4fb5ef9 100644
@@ -14,8 +14,8 @@ config TARGET_DRA7XX_EVM
 	bool "TI DRA7XX"
 	select TI_I2C_BOARD_DETECT
 
-config TARGET_BEAGLE_X15
-	bool "BeagleBoard X15"
+config TARGET_AM57XX_EVM
+	bool "AM57XX"
 	select TI_I2C_BOARD_DETECT
 
 endchoice
arch/arm/dts/Makefile +1 -1
index a827613..65ca1f9 100644
@@ -114,7 +114,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_cyclone5_vining_fpga.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb
-dtb-$(CONFIG_TARGET_BEAGLE_X15) += am57xx-beagle-x15.dtb
+dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds-duart.dtb \
board/ti/am57xx/Kconfig +1 -1
index 87654f9..cead0f4 100644
@@ -1,4 +1,4 @@
-if TARGET_BEAGLE_X15
+if TARGET_AM57XX_EVM
 
 config SYS_BOARD
 	default "am57xx"
configs/am57xx_evm_defconfig +1 -1
index b63ff89..4d8fbcd 100644
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_OMAP54XX=y
-CONFIG_TARGET_BEAGLE_X15=y
+CONFIG_TARGET_AM57XX_EVM=y
 CONFIG_DM_SERIAL=y
 CONFIG_DM_GPIO=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
configs/am57xx_evm_nodt_defconfig +1 -1
index 1cf82d2..4c5a0de 100644
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_OMAP54XX=y
-CONFIG_TARGET_BEAGLE_X15=y
+CONFIG_TARGET_AM57XX_EVM=y
 CONFIG_SPL=y
 CONFIG_HUSH_PARSER=y
 CONFIG_CMD_BOOTZ=y
configs/am57xx_hs_evm_defconfig +1 -1
index aa459a1..ce377cb 100644
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_OMAP54XX=y
 CONFIG_TI_SECURE_DEVICE=y
-CONFIG_TARGET_BEAGLE_X15=y
+CONFIG_TARGET_AM57XX_EVM=y
 CONFIG_DM_SERIAL=y
 CONFIG_DM_GPIO=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
Signature · 1 line
2.8.2
#2 lore raw

PATCH v2 1/5 board: am57xx: Rename TARGET_BEAGLE_X15 as TARGET_AM57XX_EVM

Quoted 6 lines · Lokesh Vutla

board/am57xx supports all boards based on am57xx. Rename the taget as TARGET_AM57XX_EVM.

Fixes 74cc8b097d9af ("board: ti: beagle_x15: Rename to indicate support for TI am57xx evms")

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/20160619/0bdfa460/attachment.sig>
#3 lore raw

PATCH v2 2/5 board: am57xx: fit: add support for selecting dtb dynamically

In reply to Lokesh Vutla

FIT allows for a multiple dtb in a single image. SPL needs away to detect the right dtb to be used. Adding support for the same for am57xx platforms.

---
 board/ti/am57xx/board.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
board/ti/am57xx/board.c +12 -0
index ccf97b2..ac5b794 100644
@@ -736,3 +736,15 @@ int ft_board_setup(void *blob, bd_t *bd)
 	return 0;
 }
 #endif
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+	if (board_is_x15() && !strcmp(name, "am57xx-beagle-x15"))
+		return 0;
+	else if (board_is_am572x_evm() && !strcmp(name, "am57xx-beagle-x15"))
+		return 0;
+	else
+		return -1;
+}
+#endif
Signature · 1 line
2.8.2
#4 lore raw

PATCH v2 2/5 board: am57xx: fit: add support for selecting dtb dynamically

Quoted 6 lines · Lokesh Vutla

FIT allows for a multiple dtb in a single image. SPL needs away to detect the right dtb to be used. Adding support for the same for am57xx 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/20160619/14431f61/attachment.sig>
#5 lore raw

PATCH v2 3/5 ARM: AM57xx: Enable FIT

In reply to Lokesh Vutla

Enable FIT support for AM57xx platforms

---
 configs/am57xx_evm_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/am57xx_evm_defconfig +4 -0
index 4d8fbcd..249a287 100644
@@ -36,3 +36,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
+CONFIG_FIT=y
+CONFIG_SPL_OF_LIBFDT=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_OF_LIST="am57xx-beagle-x15"
Signature · 1 line
2.8.2
#6 lore raw

PATCH v2 3/5 ARM: AM57xx: Enable FIT

Quoted 4 lines · Lokesh Vutla

Enable FIT support for AM57xx 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/20160619/2e8108d7/attachment.sig>
#7 lore raw

PATCH v2 4/5 ARM: dts: AM572x-IDK Initial Support

In reply to Lokesh Vutla

From: Schuyler Patton <[email protected]>

Add initial DTS support for AM572-IDK evm.

---
 arch/arm/dts/Makefile               |   3 +-
 arch/arm/dts/am572x-idk.dts         |  89 +++++++++++
 arch/arm/dts/am57xx-idk-common.dtsi | 302 ++++++++++++++++++++++++++++++++++++
 board/ti/am57xx/board.c             |   2 +
 configs/am57xx_evm_defconfig        |   2 +-
 5 files changed, 396 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/am572x-idk.dts
 create mode 100644 arch/arm/dts/am57xx-idk-common.dtsi
arch/arm/dts/Makefile +2 -1
index 65ca1f9..6fc49c7 100644
@@ -114,7 +114,8 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_cyclone5_vining_fpga.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb
-dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb
+dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb \
+	am572x-idk.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds-duart.dtb \
arch/arm/dts/am572x-idk.dts new file +89 -0

89 lines not on this page · raw message

arch/arm/dts/am57xx-idk-common.dtsi new file +302 -0

302 lines not on this page · raw message

board/ti/am57xx/board.c +2 -0
index ac5b794..08cf14d 100644
@@ -744,6 +744,8 @@ int board_fit_config_name_match(const char *name)
 		return 0;
 	else if (board_is_am572x_evm() && !strcmp(name, "am57xx-beagle-x15"))
 		return 0;
+	else if (board_is_am572x_idk() && !strcmp(name, "am572x-idk"))
+		return 0;
 	else
 		return -1;
 }
configs/am57xx_evm_defconfig +1 -1
index 249a287..8526526 100644
@@ -39,4 +39,4 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_FIT=y
 CONFIG_SPL_OF_LIBFDT=y
 CONFIG_SPL_LOAD_FIT=y
-CONFIG_OF_LIST="am57xx-beagle-x15"
+CONFIG_OF_LIST="am57xx-beagle-x15 am572x-idk"
Signature · 1 line
2.8.2
#8 lore raw

PATCH v2 4/5 ARM: dts: AM572x-IDK Initial Support

Quoted 8 lines · Lokesh Vutla

From: Schuyler Patton <[email protected]>

Add initial DTS support for AM572-IDK evm.

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/20160619/a628b002/attachment.sig>
#9 lore raw

PATCH v2 5/5 ti_omap5_common: Add right dtb file for AM572x-IDK

In reply to Lokesh Vutla

Add proper dtb file name for AM572x-IDK in env.

---
 include/configs/ti_omap5_common.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/ti_omap5_common.h +2 -0
index 5c5a12d..2e4c8e9 100644
@@ -104,6 +104,8 @@
 			"setenv fdtfile dra72-evm.dtb; fi;" \
 		"if test $board_name = beagle_x15; then " \
 			"setenv fdtfile am57xx-beagle-x15.dtb; fi;" \
+		"if test $board_name = am572x_idk; then " \
+			"setenv fdtfile am572x-idk.dtb; fi;" \
 		"if test $board_name = am57xx_evm; then " \
 			"setenv fdtfile am57xx-beagle-x15.dtb; fi;" \
 		"if test $fdtfile = undefined; then " \
Signature · 1 line
2.8.2
#10 lore raw

PATCH v2 5/5 ti_omap5_common: Add right dtb file for AM572x-IDK

Quoted 4 lines · Lokesh Vutla

Add proper dtb file name for AM572x-IDK in env.

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/20160619/79168d75/attachment.sig>