Skip to contentSkip to conversation

ARM: DRA7xx: Enable FIT

PATCH Superseded Lokesh Vutla 2 participants 10 messages May 6, 2016 – May 9, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: DRA7xx: Enable FIT

This series enables FIT for DRA7xx platforms. Depends on the FIT support series posted recently.

Testing:
Defconfig used: dra7xx_evm_defconfig (DT boot with FIT enabled) DRA74-Evm RevH:
SD boot: http://pastebin.ubuntu.com/16258169/
eMMC boot: http://pastebin.ubuntu.com/16258272/
QSPI_4 boot: http://pastebin.ubuntu.com/16258216/

DRA72-Evm RevC:
SD boot: http://pastebin.ubuntu.com/16257943/
eMMC boot: http://pastebin.ubuntu.com/16258075/
QSPI_4 boot: http://pastebin.ubuntu.com/16258135/

Lokesh Vutla (4):
ARM: DRA7: configs: Rename dra7xx_evm to dra7xx_evm_nodt defconfig
board: dra7: fit: add support for selecting dtb dynamically
ARM: DRA7: Enable FIT
ARM: DRA7: configs: Remove obsolete configs

 board/ti/dra7xx/MAINTAINERS           |  5 +---
 board/ti/dra7xx/evm.c                 | 12 ++++++++
 configs/dra72_evm_defconfig           | 53 -----------------------------------
 configs/dra74_evm_defconfig           | 52 ----------------------------------
 configs/dra7xx_evm_defconfig          | 15 +++++++++-
 configs/dra7xx_evm_nodt_defconfig     | 43 ++++++++++++++++++++++++++++
 configs/dra7xx_evm_qspiboot_defconfig | 43 ----------------------------
 configs/dra7xx_evm_uart3_defconfig    | 44 -----------------------------
 8 files changed, 70 insertions(+), 197 deletions(-)
 delete mode 100644 configs/dra72_evm_defconfig
 delete mode 100644 configs/dra74_evm_defconfig
 create mode 100644 configs/dra7xx_evm_nodt_defconfig
 delete mode 100644 configs/dra7xx_evm_qspiboot_defconfig
 delete mode 100644 configs/dra7xx_evm_uart3_defconfig
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/4 ARM: DRA7: configs: Rename dra7xx_evm to dra7xx_evm_nodt defconfig

This is to make dra7xx_evm_defconfig to use DT and FIT support by default.

---
 board/ti/dra7xx/MAINTAINERS       |  2 +-
 configs/dra7xx_evm_defconfig      | 43 ---------------------------------------
 configs/dra7xx_evm_nodt_defconfig | 43 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 44 deletions(-)
 delete mode 100644 configs/dra7xx_evm_defconfig
 create mode 100644 configs/dra7xx_evm_nodt_defconfig
board/ti/dra7xx/MAINTAINERS +1 -1
index 3f638d0..f158487 100644
@@ -5,6 +5,6 @@ F:	board/ti/dra7xx/
 F:	include/configs/dra7xx_evm.h
 F:	configs/dra72_evm_defconfig
 F:	configs/dra74_evm_defconfig
-F:	configs/dra7xx_evm_defconfig
+F:	configs/dra7xx_evm_nodt_defconfig
 F:	configs/dra7xx_evm_qspiboot_defconfig
 F:	configs/dra7xx_evm_uart3_defconfig
configs/dra7xx_evm_defconfig deleted +0 -43

43 lines not on this page · raw message

configs/dra7xx_evm_nodt_defconfig new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/4 ARM: DRA7: configs: Rename dra7xx_evm to dra7xx_evm_nodt defconfig

Quoted 4 lines · Lokesh Vutla

This is to make dra7xx_evm_defconfig to use DT and FIT support by default.

Lets just drop the non-DT way of doing things here.

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/20160506/127f88ea/attachment.sig>
#3 lore raw

PATCH 1/4 ARM: DRA7: configs: Rename dra7xx_evm to dra7xx_evm_nodt defconfig

Hi Tom,

Quoted 8 lines · Tom Rini
Quoted 4 lines · Lokesh Vutla

This is to make dra7xx_evm_defconfig to use DT and FIT support by default.

Lets just drop the non-DT way of doing things here.

Peripheral boot like ethernet, uart and XIP boot does support FIT loading yet. So, I wanted to keep a non-dt defconfig so that these modes can be verified. Once these are done, we can delete this.

Thanks and regards,
Lokesh

Quoted 1 line
#4 lore raw

PATCH 2/4 board: dra7: fit: add support for selecting dtb dynamically

In reply to Lokesh Vutla

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

---
 board/ti/dra7xx/evm.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
