blob: d88d42de9ac2ff99b7468dc3f054f8bb789a58b0 [file] [log] [blame]
Carlo Caione72ad9032016-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
xypron.glpk@gmx.de4f14b972017-06-09 22:13:59 +020013#define CONFIG_NR_DRAM_BANKS 2
Carlo Caione72ad9032016-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 Caione72ad9032016-06-10 20:18:22 +020018
19#define CONFIG_SYS_SDRAM_BASE 0
20#define CONFIG_SYS_TEXT_BASE 0x01000000
21#define CONFIG_SYS_INIT_SP_ADDR 0x20000000
22#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
23
24/* Generic Interrupt Controller Definitions */
25#define GICD_BASE 0xc4301000
26#define GICC_BASE 0xc4302000
27
Carlo Caione72ad9032016-06-10 20:18:22 +020028#define CONFIG_SYS_LONGHELP
29#define CONFIG_CMDLINE_EDITING
30
31#include <config_distro_defaults.h>
32
Andreas Färberd1296682017-01-15 20:22:30 +010033#define BOOT_TARGET_DEVICES(func) \
xypron.glpk@gmx.de787b5d12017-04-15 21:30:39 +020034 func(MMC, mmc, 0) \
35 func(MMC, mmc, 1) \
36 func(MMC, mmc, 2) \
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
Carlo Caione72ad9032016-06-10 20:18:22 +020053#endif /* __MESON_GXBB_COMMON_CONFIG_H */