Skip to contentSkip to conversation

ls1021atwr: added deep sleep support in uboot

PATCH New Yuantian.Tang at freescale.com 3 participants 3 messages May 14, 2015 – Aug 4, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ls1021atwr: added deep sleep support in uboot

From: Tang Yuantian <[email protected]>

---
 arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h |  4 ++
 board/freescale/ls1021atwr/ls1021atwr.c           | 68 ++++++++++++++++++++++-
 include/configs/ls1021atwr.h                      |  7 ++-
 3 files changed, 75 insertions(+), 4 deletions(-)
arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h +4 -0
index a8122c1..bbd5955 100644
@@ -370,6 +370,10 @@ struct ccsr_serdes {
 #define DDR_DDR_ZQ_CNTL			0x89080600
 #define DDR_CS0_CONFIG_2		0
 #define DDR_SDRAM_CFG_MEM_EN		0x80000000
+#define SDRAM_CFG2_D_INIT		0x00000010
+#define DDR_CDR2_VREF_TRAIN_EN	0x00000080
+#define SDRAM_CFG2_FRC_SR		0x80000000
+#define SDRAM_CFG_BI			0x00000001
 
 /* DDR memory controller registers */
 struct ccsr_ddr {
board/freescale/ls1021atwr/ls1021atwr.c +65 -3

122 lines not on this page · raw message

include/configs/ls1021atwr.h +6 -1
index 729205f..4b96feb 100644
@@ -18,6 +18,10 @@
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #define CONFIG_BOARD_EARLY_INIT_F
+#define CONFIG_DEEP_SLEEP
+#ifdef CONFIG_DEEP_SLEEP
+#define CONFIG_SILENT_CONSOLE
+#endif
 
 /*
  * Size of malloc() pool
@@ -60,7 +64,8 @@
 #define CONFIG_SPL_PAD_TO		0x1c000
 #define CONFIG_SYS_TEXT_BASE		0x82000000
 
-#define CONFIG_SYS_SPL_MALLOC_START	0x80200000
+#define CONFIG_SYS_SPL_MALLOC_START	(CONFIG_SYS_TEXT_BASE + \
+		CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_SYS_SPL_MALLOC_SIZE	0x100000
 #define CONFIG_SPL_BSS_START_ADDR	0x80100000
 #define CONFIG_SPL_BSS_MAX_SIZE		0x80000
Signature · 1 line
2.1.0.27.g96db324