diff mbox series

[U-Boot,v3,13/18] arm: K3: am654: Map common EEPROM data into SRAM scratch space

Message ID 20190604230828.12539-14-dannenberg@ti.com
State Accepted
Commit 96905a39d3a07e00c209e373b51c32c536ecdd38
Delegated to: Tom Rini
Headers show
Series Add EEPROM-based board detect support for TI K3 SoCs | expand

Commit Message

Andreas Dannenberg June 4, 2019, 11:08 p.m. UTC
The board detection scheme employed on various TI EVMs makes use of
SRAM scratch space to share data read from an on-board EEPROM between
the different bootloading stages. Map the associated definition that's
used to locate this data into the SRAM scratch space we use on AM654x.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 arch/arm/mach-k3/include/mach/am6_hardware.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini July 19, 2019, 12:02 a.m. UTC | #1
On Tue, Jun 04, 2019 at 06:08:23PM -0500, Andreas Dannenberg wrote:

> The board detection scheme employed on various TI EVMs makes use of
> SRAM scratch space to share data read from an on-board EEPROM between
> the different bootloading stages. Map the associated definition that's
> used to locate this data into the SRAM scratch space we use on AM654x.
> 
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/mach-k3/include/mach/am6_hardware.h b/arch/arm/mach-k3/include/mach/am6_hardware.h
index 3343233aa3..6df7631545 100644
--- a/arch/arm/mach-k3/include/mach/am6_hardware.h
+++ b/arch/arm/mach-k3/include/mach/am6_hardware.h
@@ -44,4 +44,7 @@ 
 #define CTRLMMR_LOCK_KICK1				0x0100c
 #define CTRLMMR_LOCK_KICK1_UNLOCK_VAL			0xd172bc5a
 
+/* MCU SCRATCHPAD usage */
+#define TI_SRAM_SCRATCH_BOARD_EEPROM_START CONFIG_SYS_K3_MCU_SCRATCHPAD_BASE
+
 #endif /* __ASM_ARCH_AM6_HARDWARE_H */