1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #include <arch/cache.h> 4 #include <bootblock_common.h> 5 #include <soc/addressmap.h> 6 #include <soc/clock.h> 7 #include <soc/grf.h> 8 #include <soc/timer.h> 9 #include <symbols.h> 10 11 _Static_assert(!CONFIG(CBFS_VERIFICATION), 12 "RK3288 doesn't have enough PRERAM_CBFS_CACHE to support the FMAP mapping needed for CBFS verification"); 13 bootblock_soc_init(void)14void bootblock_soc_init(void) 15 { 16 rkclk_init(); 17 18 mmu_init(); 19 /* Start with a clean slate. */ 20 mmu_config_range(0, 4096, DCACHE_OFF); 21 /* SRAM is tightly wedged between registers, need to use subtables. Map 22 * write-through as equivalent for non-cacheable without XN on A17. */ 23 mmu_config_range_kb((uintptr_t)_sram/KiB, 24 REGION_SIZE(sram)/KiB, DCACHE_WRITETHROUGH); 25 dcache_mmu_enable(); 26 27 rkclk_configure_crypto(148500*KHz); 28 } 29