]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arc/lib/cpu.c
2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm/arcregs.h>
11 DECLARE_GLOBAL_DATA_PTR
;
13 int arch_cpu_init(void)
17 /* In simulation (ISS) "CHIPID" and "ARCNUM" are all "ff" */
18 if ((read_aux_reg(ARC_AUX_IDENTITY
) & 0xffffff00) == 0xffffff00)
19 gd
->arch
.running_on_hw
= 0;
21 gd
->arch
.running_on_hw
= 1;
23 gd
->cpu_clk
= CONFIG_SYS_CLK_FREQ
;
24 gd
->ram_size
= CONFIG_SYS_SDRAM_SIZE
;
29 int arch_early_init_r(void)
31 gd
->bd
->bi_memstart
= CONFIG_SYS_SDRAM_BASE
;
32 gd
->bd
->bi_memsize
= CONFIG_SYS_SDRAM_SIZE
;