blob: cafae15af0c6fadd0ef9d5b2ad5998b460e42cba [file] [log] [blame]
Simon Glassefedba72017-01-16 07:03:58 -07001/*
2 * (C) Copyright 2016 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#include <common.h>
Simon Glass590aef72017-01-16 07:03:59 -07009#include <debug_uart.h>
10
11DECLARE_GLOBAL_DATA_PTR;
12
13/* Global declaration of gd */
14struct global_data *global_data_ptr;
15
16void arch_setup_gd(gd_t *new_gd)
17{
18 global_data_ptr = new_gd;
19
20 /*
21 * TODO(sjg@chromium.org): For some reason U-Boot does not boot
22 * without this line. It fails to start up U-Boot proper and instead
23 * restarts SPL. Need to figure out why:
24 *
25 * U-Boot SPL 2017.01
26 *
27 * U-Boot SPL 2017.01
28 * CPU: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz
29 * Trying to boot from SPIJumping to 64-bit U-Boot: Note many
30 * features are missing
31 *
32 * U-Boot SPL 2017.01
33 */
Bin Mengfd0c4472017-01-18 03:32:52 -080034#ifdef CONFIG_DEBUG_UART
Simon Glass590aef72017-01-16 07:03:59 -070035 printch(' ');
Bin Mengfd0c4472017-01-18 03:32:52 -080036#endif
Simon Glass590aef72017-01-16 07:03:59 -070037}
Simon Glassefedba72017-01-16 07:03:58 -070038
39int cpu_has_64bit(void)
40{
41 return true;
42}
43
44void enable_caches(void)
45{
46 /* Not implemented */
47}
48
49void disable_caches(void)
50{
51 /* Not implemented */
52}
53
54int dcache_status(void)
55{
56 return true;
57}
58
59int x86_mp_init(void)
60{
61 /* Not implemented */
62 return 0;
63}
Simon Glass78a20d22017-01-16 07:04:08 -070064
65int misc_init_r(void)
66{
67 return 0;
68}
69
Simon Glassee7c36f2017-03-28 10:27:30 -060070int checkcpu(void)
71{
72 return 0;
73}
74
Simon Glass78a20d22017-01-16 07:04:08 -070075int print_cpuinfo(void)
76{
77 return 0;
78}