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 gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
18 gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
25 int arch_early_init_r(void)
27 gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
28 gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
32 /* This is a dummy function on arc */