blob: 90a766c3c5733a7e42ff9e5f4b4155d095ab7d88 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glassefedba72017-01-16 07:03:58 -07002/*
3 * (C) Copyright 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
Simon Glassefedba72017-01-16 07:03:58 -07005 */
6
7#include <common.h>
Simon Glass1fa70f82019-11-14 12:57:34 -07008#include <cpu_func.h>
Simon Glass590aef72017-01-16 07:03:59 -07009#include <debug_uart.h>
Simon Glass97589732020-05-10 11:40:02 -060010#include <init.h>
Simon Glass590aef72017-01-16 07:03:59 -070011
Heinrich Schuchardt09280362018-10-13 20:52:07 -070012/*
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 */
19struct global_data *global_data_ptr = (struct global_data *)~0;
Simon Glass590aef72017-01-16 07:03:59 -070020
21void arch_setup_gd(gd_t *new_gd)
22{
23 global_data_ptr = new_gd;
Simon Glass590aef72017-01-16 07:03:59 -070024}
Simon Glassefedba72017-01-16 07:03:58 -070025
26int cpu_has_64bit(void)
27{
28 return true;
29}
30
31void enable_caches(void)
32{
33 /* Not implemented */
34}
35
36void disable_caches(void)
37{
38 /* Not implemented */
39}
40
41int dcache_status(void)
42{
43 return true;
44}
45
46int x86_mp_init(void)
47{
48 /* Not implemented */
49 return 0;
50}
Simon Glass78a20d22017-01-16 07:04:08 -070051
52int misc_init_r(void)
53{
54 return 0;
55}
56
Simon Glassbb883272020-04-30 21:21:43 -060057#ifndef CONFIG_SYS_COREBOOT
Simon Glassee7c36f2017-03-28 10:27:30 -060058int checkcpu(void)
59{
60 return 0;
61}
62
Simon Glass78a20d22017-01-16 07:04:08 -070063int print_cpuinfo(void)
64{
65 return 0;
66}
Simon Glassbb883272020-04-30 21:21:43 -060067#endif
Simon Glass05e12f72019-04-25 21:58:42 -060068
69int x86_cpu_reinit_f(void)
70{
71 return 0;
72}
Simon Glass2d8b3c62020-09-22 12:45:26 -060073
74int cpu_phys_address_size(void)
75{
76 return CONFIG_CPU_ADDR_BITS;
77}