blob: 7435f3475ea8120cda119aa128b33a1c81cc6a39 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Carlo Caione72ad9032016-06-10 20:18:22 +02002/*
Neil Armstrong6e89d922018-04-11 17:13:45 +02003 * Configuration for Amlogic Meson GX SoCs
Carlo Caione72ad9032016-06-10 20:18:22 +02004 * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com>
Carlo Caione72ad9032016-06-10 20:18:22 +02005 */
6
Neil Armstrong6e89d922018-04-11 17:13:45 +02007#ifndef __MESON_GX_COMMON_CONFIG_H
8#define __MESON_GX_COMMON_CONFIG_H
Carlo Caione72ad9032016-06-10 20:18:22 +02009
10#define CONFIG_CPU_ARMV8
11#define CONFIG_REMAKE_ELF
Neil Armstrong8b245692017-11-27 10:35:46 +010012#define CONFIG_NR_DRAM_BANKS 1
Carlo Caione72ad9032016-06-10 20:18:22 +020013#define CONFIG_ENV_SIZE 0x2000
14#define CONFIG_SYS_MAXARGS 32
15#define CONFIG_SYS_MALLOC_LEN (32 << 20)
16#define CONFIG_SYS_CBSIZE 1024
Carlo Caione72ad9032016-06-10 20:18:22 +020017
18#define CONFIG_SYS_SDRAM_BASE 0
Carlo Caione72ad9032016-06-10 20:18:22 +020019#define CONFIG_SYS_INIT_SP_ADDR 0x20000000
20#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
21
22/* Generic Interrupt Controller Definitions */
23#define GICD_BASE 0xc4301000
24#define GICC_BASE 0xc4302000
25
Neil Armstrong42fe74e2018-06-14 13:43:38 +020026#ifdef CONFIG_CMD_USB
27#define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
28#else
29#define BOOT_TARGET_DEVICES_USB(func)
30#endif
31
Andreas Färberd1296682017-01-15 20:22:30 +010032#define BOOT_TARGET_DEVICES(func) \
xypron.glpk@gmx.de787b5d12017-04-15 21:30:39 +020033 func(MMC, mmc, 0) \
34 func(MMC, mmc, 1) \
35 func(MMC, mmc, 2) \
Neil Armstrong42fe74e2018-06-14 13:43:38 +020036 BOOT_TARGET_DEVICES_USB(func) \
Vagrant Cascadian69d4b992017-05-05 14:11:26 -070037 func(PXE, pxe, na) \
Andreas Färberd1296682017-01-15 20:22:30 +010038 func(DHCP, dhcp, na)
39
40#include <config_distro_bootcmd.h>
41
42#define CONFIG_EXTRA_ENV_SETTINGS \
43 "fdt_addr_r=0x01000000\0" \
44 "scriptaddr=0x1f000000\0" \
45 "kernel_addr_r=0x01080000\0" \
46 "pxefile_addr_r=0x01080000\0" \
xypron.glpk@gmx.de840e0af2017-04-14 20:04:46 +020047 "ramdisk_addr_r=0x13000000\0" \
Andreas Färberd1296682017-01-15 20:22:30 +010048 MESON_FDTFILE_SETTING \
49 BOOTENV
50
xypron.glpk@gmx.de07fee662017-04-14 19:54:40 +020051#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */
52
Neil Armstrong6e89d922018-04-11 17:13:45 +020053#endif /* __MESON_GX_COMMON_CONFIG_H */