[PATCH] armv8: mach-k3: correct define checking for AM625/AM642 memory maps

Tom Rini trini at konsulko.com
Mon Jul 25 23:22:18 CEST 2022


On Wed, Jul 13, 2022 at 04:49:36AM -0700, Matt Ranostay wrote:

> Using CONFIG_IS_ENABLED breaks accessing memory map structure when
> doing a A53 SPL build for AM625 and AM642 platforms. This is due to
> 'abc if CONFIG_SPL_BUILD is defined and CONFIG_SPL_FOO is set to 'y''
> in which there is no CONFIG_SPL_SOC_K3_AM625/CONFIG_SPL_SOC_K3_AM642
> defined in the configuration.
> 
> For the A53 SPL builds on these platform to access the memory mapping
> which it will need for enabling the mmu/cache it must use #if defined(X)
> checks and not CONFIG_IS_ENABLED.
> 
> Cc: Suman Anna <s-anna at ti.com>
> Cc: Neha Francis <n-francis at ti.com>
> Signed-off-by: Matt Ranostay <mranostay at ti.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220725/ece03cac/attachment.sig>


More information about the U-Boot mailing list