[U-Boot] [PATCH] arm: omap5: am57/dra7: Fix SRAM_SCRATCH_SPACE_ADDR and SRAM_ROM_VECT_BASE
Andrew Bradford
andrew at bradfordembedded.com
Fri Aug 5 18:14:23 CEST 2016
From: Andrew Bradford <andrew.bradford at kodakalaris.com>
Both am57xx and dra7xx have 512 kiB of SRAM and the mapping within that
SRAM is the same as omap5 (which has only 128 kiB) except for a much
larger "Download image" area. So, fix am57xx and dra7xx location for
SRAM_SCRATCH_SPACE_ADDR to mimmic omap5's locating of this area to a
memory region defined by the TRM as "Reserved" immediately following the
"Download image" region and fix the ROM code interrupt vector address
SRAM_ROM_VECT_BASE to properly match the TRM.
Signed-off-by: Andrew Bradford <andrew.bradford at kodakalaris.com>
---
arch/arm/include/asm/arch-omap5/omap.h | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/arm/include/asm/arch-omap5/omap.h b/arch/arm/include/asm/arch-omap5/omap.h
index 2fd5cda..b9e4783 100644
--- a/arch/arm/include/asm/arch-omap5/omap.h
+++ b/arch/arm/include/asm/arch-omap5/omap.h
@@ -179,21 +179,19 @@ struct s32ktimer {
* and indicates the area for the downloaded image. We use all of that
* space for download and once up and running may use other parts of the
* map for our needs. We set a scratch space that is at the end of the
- * OMAP5 download area, but within the DRA7xx download area (as it is
- * much larger) and do not, at this time, make use of the additional
- * space.
+ * download area in an area marked reserved in the TRM.
*/
#if defined(CONFIG_DRA7XX) || defined(CONFIG_AM57XX)
#define NON_SECURE_SRAM_START 0x40300000
#define NON_SECURE_SRAM_END 0x40380000 /* Not inclusive */
+#define SRAM_SCRATCH_SPACE_ADDR 0x4037E000
+#define SRAM_ROM_VECT_BASE 0x4037F000
#else
#define NON_SECURE_SRAM_START 0x40300000
#define NON_SECURE_SRAM_END 0x40320000 /* Not inclusive */
-#endif
#define SRAM_SCRATCH_SPACE_ADDR 0x4031E000
-
-/* base address for indirect vectors (internal boot mode) */
#define SRAM_ROM_VECT_BASE 0x4031F000
+#endif
/* CONTROL_SRCOMP_XXX_SIDE */
#define OVERRIDE_XS_SHIFT 30
--
2.8.1
More information about the U-Boot
mailing list