[PATCH 10/13] board: ti: am62px: evm: Enable cache for AM62p
Chintan Vankar
c-vankar at ti.com
Wed Jan 22 10:22:45 CET 2025
On 07/01/25 19:53, Roger Quadros wrote:
>
>
> 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?
>
>
Ethernet boot is working fine even without enabling cache, enabling
cache will optimize the performance of CPU to access data from memory.
Since this is not a requirement from Ethernet hardware, I will modify
the commit message accordingly.
>>
>> 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();
>
More information about the U-Boot
mailing list