Move CFG_SYS_SDRAM_BASE/SIZE to Kconfig
Look at creating a tool which can read things from the devicetree and put its values into Kconfig options.
From discussion here:
https://patchwork.ozlabs.org/project/uboot/patch/20231117225313.2144665-4-trini@konsulko.com/
@trini said:
Possible? Sure. But I think it would end up being fairly horrible. What would be nice I think is some Zephyr-style "convert CONFIG_DEFAULT_DEVICE_TREE to some defines" because we could parse out /memory to CFG_SYS_SDRAM_BASE/SIZE and that's something we need at build time.
@simon.glass replied:
That would be pretty easy to do. But I would prefer to have it create CONFIG_SYS_SDRAM_BASE/SIZE so that it fits in with Kconfig, just that the value is set for you.
Edited by Tom Rini