summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5066a47)
raw | patch | inline | side by side (parent: 5066a47)
author | Faiz Abbas <faiz_abbas@ti.com> | |
Fri, 21 Aug 2020 09:06:34 +0000 (14:36 +0530) | ||
committer | Faiz Abbas <faiz_abbas@ti.com> | |
Fri, 21 Aug 2020 09:07:21 +0000 (14:37 +0530) |
Add support for eMMC boot in j7es.
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
k3-bootswitch/boot_select/j721e-evm/0001-HACK-Select-bootmode-and-reset.patch | patch | blob | history | |
k3-bootswitch/boot_select/j721e-evm/spl.emmc | [new file with mode: 0644] | patch | blob |
diff --git a/k3-bootswitch/boot_select/j721e-evm/0001-HACK-Select-bootmode-and-reset.patch b/k3-bootswitch/boot_select/j721e-evm/0001-HACK-Select-bootmode-and-reset.patch
index 6249382981d7fcaf9142906fa4841a2499e02228..b51ffd9ead4b28f936019588b3e7e4a691ec66fa 100644 (file)
-From 1460609e82f980b58163bcb04968ba414fa47e57 Mon Sep 17 00:00:00 2001
+From 68d5f3892b26b02d2df03b3f2acb939d70532eb8 Mon Sep 17 00:00:00 2001
From: Nikhil Devshatwar <nikhil.nd@ti.com>
Date: Tue, 7 Apr 2020 18:33:36 +0530
Subject: [PATCH] HACK: Select bootmode and reset
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
---
From: Nikhil Devshatwar <nikhil.nd@ti.com>
Date: Tue, 7 Apr 2020 18:33:36 +0530
Subject: [PATCH] HACK: Select bootmode and reset
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
---
- arch/arm/mach-k3/j721e_init.c | 28 ++++++++++++++++++++++++++++
- 1 file changed, 28 insertions(+)
+ arch/arm/mach-k3/j721e_init.c | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c
diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c
-index b4ceb3b57f..d3865ad535 100644
+index 1e90c02ee5..8d910ebd6c 100644
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
-@@ -268,6 +268,34 @@ void board_init_f(ulong dummy)
+@@ -261,6 +261,36 @@ void board_init_f(ulong dummy)
/* Make all control module registers accessible */
ctrl_mmr_unlock();
/* Make all control module registers accessible */
ctrl_mmr_unlock();
+ *((volatile uint8_t *)0x00100030) = 0x41;
+ *((volatile uint8_t *)0x43000030) = 0x00;
+#elif BOOTMODE == EMMC
+ *((volatile uint8_t *)0x00100030) = 0x41;
+ *((volatile uint8_t *)0x43000030) = 0x00;
+#elif BOOTMODE == EMMC
++ *((volatile uint8_t *)0x00100030) = 0x01;
++ *((volatile uint8_t *)0x43000030) = 0x08;
+#elif BOOTMODE == OSPI
+ /* Set the boot mode to OSPI */
+ *((volatile uint8_t *)0x00100030) = 0x00;
+#elif BOOTMODE == OSPI
+ /* Set the boot mode to OSPI */
+ *((volatile uint8_t *)0x00100030) = 0x00;
diff --git a/k3-bootswitch/boot_select/j721e-evm/spl.emmc b/k3-bootswitch/boot_select/j721e-evm/spl.emmc
new file mode 100644 (file)
index 0000000..9473dc4
Binary files /dev/null and b/k3-bootswitch/boot_select/j721e-evm/spl.emmc differ
index 0000000..9473dc4
Binary files /dev/null and b/k3-bootswitch/boot_select/j721e-evm/spl.emmc differ