upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
659 B
45 lines
659 B
10 years ago
|
/*
|
||
|
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0+
|
||
|
*/
|
||
|
|
||
|
#include <common.h>
|
||
|
#include <asm/io.h>
|
||
|
#include <asm/pci.h>
|
||
|
#include <asm/post.h>
|
||
|
#include <asm/processor.h>
|
||
|
|
||
|
int arch_cpu_init(void)
|
||
|
{
|
||
|
struct pci_controller *hose;
|
||
|
int ret;
|
||
|
|
||
|
post_code(POST_CPU_INIT);
|
||
|
#ifdef CONFIG_SYS_X86_TSC_TIMER
|
||
|
timer_set_base(rdtsc());
|
||
|
#endif
|
||
|
|
||
|
ret = x86_cpu_init_f();
|
||
|
if (ret)
|
||
|
return ret;
|
||
|
|
||
|
ret = pci_early_init_hose(&hose);
|
||
|
if (ret)
|
||
|
return ret;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int print_cpuinfo(void)
|
||
|
{
|
||
|
post_code(POST_CPU_INFO);
|
||
|
return default_print_cpuinfo();
|
||
|
}
|
||
|
|
||
|
void reset_cpu(ulong addr)
|
||
|
{
|
||
|
/* cold reset */
|
||
|
outb(0x08, PORT_RESET);
|
||
|
}
|