2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-01-16 14:03:58 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2016 Google, Inc
|
|
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2019-11-14 19:57:34 +00:00
|
|
|
#include <cpu_func.h>
|
2017-01-16 14:03:59 +00:00
|
|
|
#include <debug_uart.h>
|
|
|
|
|
2018-10-14 03:52:07 +00: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 14:03:59 +00:00
|
|
|
|
|
|
|
void arch_setup_gd(gd_t *new_gd)
|
|
|
|
{
|
|
|
|
global_data_ptr = new_gd;
|
|
|
|
}
|
2017-01-16 14:03:58 +00: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 14:04:08 +00:00
|
|
|
|
|
|
|
int misc_init_r(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-03-28 16:27:30 +00:00
|
|
|
int checkcpu(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-01-16 14:04:08 +00:00
|
|
|
int print_cpuinfo(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2019-04-26 03:58:42 +00:00
|
|
|
|
|
|
|
int x86_cpu_reinit_f(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|