1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuration for Amlogic Meson GX SoCs
4 * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
7 #ifndef __MESON_GX_COMMON_CONFIG_H
8 #define __MESON_GX_COMMON_CONFIG_H
10 #define CONFIG_CPU_ARMV8
11 #define CONFIG_REMAKE_ELF
12 #define CONFIG_ENV_SIZE 0x2000
13 #define CONFIG_SYS_MAXARGS 32
14 #define CONFIG_SYS_MALLOC_LEN (32 << 20)
15 #define CONFIG_SYS_CBSIZE 1024
17 #define CONFIG_SYS_SDRAM_BASE 0
18 #define CONFIG_SYS_INIT_SP_ADDR 0x20000000
19 #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
21 /* Generic Interrupt Controller Definitions */
22 #define GICD_BASE 0xc4301000
23 #define GICC_BASE 0xc4302000
26 #define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
28 #define BOOT_TARGET_DEVICES_USB(func)
31 #define BOOT_TARGET_DEVICES(func) \
35 BOOT_TARGET_DEVICES_USB(func) \
39 #include <config_distro_bootcmd.h>
41 #define CONFIG_EXTRA_ENV_SETTINGS \
42 "fdt_addr_r=0x01000000\0" \
43 "scriptaddr=0x1f000000\0" \
44 "kernel_addr_r=0x01080000\0" \
45 "pxefile_addr_r=0x01080000\0" \
46 "ramdisk_addr_r=0x13000000\0" \
47 MESON_FDTFILE_SETTING \
50 #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */
52 #endif /* __MESON_GX_COMMON_CONFIG_H */