board/ti/dra7xx/evm.c +12 -0
index 9bd71d8..5122c3a 100644
@@ -718,3 +718,15 @@ int board_early_init_f(void)
 	return 0;
 }
 #endif
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+	if (is_dra72x() && !strcmp(name, "dra72-evm"))
+		return 0;
+	else if (!is_dra72x() && !strcmp(name, "dra7-evm"))
+		return 0;
+	else
+		return -1;
+}
+#endif
Signature · 1 line
2.7.4
#5 lore raw

PATCH 2/4 board: dra7: fit: add support for selecting dtb dynamically

Quoted 4 lines · Lokesh Vutla

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

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/20160506/f1cdd674/attachment.sig>
#6 lore raw

PATCH 3/4 ARM: DRA7: Enable FIT

In reply to Lokesh Vutla

Use a single defconfig for all DRA7 platforms by enabling FIT and delete the platform specific defconfigs.

---
 board/ti/dra7xx/MAINTAINERS  |  3 +--
 configs/dra72_evm_defconfig  | 53 -----------------------------------------
 configs/dra74_evm_defconfig  | 52 ----------------------------------------
 configs/dra7xx_evm_defconfig | 56 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 107 deletions(-)
 delete mode 100644 configs/dra72_evm_defconfig
 delete mode 100644 configs/dra74_evm_defconfig
 create mode 100644 configs/dra7xx_evm_defconfig
board/ti/dra7xx/MAINTAINERS +1 -2
index f158487..d6efe26 100644
@@ -3,8 +3,7 @@ M:	Lokesh Vutla <[email protected]>
 S:	Maintained
 F:	board/ti/dra7xx/
 F:	include/configs/dra7xx_evm.h
-F:	configs/dra72_evm_defconfig
-F:	configs/dra74_evm_defconfig
+F:	configs/dra7xx_evm_defconfig
 F:	configs/dra7xx_evm_nodt_defconfig
 F:	configs/dra7xx_evm_qspiboot_defconfig
 F:	configs/dra7xx_evm_uart3_defconfig
configs/dra72_evm_defconfig deleted +0 -53

53 lines not on this page · raw message

configs/dra74_evm_defconfig deleted +0 -52

52 lines not on this page · raw message

configs/dra7xx_evm_defconfig new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.7.4
#7 lore raw

PATCH 3/4 ARM: DRA7: Enable FIT

Quoted 4 lines · Lokesh Vutla

Use a single defconfig for all DRA7 platforms by enabling FIT and delete the platform specific defconfigs.

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/20160506/ebc8bbf5/attachment.sig>
#8 lore raw

PATCH 4/4 ARM: DRA7: configs: Remove obsolete configs

In reply to Lokesh Vutla

Removing:
uart3_defconfig:
Now uart3 can be selected using menuconfig, removing separate config for uart mode. Doing uart boot is not straight forward as ROM uses uart3 as default serial console. In order to boot to prompt, concole in both u-boot and kernel needs to be changed.

qspiboot_defconfig:
The only advantage of enabling QSPI_BOOT is selecting env in QSPI. Eventually env needs to be selected by menuconfig so removing qspiboot_defconfig. qspiboot can be done using dra7xx_evm_defconfig.

---
 board/ti/dra7xx/MAINTAINERS           |  2 --
 configs/dra7xx_evm_qspiboot_defconfig | 43 ----------------------------------
 configs/dra7xx_evm_uart3_defconfig    | 44 -----------------------------------
 3 files changed, 89 deletions(-)
 delete mode 100644 configs/dra7xx_evm_qspiboot_defconfig
 delete mode 100644 configs/dra7xx_evm_uart3_defconfig
board/ti/dra7xx/MAINTAINERS +0 -2
index d6efe26..edfbdb7 100644
@@ -5,5 +5,3 @@ F:	board/ti/dra7xx/
 F:	include/configs/dra7xx_evm.h
 F:	configs/dra7xx_evm_defconfig
 F:	configs/dra7xx_evm_nodt_defconfig
-F:	configs/dra7xx_evm_qspiboot_defconfig
-F:	configs/dra7xx_evm_uart3_defconfig
configs/dra7xx_evm_qspiboot_defconfig deleted +0 -43

43 lines not on this page · raw message

configs/dra7xx_evm_uart3_defconfig deleted +0 -44

44 lines not on this page · raw message

Signature · 1 line
2.7.4
#9 lore raw

PATCH 4/4 ARM: DRA7: configs: Remove obsolete configs

Quoted 7 lines · Lokesh Vutla

Removing:
uart3_defconfig:
Now uart3 can be selected using menuconfig, removing separate config for uart mode. Doing uart boot is not straight forward as ROM uses uart3 as default serial console. In order to boot to prompt, concole in both u-boot and kernel needs to be changed.

Quoted 6 lines

qspiboot_defconfig:
The only advantage of enabling QSPI_BOOT is selecting env in QSPI. Eventually env needs to be selected by menuconfig so removing qspiboot_defconfig. qspiboot can be done using dra7xx_evm_defconfig.

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/20160506/c87ff2f6/attachment.sig>