| 1 |
|
| 2 |
|
| 3 |
#include <arch/cache.h> |
| 4 |
#include <bootblock_common.h> |
| 5 |
#include <soc/clk.h> |
| 6 |
#include <soc/wakeup.h> |
| 7 |
#include <soc/cpu.h> |
| 8 |
|
| 9 |
|
| 10 |
#define SRAM_START (EXYNOS5_SRAM_BASE >> 20) |
| 11 |
#define SRAM_SIZE 1 |
| 12 |
#define SRAM_END (SRAM_START + SRAM_SIZE) |
| 13 |
|
| 14 |
void bootblock_soc_init(void) |
| 15 |
{ |
| 16 |
if (get_wakeup_state() == WAKEUP_DIRECT) { |
| 17 |
wakeup(); |
| 18 |
|
| 19 |
} |
| 20 |
|
| 21 |
|
| 22 |
mmu_init(); |
| 23 |
mmu_disable_range(0, SRAM_START); |
| 24 |
mmu_config_range(SRAM_START, SRAM_SIZE, DCACHE_WRITEBACK); |
| 25 |
mmu_config_range(SRAM_END, 4096 - SRAM_END, DCACHE_OFF); |
| 26 |
dcache_mmu_enable(); |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
} |