arm64: imx: imx8mp-beacon: Add support for 4GB Variant
PATCH 1/1 arm64: imx: imx8mp-beacon: Add support for 4GB Variant
A new variant of the i.MX8MP System-on-module from Beacon is available which contains 4GB of RAM vs 6GB. The memory timings are slightly different, so a different config is necessary to build the different timing file.
board/beacon/imx8mp/Kconfig +6 -1
@@ -9,8 +9,13 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "imx8mp_beacon" +config IMX8MP_BEACON_4GB_LPDDR + bool "Enable 4GB LPDDR" + help + Enable this if the SOM has 4GB of RAM instead of + the default 6GB variant. + config IMX_CONFIG default "board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg" - endif
board/beacon/imx8mp/MAINTAINERS +1 -0
@@ -4,3 +4,4 @@ S: Maintained F: board/beacon/imx8mp/ F: include/configs/imx8mp_beacon.h F: configs/imx8mp_beacon_defconfig +F: configs/imx8mp_beacon_4g_defconfig
board/beacon/imx8mp/Makefile +6 -1
@@ -9,5 +9,10 @@ obj-y += ../../freescale/common/ ifdef CONFIG_SPL_BUILD obj-y += spl.o -obj-$(CONFIG_IMX8M_LPDDR4) += lpddr4_timing.o + +ifdef CONFIG_IMX8MP_BEACON_4GB_LPDDR +obj-y += lpddr4_4g_timing.o +else +obj-y += lpddr4_timing.o +endif endif
board/beacon/imx8mp/lpddr4_4g_timing.c new file +1842 -0
1,842 lines not on this page · raw message
configs/imx8mp_beacon_4g_defconfig new file +183 -0
183 lines not on this page · raw message
include/configs/imx8mp_beacon.h +4 -2
@@ -19,11 +19,13 @@#define CFG_SYS_INIT_RAM_ADDR 0x40000000#define CFG_SYS_INIT_RAM_SIZE 0x80000 -/* Totally 6GB DDR */ #define CFG_SYS_SDRAM_BASE 0x40000000#define PHYS_SDRAM 0x40000000#define PHYS_SDRAM_SIZE 0xC0000000/* 3 GB */ #define PHYS_SDRAM_2 0x100000000 +#if defined(CONFIG_IMX8MP_BEACON_4GB_LPDDR ) +#define PHYS_SDRAM_2_SIZE 0x40000000/* 1 GB */ +#else /* Totalling 6GB DDR */ #define PHYS_SDRAM_2_SIZE 0xC0000000/* 3 GB */ - +#endif /* IMX8MP_BEACON_4GB_LPDDR */ #endif
Signature · 1 line
2.40.1
Quoted 7 lines · Adam Ford
A new variant of the i.MX8MP System-on-module from Beacon is available which contains 4GB of RAM vs 6GB. The memory timings are slightly different, so a different config is necessary to build the different timing file.
Signed-off-by Adam Ford <[email protected]>
Quoted 6 lines · Adam Ford
A new variant of the i.MX8MP System-on-module from Beacon is available which contains 4GB of RAM vs 6GB. The memory timings are slightly different, so a different config is necessary to build the different timing file.
Signed-off-by Adam Ford <[email protected]>
Might this be a case for using config fragments instead? See doc/develop/board_best_practices.rst
Signature · 1 line
Tom
Quoted 11 lines · Tom Rini
Quoted 6 lines · Adam Ford
A new variant of the i.MX8MP System-on-module from Beacon is available which contains 4GB of RAM vs 6GB. The memory timings are slightly different, so a different config is necessary to build the different timing file.
Signed-off-by Adam Ford <[email protected]>Might this be a case for using config fragments instead?
I didn't realize U-Boot was supporting that. I'll submit a V2 with the defconfig option removed. Is there an example you can direct me to that does this already?
thanks!
adam
Quoted 4 lines
See
doc/develop/board_best_practices.rst--
Tom
Quoted 9 lines · Adam Ford
Quoted 8 lines · Tom Rini
Quoted 5 lines · Adam Ford
A new variant of the i.MX8MP System-on-module from Beacon is available which contains 4GB of RAM vs 6GB. The memory timings are slightly different, so a different config is necessary to build the different timing file.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Adam Ford <[email protected]>Might this be a case for using config fragments instead?
I didn't realize U-Boot was supporting that. I'll submit a V2 with the defconfig option removed. Is there an example you can direct me to that does this already?
The beagleplay boards are currently handled via config fragments as well as a few asus platforms (grouper, transformer-t30). I just now noticed the latter places the fragments in a configs subdirectory which is nice I think when there's going to be a number of fragments, but not required.
Quoted 8 lines
thanks!
adam
Quoted 4 lines
See
doc/develop/board_best_practices.rst--
Tom
Signature · 1 line
Tom