// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ * Andrew Davis */ #include #include #include #include #include #include #include register_phys_mem_pgdir(MEM_AREA_IO_SEC, PL310_BASE, PL310_SIZE); vaddr_t pl310_base(void) { static void *va; if (cpu_mmu_enabled()) { if (!va) va = phys_to_virt(PL310_BASE, MEM_AREA_IO_SEC, PL310_SIZE); return (vaddr_t)va; } return PL310_BASE; } /* ROM handles initial setup for us */ void arm_cl2_config(vaddr_t pl310_base) { (void)pl310_base; } /* We provide platform services that expect the cache to be disabled on boot */ void arm_cl2_enable(vaddr_t pl310_base) { (void)pl310_base; }