All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ti_omap5_common: Find right dtb file for DRA72-RevC Evm
@ 2016-06-29  9:20 Lokesh Vutla
  2016-07-02  1:38 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Lokesh Vutla @ 2016-06-29  9:20 UTC (permalink / raw)
  To: u-boot

DRA72-Evm revC uses dra72-evm-revc.dtb. Update the same in env vatiables.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 board/ti/dra7xx/evm.c             | 10 +++++++---
 include/configs/ti_omap5_common.h |  2 ++
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 0394e4e..6a4d027 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -413,10 +413,14 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 	char *name = "unknown";
 
-	if (is_dra72x())
-		name = "dra72x";
-	else
+	if (is_dra72x()) {
+		if (board_is_dra72x_revc_or_later())
+			name = "dra72x-revc";
+		else
+			name = "dra72x";
+	} else {
 		name = "dra7xx";
+	}
 
 	set_board_info_env(name);
 
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h
index 2e4c8e9..3589cdc 100644
--- a/include/configs/ti_omap5_common.h
+++ b/include/configs/ti_omap5_common.h
@@ -100,6 +100,8 @@
 			"setenv fdtfile omap5-uevm.dtb; fi; " \
 		"if test $board_name = dra7xx; then " \
 			"setenv fdtfile dra7-evm.dtb; fi;" \
+		"if test $board_name = dra72x-revc; then " \
+			"setenv fdtfile dra72-evm-revc.dtb; fi;" \
 		"if test $board_name = dra72x; then " \
 			"setenv fdtfile dra72-evm.dtb; fi;" \
 		"if test $board_name = beagle_x15; then " \
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] ti_omap5_common: Find right dtb file for DRA72-RevC Evm
  2016-06-29  9:20 [U-Boot] [PATCH] ti_omap5_common: Find right dtb file for DRA72-RevC Evm Lokesh Vutla
@ 2016-07-02  1:38 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2016-07-02  1:38 UTC (permalink / raw)
  To: u-boot

On Wed, Jun 29, 2016 at 02:50:41PM +0530, Lokesh Vutla wrote:

> DRA72-Evm revC uses dra72-evm-revc.dtb. Update the same in env vatiables.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!

-- 
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/20160701/5a0698c7/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-02  1:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-29  9:20 [U-Boot] [PATCH] ti_omap5_common: Find right dtb file for DRA72-RevC Evm Lokesh Vutla
2016-07-02  1:38 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.