blob: 90925e46ea2195b3b6312f8f22efcb69ec56e99d [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>
10
Heinrich Schuchardt09280362018-10-13 20:52:07 -070011/*
12 * Global declaration of gd.
13 *
14 * As we write to it before relocation we have to make sure it is not put into
15 * a .bss section which may overlap a .rela section. Initialization forces it
16 * into a .data section which cannot overlap any .rela section.
17 */
18struct global_data *global_data_ptr = (struct global_data *)~0;
Simon Glass590aef72017-01-16 07:03:59 -070019
20void arch_setup_gd(gd_t *new_gd)
21{
22 global_data_ptr = new_gd;
Simon Glass590aef72017-01-16 07:03:59 -070023}
Simon Glassefedba72017-01-16 07:03:58 -070024
25int cpu_has_64bit(void)
26{
27 return true;
28}
29
30void enable_caches(void)
31{
32 /* Not implemented */
33}
34
35void disable_caches(void)
36{
37 /* Not implemented */
38}
39
40int dcache_status(void)
41{
42 return true;
43}
44
45int x86_mp_init(void)
46{
47 /* Not implemented */
48 return 0;
49}
Simon Glass78a20d22017-01-16 07:04:08 -070050
51int misc_init_r(void)
52{
53 return 0;
54}
55
Simon Glassee7c36f2017-03-28 10:27:30 -060056int checkcpu(void)
57{
58 return 0;
59}
60
Simon Glass78a20d22017-01-16 07:04:08 -070061int print_cpuinfo(void)
62{
63 return 0;
64}
Simon Glass05e12f72019-04-25 21:58:42 -060065
66int x86_cpu_reinit_f(void)
67{
68 return 0;
69}