All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lokesh Vutla <lokeshvutla@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] ARM: AM57xx: Make FIT boot as default boot on HS devices
Date: Tue, 29 Nov 2016 11:58:02 +0530	[thread overview]
Message-ID: <20161129062804.8398-5-lokeshvutla@ti.com> (raw)
In-Reply-To: <20161129062804.8398-1-lokeshvutla@ti.com>

Verification has to be done before booting any images on HS devices. So
default the boot to FIT on HS devices.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 board/ti/am57xx/board.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 226752e..c63c693 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -463,6 +463,14 @@ int board_late_init(void)
 	 * This is the POWERHOLD-in-Low behavior.
 	 */
 	palmas_i2c_write_u8(TPS65903X_CHIP_P1, 0xA0, 0x1);
+
+	/*
+	 * Default FIT boot on HS devices. Non FIT images are not allowed
+	 * on HS devices.
+	 */
+	if (get_device_type() == HS_DEVICE)
+		setenv("boot_fit", "1");
+
 	return 0;
 }
 
-- 
2.10.1

  parent reply	other threads:[~2016-11-29  6:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29  6:27 [U-Boot] [PATCH 0/5] ti_armv7_common: env: Add support for loading FIT images Lokesh Vutla
2016-11-29  6:27 ` [U-Boot] [PATCH 1/5] ti_armv7_common: env: Consolidate support for loading images from mmc Lokesh Vutla
2016-11-29 18:03   ` Tom Rini
2016-12-04  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29  6:28 ` [U-Boot] [PATCH 2/5] ti_armv7_common: env: Add support for loading FIT images Lokesh Vutla
2016-11-29 18:03   ` Tom Rini
2016-12-04  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29  6:28 ` [U-Boot] [PATCH 3/5] ARM: DRA7: Make FIT boot as default boot on HS devices Lokesh Vutla
2016-11-29 18:04   ` Tom Rini
2016-12-04  0:46   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29  6:28 ` Lokesh Vutla [this message]
2016-11-29 18:04   ` [U-Boot] [PATCH 4/5] ARM: AM57xx: " Tom Rini
2016-12-04  0:47   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29  6:28 ` [U-Boot] [PATCH 5/5] ARM: AMx3xx: " Lokesh Vutla
2016-11-29 18:04   ` Tom Rini
2016-12-04  0:48   ` [U-Boot] [U-Boot, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161129062804.8398-5-lokeshvutla@ti.com \
    --to=lokeshvutla@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.