Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 2 | /* |
3 | * (C) Copyright 2016 Google, Inc | ||||
4 | * Written by Simon Glass <sjg@chromium.org> | ||||
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 5 | */ |
6 | |||||
7 | #include <common.h> | ||||
Simon Glass | 1fa70f8 | 2019-11-14 12:57:34 -0700 | [diff] [blame] | 8 | #include <cpu_func.h> |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 9 | #include <debug_uart.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 10 | #include <init.h> |
Simon Glass | 86ed9c5 | 2021-11-03 21:09:08 -0600 | [diff] [blame] | 11 | #include <asm/global_data.h> |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 12 | |
13 | int cpu_has_64bit(void) | ||||
14 | { | ||||
15 | return true; | ||||
16 | } | ||||
17 | |||||
18 | void enable_caches(void) | ||||
19 | { | ||||
20 | /* Not implemented */ | ||||
21 | } | ||||
22 | |||||
23 | void disable_caches(void) | ||||
24 | { | ||||
25 | /* Not implemented */ | ||||
26 | } | ||||
27 | |||||
28 | int dcache_status(void) | ||||
29 | { | ||||
30 | return true; | ||||
31 | } | ||||
32 | |||||
33 | int x86_mp_init(void) | ||||
34 | { | ||||
35 | /* Not implemented */ | ||||
36 | return 0; | ||||
37 | } | ||||
Simon Glass | 78a20d2 | 2017-01-16 07:04:08 -0700 | [diff] [blame] | 38 | |
Simon Glass | 05e12f7 | 2019-04-25 21:58:42 -0600 | [diff] [blame] | 39 | int x86_cpu_reinit_f(void) |
40 | { | ||||
41 | return 0; | ||||
42 | } | ||||
Simon Glass | 2d8b3c6 | 2020-09-22 12:45:26 -0600 | [diff] [blame] | 43 | |
44 | int cpu_phys_address_size(void) | ||||
45 | { | ||||
46 | return CONFIG_CPU_ADDR_BITS; | ||||
47 | } | ||||
Simon Glass | f3d73ea | 2022-01-04 03:51:13 -0700 | [diff] [blame^] | 48 | |
49 | int x86_cpu_init_f(void) | ||||
50 | { | ||||
51 | return 0; | ||||
52 | } |