developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2018 MediaTek Inc. |
| 4 | */ |
| 5 | |
Simon Glass | 1d91ba7 | 2019-11-14 12:57:37 -0700 | [diff] [blame] | 6 | #include <cpu_func.h> |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 7 | #include <dm.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 8 | #include <init.h> |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 9 | #include <wdt.h> |
| 10 | #include <dm/uclass-internal.h> |
| 11 | |
developer | f4a079c | 2018-11-15 10:07:52 +0800 | [diff] [blame] | 12 | int arch_cpu_init(void) |
| 13 | { |
| 14 | icache_enable(); |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | void enable_caches(void) |
| 20 | { |
| 21 | /* Enable D-cache. I-cache is already enabled in start.S */ |
| 22 | dcache_enable(); |
| 23 | } |