[U-Boot,4/4] arm: dra76: fastboot: extend cpu type for getvar command

Message ID 1507866425-10827-4-git-send-email-praneeth@ti.com
State Accepted
Delegated to: Tom Rini
Headers show
Series
  • [U-Boot,1/4] arm: am57xx: Add vendor partition to Android GPT table for eMMC
Related show

Commit Message

Praneeth Bajjuri Oct. 13, 2017, 3:47 a.m.
'commit fa24eca1f20a ("omap: Add routine for setting fastboot variables")'
adds initial support and usage of "fastboot getvar" command
for DRA75x and DRA72x devices.

and
'commit 0f9e6aee9dbc ("arm: dra76: Add support for ES1.0 detection")'
adds initial dra76 device definition

This patch is to extend usage of "fastboot getvar" for DRA76 device.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
---
 arch/arm/mach-omap2/utils.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Oct. 14, 2017, 2:34 a.m. | #1
On Thu, Oct 12, 2017 at 10:47:05PM -0500, Praneeth Bajjuri wrote:

> 'commit fa24eca1f20a ("omap: Add routine for setting fastboot variables")'
> adds initial support and usage of "fastboot getvar" command
> for DRA75x and DRA72x devices.
> 
> and
> 'commit 0f9e6aee9dbc ("arm: dra76: Add support for ES1.0 detection")'
> adds initial dra76 device definition
> 
> This patch is to extend usage of "fastboot getvar" for DRA76 device.
> 
> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini Oct. 17, 2017, 12:48 a.m. | #2
On Thu, Oct 12, 2017 at 10:47:05PM -0500, Praneeth Bajjuri wrote:

> 'commit fa24eca1f20a ("omap: Add routine for setting fastboot variables")'
> adds initial support and usage of "fastboot getvar" command
> for DRA75x and DRA72x devices.
> 
> and
> 'commit 0f9e6aee9dbc ("arm: dra76: Add support for ES1.0 detection")'
> adds initial dra76 device definition
> 
> This patch is to extend usage of "fastboot getvar" for DRA76 device.
> 
> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

Patch

diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c
index 2bd8290..2e87780 100644
--- a/arch/arm/mach-omap2/utils.c
+++ b/arch/arm/mach-omap2/utils.c
@@ -26,6 +26,9 @@  static void omap_set_fastboot_cpu(void)
 	u32 cpu_rev = omap_revision();
 
 	switch (cpu_rev) {
+	case DRA762_ES1_0:
+		cpu = "DRA762";
+		break;
 	case DRA752_ES1_0:
 	case DRA752_ES1_1:
 	case DRA752_ES2_0: