Skip to contentSkip to conversation

Full amount of sdram

U-Boot Fabian Cenedese 1 participant 1 message May 30, 2011

lore
Share & tools
lore
#0 lore raw

Hi

I'm trying to get the full size of the sdram, not the available size as in gd->ram_size. We use a P2020 so I'm looking in the fsl_ code.

I tried it with fsl_ddr_sdram_size() which from the comment should just return the size and don't do anything else. However this is already called in the u-boot code while setting up the correct parameters. Calling it a second time results in a crash in populate_memctl_options.

- Should this work or do I need to skip these steps and call fsl_ddr_compute(&info, STEP_COMPUTE_REGS, 1); myself? Can I include these function?

- Is there another (vendor independent) way to get the full sdram size?

Thanks

bye Fabi