diff mbox series

[05/10] am335x, guardian: cmd: add memtest configs

Message ID 20210106153156.2782-6-Gireesh.Hiremath@in.bosch.com
State Changes Requested
Delegated to: Lokesh Vutla
Headers show
Series Add support am335, Guardian | expand

Commit Message

Gireesh Hiremath Jan. 6, 2021, 3:31 p.m. UTC
From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>

- Add mtest, meminfo commands
- Add default mem start address as 0x80000000
- Add defauly mem end address as 0x81000000
- Implies default test runs for first 16MiB of DRAM

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
 configs/am335x_guardian_defconfig | 2 ++
 include/configs/am335x_guardian.h | 4 ++++
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig
index 745a64bba7..dd0c477a86 100644
--- a/configs/am335x_guardian_defconfig
+++ b/configs/am335x_guardian_defconfig
@@ -43,6 +43,8 @@  CONFIG_CMD_SPL=y
 CONFIG_CMD_SPL_NAND_OFS=0x0
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
+CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h
index 5e9361d168..39e441952c 100644
--- a/include/configs/am335x_guardian.h
+++ b/include/configs/am335x_guardian.h
@@ -22,6 +22,10 @@ 
 #define V_OSCK				24000000  /* Clock output from T2 */
 #define V_SCLK				(V_OSCK)
 
+/* mem test config for first 16MiB */
+#define CONFIG_SYS_MEMTEST_START 0x80000000
+#define CONFIG_SYS_MEMTEST_END 0x81000000
+
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 
 #ifndef CONFIG_SPL_BUILD