]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx23evk: Adjust DRAM control register to use full 128MB of RAM
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 23 Feb 2013 02:43:06 +0000 (02:43 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Mar 2013 16:22:57 +0000 (17:22 +0100)
Adjust HW_DRAM_CTL14 to enable the chip selects to allow usage of full
128MB of RAM.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
board/freescale/mx23evk/spl_boot.c

index 600743360587b88f3a40aa25dcb5af1ededdd568..b6f4e7eff2e47221328d2982a5a5d0d4c6b5597d 100644 (file)
@@ -98,6 +98,16 @@ const iomux_cfg_t iomux_setup[] = {
                (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL),
 };
 
+#define HW_DRAM_CTL14  (0x38 >> 2)
+#define CS_MAP         0x3
+#define INTAREF                0x2
+#define HW_DRAM_CTL14_CONFIG   (INTAREF << 8 | CS_MAP)
+
+void mxs_adjust_memory_params(uint32_t *dram_vals)
+{
+       dram_vals[HW_DRAM_CTL14] = HW_DRAM_CTL14_CONFIG;
+}
+
 void board_init_ll(void)
 {
        mxs_common_spl_init(iomux_setup, ARRAY_SIZE(iomux_setup));