We are planning to have a common u-boot for 2 different hardware with different DDR size. One hardware with 2 GB DDR and other with 512 MB DDR. We are using iMX6 Dual core custom boards.
Is it possible to have a common u-boot with some default DDR configuration so that it will work for 2 boards ?
After booting with default DDR configuration, reconfigure DDR based on the actual DDR size from u-boot .
The DDR sizes of two boards are as follows
1) 64x16 MB ( 4 DDR ) - 512 MB.
2) 512x16 MB (4 DDR) - 2 GB.
The plan was to boot with mnimum DDR size ( 512) and after boot up read hardware BOM to identify the actual DDR size need to be configured . If the size is not matching reconfigure DDR from u-boot itself.
Is it really possible ??