AnsweredAssumed Answered

Enabling 4 Gb in uboot build for i.MX6Q

Question asked by frankmiller on Mar 12, 2013
Latest reply on Jan 9, 2014 by frankmiller

I'm trying to enable 4 Gb of DRAM in uboot.

 

I've made the following changes in ltib/rpm/BUILD/u-boot-2009.08/include/configs/mx6q_sabresd.h

 

/*-----------------------------------------------------------------------

* Physical Memory Map

*/

//#define CONFIG_NR_DRAM_BANKS  1

#define CONFIG_NR_DRAM_BANKS    4

#define PHYS_SDRAM_1            CSD0_DDR_BASE_ADDR

#define PHYS_SDRAM_1_SIZE       (1u * 1024 * 1024 * 1024)

#define PHYS_SDRAM_2            CSD0_DDR_BASE_ADDR

#define PHYS_SDRAM_2_SIZE       (1u * 1024 * 1024 * 1024)

#define PHYS_SDRAM_3            CSD0_DDR_BASE_ADDR

#define PHYS_SDRAM_3_SIZE       (1u * 1024 * 1024 * 1024)

#define PHYS_SDRAM_4            CSD0_DDR_BASE_ADDR

#define PHYS_SDRAM_4_SIZE       (1u * 1024 * 1024 * 1024)

//#define iomem_valid_addr(addr, size) \

//      (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))

#define iomem_valid_addr(addr, size) \

        (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_4 + PHYS_SDRAM_4_SIZE))

 

Do these look right?  What should I be using for as a replacement for CSD0_DDR_BASE_ADDR for banks 2-4?

 

If I make these changes will they be propagated to the kernel or do I need to make changes there too?

 

Thanks,

FM

 


Outcomes