[PATCH 10/13] board: ti: am62px: evm: Enable cache for AM62p
Roger Quadros
rogerq at kernel.org
Tue Jan 7 15:23:30 CET 2025
On 07/01/2025 11:38, Chintan Vankar wrote:
> From: Andreas Dannenberg <dannenberg at ti.com>
>
> Enable cache to support Ethernet boot for AM62p-SK.
Please give more details in commit log.
What happens to Ethernet boot if you don't enable cache?
Is this a requirement by Ethernet hardware?
>
> Signed-off-by: Andreas Dannenberg <dannenberg at ti.com>
> Signed-off-by: Chintan Vankar <c-vankar at ti.com>
> ---
> board/ti/am62px/evm.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/board/ti/am62px/evm.c b/board/ti/am62px/evm.c
> index 7362fa4520a..2a85af980c7 100644
> --- a/board/ti/am62px/evm.c
> +++ b/board/ti/am62px/evm.c
> @@ -9,6 +9,7 @@
> #include <efi_loader.h>
> #include <asm/arch/hardware.h>
> #include <asm/io.h>
> +#include <cpu_func.h>
> #include <dm/uclass.h>
> #include <env.h>
> #include <fdt_support.h>
> @@ -53,6 +54,13 @@ int board_init(void)
> return 0;
> }
>
> +#if IS_ENABLED(CONFIG_SPL_BUILD)
> +void spl_board_init(void)
> +{
> + enable_caches();
> +}
> +#endif
> +
> int dram_init(void)
> {
> return fdtdec_setup_mem_size_base();
--
cheers,
-roger
More information about the U-Boot
mailing list