Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2016 Google, Inc |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 8 | #include <debug_uart.h> |
| 9 | |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 10 | /* Global declaration of gd */ |
| 11 | struct global_data *global_data_ptr; |
| 12 | |
| 13 | void 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 Meng | fd0c447 | 2017-01-18 03:32:52 -0800 | [diff] [blame] | 31 | #ifdef CONFIG_DEBUG_UART |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 32 | printch(' '); |
Bin Meng | fd0c447 | 2017-01-18 03:32:52 -0800 | [diff] [blame] | 33 | #endif |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 34 | } |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 35 | |
| 36 | int cpu_has_64bit(void) |
| 37 | { |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | void enable_caches(void) |
| 42 | { |
| 43 | /* Not implemented */ |
| 44 | } |
| 45 | |
| 46 | void disable_caches(void) |
| 47 | { |
| 48 | /* Not implemented */ |
| 49 | } |
| 50 | |
| 51 | int dcache_status(void) |
| 52 | { |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | int x86_mp_init(void) |
| 57 | { |
| 58 | /* Not implemented */ |
| 59 | return 0; |
| 60 | } |
Simon Glass | 78a20d2 | 2017-01-16 07:04:08 -0700 | [diff] [blame] | 61 | |
| 62 | int misc_init_r(void) |
| 63 | { |
| 64 | return 0; |
| 65 | } |
| 66 | |
Simon Glass | ee7c36f | 2017-03-28 10:27:30 -0600 | [diff] [blame] | 67 | int checkcpu(void) |
| 68 | { |
| 69 | return 0; |
| 70 | } |
| 71 | |
Simon Glass | 78a20d2 | 2017-01-16 07:04:08 -0700 | [diff] [blame] | 72 | int print_cpuinfo(void) |
| 73 | { |
| 74 | return 0; |
| 75 | } |