diff options
Diffstat (limited to 'include/configs/rpi.h')
-rw-r--r-- | include/configs/rpi.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/configs/rpi.h b/include/configs/rpi.h new file mode 100644 index 00000000000..8e56bdc84a8 --- /dev/null +++ b/include/configs/rpi.h @@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * (C) Copyright 2012-2016 Stephen Warren + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#include <linux/sizes.h> +#include <asm/arch/timer.h> + +#ifndef __ASSEMBLY__ +#include <asm/arch/base.h> +#endif + +/* Use SoC timer for AArch32, but architected timer for AArch64 */ +#ifndef CONFIG_ARM64 +#define CFG_SYS_TIMER_RATE 1000000 +#define CFG_SYS_TIMER_COUNTER \ + (&((struct bcm2835_timer_regs *)BCM2835_TIMER_PHYSADDR)->clo) +#endif + +/* Memory layout */ +#define CFG_SYS_SDRAM_BASE 0x00000000 +#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE +/* + * The board really has 256M. However, the VC (VideoCore co-processor) shares + * the RAM, and uses a configurable portion at the top. We tell U-Boot that a + * smaller amount of RAM is present in order to avoid stomping on the area + * the VC uses. + */ +#define CFG_SYS_SDRAM_SIZE SZ_128M + +#endif |