blob: 5794bc0d7a679def41f467392cddbeb6aaa6fd66 [file] [log] [blame]
Carlo Caione4b3ab592016-06-10 20:18:22 +02001/*
2 * Configuration for Amlogic Meson GXBB SoCs
3 * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef __MESON_GXBB_COMMON_CONFIG_H
9#define __MESON_GXBB_COMMON_CONFIG_H
10
11#define CONFIG_CPU_ARMV8
12#define CONFIG_REMAKE_ELF
Neil Armstrongc7be3e52017-11-27 10:35:46 +010013#define CONFIG_NR_DRAM_BANKS 1
Carlo Caione4b3ab592016-06-10 20:18:22 +020014#define CONFIG_ENV_SIZE 0x2000
15#define CONFIG_SYS_MAXARGS 32
16#define CONFIG_SYS_MALLOC_LEN (32 << 20)
17#define CONFIG_SYS_CBSIZE 1024
Carlo Caione4b3ab592016-06-10 20:18:22 +020018
19#define CONFIG_SYS_SDRAM_BASE 0
Carlo Caione4b3ab592016-06-10 20:18:22 +020020#define CONFIG_SYS_INIT_SP_ADDR 0x20000000
21#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
22
23/* Generic Interrupt Controller Definitions */
24#define GICD_BASE 0xc4301000
25#define GICC_BASE 0xc4302000
26
Andreas Färber70b8bd72017-01-15 20:22:30 +010027#define BOOT_TARGET_DEVICES(func) \
xypron.glpk@gmx.de1f677e42017-04-15 21:30:39 +020028 func(MMC, mmc, 0) \
29 func(MMC, mmc, 1) \
30 func(MMC, mmc, 2) \
Vagrant Cascadiane320d372017-05-05 14:11:26 -070031 func(PXE, pxe, na) \
Andreas Färber70b8bd72017-01-15 20:22:30 +010032 func(DHCP, dhcp, na)
33
34#include <config_distro_bootcmd.h>
35
36#define CONFIG_EXTRA_ENV_SETTINGS \
37 "fdt_addr_r=0x01000000\0" \
38 "scriptaddr=0x1f000000\0" \
39 "kernel_addr_r=0x01080000\0" \
40 "pxefile_addr_r=0x01080000\0" \
xypron.glpk@gmx.ded0385742017-04-14 20:04:46 +020041 "ramdisk_addr_r=0x13000000\0" \
Andreas Färber70b8bd72017-01-15 20:22:30 +010042 MESON_FDTFILE_SETTING \
43 BOOTENV
44
xypron.glpk@gmx.decc938342017-04-14 19:54:40 +020045#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */
46
Carlo Caione4b3ab592016-06-10 20:18:22 +020047#endif /* __MESON_GXBB_COMMON_CONFIG_H */