1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
7 #include <asm/arcregs.h>
10 DECLARE_GLOBAL_DATA_PTR;
12 int arch_cpu_init(void)
16 gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
17 gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
24 int arch_early_init_r(void)
26 gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
27 gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
31 /* This is a dummy function on arc */