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

Gireesh.Hiremath at in.bosch.com Gireesh.Hiremath at in.bosch.com
Wed Jan 6 16:31:51 CET 2021


From: Gireesh Hiremath <Gireesh.Hiremath at 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 at in.bosch.com>
---
 configs/am335x_guardian_defconfig | 2 ++
 include/configs/am335x_guardian.h | 4 ++++
 2 files changed, 6 insertions(+)

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
-- 
2.20.1



More information about the U-Boot mailing list