Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / x86 / cpu / x86_64 / cpu.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2016 Google, Inc
4  * Written by Simon Glass <sjg@chromium.org>
5  */
6
7 #include <common.h>
8 #include <cpu_func.h>
9 #include <debug_uart.h>
10 #include <init.h>
11
12 /*
13  * Global declaration of gd.
14  *
15  * As we write to it before relocation we have to make sure it is not put into
16  * a .bss section which may overlap a .rela section. Initialization forces it
17  * into a .data section which cannot overlap any .rela section.
18  */
19 struct global_data *global_data_ptr = (struct global_data *)~0;
20
21 void arch_setup_gd(gd_t *new_gd)
22 {
23         global_data_ptr = new_gd;
24 }
25
26 int cpu_has_64bit(void)
27 {
28         return true;
29 }
30
31 void enable_caches(void)
32 {
33         /* Not implemented */
34 }
35
36 void disable_caches(void)
37 {
38         /* Not implemented */
39 }
40
41 int dcache_status(void)
42 {
43         return true;
44 }
45
46 int x86_mp_init(void)
47 {
48         /* Not implemented */
49         return 0;
50 }
51
52 int misc_init_r(void)
53 {
54         return 0;
55 }
56
57 #ifndef CONFIG_SYS_COREBOOT
58 int checkcpu(void)
59 {
60         return 0;
61 }
62
63 int print_cpuinfo(void)
64 {
65         return 0;
66 }
67 #endif
68
69 int x86_cpu_reinit_f(void)
70 {
71         return 0;
72 }