blob: 8e56bdc84a8955984c64547b66ec576b0941e30c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Stephen Warren0e012c32012-08-05 16:07:22 +00002/*
Stephen Warrend8845db2016-04-04 20:00:41 -06003 * (C) Copyright 2012-2016 Stephen Warren
Stephen Warren0e012c32012-08-05 16:07:22 +00004 */
5
6#ifndef __CONFIG_H
7#define __CONFIG_H
8
Stephen Warrend8845db2016-04-04 20:00:41 -06009#include <linux/sizes.h>
10#include <asm/arch/timer.h>
11
Matthias Brugger2c68dee2019-11-19 16:01:03 +010012#ifndef __ASSEMBLY__
13#include <asm/arch/base.h>
14#endif
15
Stephen Warrend8845db2016-04-04 20:00:41 -060016/* Use SoC timer for AArch32, but architected timer for AArch64 */
17#ifndef CONFIG_ARM64
Tom Rini6a5dccc2022-11-16 13:10:41 -050018#define CFG_SYS_TIMER_RATE 1000000
19#define CFG_SYS_TIMER_COUNTER \
Stephen Warrend8845db2016-04-04 20:00:41 -060020 (&((struct bcm2835_timer_regs *)BCM2835_TIMER_PHYSADDR)->clo)
21#endif
22
Stephen Warrend8845db2016-04-04 20:00:41 -060023/* Memory layout */
Tom Rinibb4dd962022-11-16 13:10:37 -050024#define CFG_SYS_SDRAM_BASE 0x00000000
Tom Rini6a5dccc2022-11-16 13:10:41 -050025#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
Stephen Warrend8845db2016-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 Rinibb4dd962022-11-16 13:10:37 -050032#define CFG_SYS_SDRAM_SIZE SZ_128M
Stephen Warrend8845db2016-04-04 20:00:41 -060033
Stephen Warren0e012c32012-08-05 16:07:22 +000034#endif