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 | |
Heinrich Schuchardt | 0928036 | 2018-10-13 20:52:07 -0700 | [diff] [blame] | 10 | /* |
| 11 | * Global declaration of gd. |
| 12 | * |
| 13 | * As we write to it before relocation we have to make sure it is not put into |
| 14 | * a .bss section which may overlap a .rela section. Initialization forces it |
| 15 | * into a .data section which cannot overlap any .rela section. |
| 16 | */ |
| 17 | struct global_data *global_data_ptr = (struct global_data *)~0; |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 18 | |
| 19 | void arch_setup_gd(gd_t *new_gd) |
| 20 | { |
| 21 | global_data_ptr = new_gd; |
Simon Glass | 590aef7 | 2017-01-16 07:03:59 -0700 | [diff] [blame] | 22 | } |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 23 | |
| 24 | int cpu_has_64bit(void) |
| 25 | { |
| 26 | return true; |
| 27 | } |
| 28 | |
| 29 | void enable_caches(void) |
| 30 | { |
| 31 | /* Not implemented */ |
| 32 | } |
| 33 | |
| 34 | void disable_caches(void) |
| 35 | { |
| 36 | /* Not implemented */ |
| 37 | } |
| 38 | |
| 39 | int dcache_status(void) |
| 40 | { |
| 41 | return true; |
| 42 | } |
| 43 | |
| 44 | int x86_mp_init(void) |
| 45 | { |
| 46 | /* Not implemented */ |
| 47 | return 0; |
| 48 | } |
Simon Glass | 78a20d2 | 2017-01-16 07:04:08 -0700 | [diff] [blame] | 49 | |
| 50 | int misc_init_r(void) |
| 51 | { |
| 52 | return 0; |
| 53 | } |
| 54 | |
Simon Glass | ee7c36f | 2017-03-28 10:27:30 -0600 | [diff] [blame] | 55 | int checkcpu(void) |
| 56 | { |
| 57 | return 0; |
| 58 | } |
| 59 | |
Simon Glass | 78a20d2 | 2017-01-16 07:04:08 -0700 | [diff] [blame] | 60 | int print_cpuinfo(void) |
| 61 | { |
| 62 | return 0; |
| 63 | } |