| 1 |
|
| 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 |
|
| 14 |
void bootblock_soc_init(void) |
| 15 |
{ |
| 16 |
rkclk_init(); |
| 17 |
|
| 18 |
mmu_init(); |
| 19 |
|
| 20 |
mmu_config_range(0, 4096, DCACHE_OFF); |
| 21 |
|
| 22 |
|
| 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 |
} |