[PATCH v4 6/8] board: tqma7: add code for u-boot with spl

Fabio Estevam festevam at gmail.com
Sun Apr 19 22:05:08 CEST 2026


On Tue, Apr 7, 2026 at 10:07 AM Alexander Feilke
<Alexander.Feilke at ew.tq-group.com> wrote:

> +choice
> +       prompt "TQMa7x RAM configuration"
> +       default TQMA7_RAM_MULTI
> +       help
> +         Select RAM configuration. Normally use default here but for
> +         specific setup it is possible to use a single RAM size.
> +
> +config TQMA7_RAM_MULTI
> +       bool "TQMa7x with 512/1024/2048 MB RAM - Single image"
> +       select TQMA7_RAM_2G
> +       select TQMA7_RAM_1G
> +       select TQMA7_RAM_512M

Could you detect the RAM size at run time instead?

Take a look at this method, for reference:

https://github.com/u-boot/u-boot/blob/master/board/kontron/sl-mx6ul/spl.c#L271-L295

Then you could get rid of all these TQMA7_RAM_ symbols.


More information about the U-Boot mailing list