ARM: DRA7xx: Enable FIT
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
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
@@ -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
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_defconfigto use DT and FIT support by default.Signed-off-by Lokesh Vutla <[email protected]>
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>
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_defconfigto use DT and FIT support by default.Signed-off-by Lokesh Vutla <[email protected]>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
PATCH 2/4 board: dra7: fit: add support for selecting dtb dynamically
In reply to Lokesh VutlaFIT 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
@@ -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
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.
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/20160506/f1cdd674/attachment.sig>
PATCH 3/4 ARM: DRA7: Enable FIT
In reply to Lokesh VutlaUse 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
@@ -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
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.
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/20160506/ebc8bbf5/attachment.sig>
PATCH 4/4 ARM: DRA7: configs: Remove obsolete configs
In reply to Lokesh VutlaRemoving: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
@@ -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
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 enablingQSPI_BOOTis selecting env in QSPI. Eventually env needs to be selected by menuconfig so removingqspiboot_defconfig. qspiboot can be done usingdra7xx_evm_defconfig.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/20160506/c87ff2f6/attachment.sig>