blob: 18b3e94e12b75fb432e0d825c8a7763c6d1017b6 [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 Glass590aef72017-01-16 07:03:59 -07008#include <debug_uart.h>
9
Simon Glass590aef72017-01-16 07:03:59 -070010/* Global declaration of gd */
11struct global_data *global_data_ptr;
12
13void arch_setup_gd(gd_t *new_gd)
14{
15 global_data_ptr = new_gd;
16
17 /*
18 * TODO(sjg@chromium.org): For some reason U-Boot does not boot
19 * without this line. It fails to start up U-Boot proper and instead
20 * restarts SPL. Need to figure out why:
21 *
22 * U-Boot SPL 2017.01
23 *
24 * U-Boot SPL 2017.01
25 * CPU: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz
26 * Trying to boot from SPIJumping to 64-bit U-Boot: Note many
27 * features are missing
28 *
29 * U-Boot SPL 2017.01
30 */
Bin Mengfd0c4472017-01-18 03:32:52 -080031#ifdef CONFIG_DEBUG_UART
Simon Glass590aef72017-01-16 07:03:59 -070032 printch(' ');
Bin Mengfd0c4472017-01-18 03:32:52 -080033#endif
Simon Glass590aef72017-01-16 07:03:59 -070034}
Simon Glassefedba72017-01-16 07:03:58 -070035
36int cpu_has_64bit(void)
37{
38 return true;
39}
40
41void enable_caches(void)
42{
43 /* Not implemented */
44}
45
46void disable_caches(void)
47{
48 /* Not implemented */
49}
50
51int dcache_status(void)
52{
53 return true;
54}
55
56int x86_mp_init(void)
57{
58 /* Not implemented */
59 return 0;
60}
Simon Glass78a20d22017-01-16 07:04:08 -070061
62int misc_init_r(void)
63{
64 return 0;
65}
66
Simon Glassee7c36f2017-03-28 10:27:30 -060067int checkcpu(void)
68{
69 return 0;
70}
71
Simon Glass78a20d22017-01-16 07:04:08 -070072int print_cpuinfo(void)
73{
74 return 0;
75}