2018-05-07 06:58:06 +09:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-01-16 23:03:58 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2016 Google, Inc
|
|
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2019-11-15 04:57:34 +09:00
|
|
|
#include <cpu_func.h>
|
2017-01-16 23:03:59 +09:00
|
|
|
#include <debug_uart.h>
|
|
|
|
|
2018-10-14 12:52:07 +09:00
|
|
|
/*
|
|
|
|
* Global declaration of gd.
|
|
|
|
*
|
|
|
|
* As we write to it before relocation we have to make sure it is not put into
|
|
|
|
* a .bss section which may overlap a .rela section. Initialization forces it
|
|
|
|
* into a .data section which cannot overlap any .rela section.
|
|
|
|
*/
|
|
|
|
struct global_data *global_data_ptr = (struct global_data *)~0;
|
2017-01-16 23:03:59 +09:00
|
|
|
|
|
|
|
void arch_setup_gd(gd_t *new_gd)
|
|
|
|
{
|
|
|
|
global_data_ptr = new_gd;
|
|
|
|
}
|
2017-01-16 23:03:58 +09:00
|
|
|
|
|
|
|
int cpu_has_64bit(void)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void enable_caches(void)
|
|
|
|
{
|
|
|
|
/* Not implemented */
|
|
|
|
}
|
|
|
|
|
|
|
|
void disable_caches(void)
|
|
|
|
{
|
|
|
|
/* Not implemented */
|
|
|
|
}
|
|
|
|
|
|
|
|
int dcache_status(void)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
int x86_mp_init(void)
|
|
|
|
{
|
|
|
|
/* Not implemented */
|
|
|
|
return 0;
|
|
|
|
}
|
2017-01-16 23:04:08 +09:00
|
|
|
|
|
|
|
int misc_init_r(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-05-01 12:21:43 +09:00
|
|
|
#ifndef CONFIG_SYS_COREBOOT
|
2017-03-29 01:27:30 +09:00
|
|
|
int checkcpu(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-01-16 23:04:08 +09:00
|
|
|
int print_cpuinfo(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2020-05-01 12:21:43 +09:00
|
|
|
#endif
|
2019-04-26 12:58:42 +09:00
|
|
|
|
|
|
|
int x86_cpu_reinit_f(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|