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