blob: 8e56bdc84a8955984c64547b66ec576b0941e30c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Stephen Warren0d04f342012-08-05 16:07:22 +00002/*
Stephen Warrenfe84ebf2016-04-04 20:00:41 -06003 * (C) Copyright 2012-2016 Stephen Warren
Stephen Warren0d04f342012-08-05 16:07:22 +00004 */
5
6#ifndef __CONFIG_H
7#define __CONFIG_H
8
Stephen Warrenfe84ebf2016-04-04 20:00:41 -06009#include <linux/sizes.h>
10#include <asm/arch/timer.h>
Alexander Stein060f9bf2015-07-24 09:22:11 +020011
Matthias Brugger8e3361c2019-11-19 16:01:03 +010012#ifndef __ASSEMBLY__
13#include <asm/arch/base.h>
14#endif
15
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060016/* Use SoC timer for AArch32, but architected timer for AArch64 */
17#ifndef CONFIG_ARM64
Tom Rini65cc0e22022-11-16 13:10:41 -050018#define CFG_SYS_TIMER_RATE 1000000
19#define CFG_SYS_TIMER_COUNTER \
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060020 (&((struct bcm2835_timer_regs *)BCM2835_TIMER_PHYSADDR)->clo)
21#endif
22
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060023/* Memory layout */
Tom Riniaa6e94d2022-11-16 13:10:37 -050024#define CFG_SYS_SDRAM_BASE 0x00000000
Tom Rini65cc0e22022-11-16 13:10:41 -050025#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060026/*
27 * The board really has 256M. However, the VC (VideoCore co-processor) shares
28 * the RAM, and uses a configurable portion at the top. We tell U-Boot that a
29 * smaller amount of RAM is present in order to avoid stomping on the area
30 * the VC uses.
31 */
Tom Riniaa6e94d2022-11-16 13:10:37 -050032#define CFG_SYS_SDRAM_SIZE SZ_128M
Stephen Warrenfe84ebf2016-04-04 20:00:41 -060033
Stephen Warren0d04f342012-08-05 16:07:22 +000034#endif