Skip to contentSkip to conversation

ARM: DRA7xx: Enable FIT

PATCH New Lokesh Vutla 2 participants 8 messages May 16, 2016 – May 30, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover ARM: DRA7xx: Enable FIT

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

Link to v1: https://www.mail-archive.com/u-boot at lists.denx.de/msg211963.html

Lokesh Vutla (3):
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_qspiboot_defconfig | 43 ----------------------------
 configs/dra7xx_evm_uart3_defconfig    | 44 -----------------------------
 7 files changed, 27 insertions(+), 197 deletions(-)
 delete mode 100644 configs/dra72_evm_defconfig
 delete mode 100644 configs/dra74_evm_defconfig
 delete mode 100644 configs/dra7xx_evm_qspiboot_defconfig
 delete mode 100644 configs/dra7xx_evm_uart3_defconfig
Signature · 1 line
2.8.2
#1 lore raw

PATCH v2 1/3 board: dra7: fit: add support for selecting dtb dynamically

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.

---
-Changes since v1:
None

 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.8.2
#2 lore raw

PATCH v2 1/3 board: dra7: fit: add support for selecting dtb dynamically

Quoted 5 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.

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/20160530/961ed7ee/attachment.sig>
#3 lore raw

PATCH v2 2/3 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.

---
Changes since v1:
- Removed dra7xx_evm_nodt_defconfig

 board/ti/dra7xx/MAINTAINERS  |  3 +--
 configs/dra72_evm_defconfig  | 53 --------------------------------------------
 configs/dra74_evm_defconfig  | 52 -------------------------------------------
 configs/dra7xx_evm_defconfig | 15 ++++++++++++-
 4 files changed, 15 insertions(+), 108 deletions(-)
 delete mode 100644 configs/dra72_evm_defconfig
 delete mode 100644 configs/dra74_evm_defconfig
board/ti/dra7xx/MAINTAINERS +1 -2
index 3f638d0..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 +14 -1
index b6458ae..c856eb7 100644
@@ -1,7 +1,12 @@
 CONFIG_ARM=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_DRA7XX_EVM=y
+CONFIG_DM_SERIAL=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_DM_GPIO=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_DEFAULT_DEVICE_TREE="dra7-evm"
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_HUSH_PARSER=y
@@ -25,11 +30,16 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_OF_CONTROL=y
+CONFIG_DM=y
+CONFIG_DM_MMC=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
+CONFIG_TIMER=y
+CONFIG_OMAP_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GADGET=y
@@ -40,4 +50,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0451
 CONFIG_G_DNL_PRODUCT_NUM=0xd022
-CONFIG_OF_LIBFDT=y
+CONFIG_FIT=y
+CONFIG_SPL_OF_LIBFDT=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_OF_LIST="dra7-evm dra72-evm"
Signature · 1 line
2.8.2
#4 lore raw

PATCH v2 2/3 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/20160516/b0d1ab4e/attachment.sig>
#5 lore raw

PATCH v2 2/3 ARM: DRA7: Enable FIT

In reply to Lokesh Vutla
Quoted 5 lines · Lokesh Vutla

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

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/20160530/8a68e8c1/attachment.sig>
#6 lore raw

PATCH v2 3/3 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.

---
Changes since v1:
- None

 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.8.2
#7 lore raw

PATCH v2 3/3 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 7 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.

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/20160530/e29a2597/attachment.sig>