blob: 997ce2df19809e0d0f9ca283a9004cf836603839 [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
Carlo Caione72ad9032016-06-10 20:18:22 +020013#define CONFIG_NR_DRAM_BANKS 1
14#define CONFIG_ENV_IS_NOWHERE 1
15#define CONFIG_ENV_SIZE 0x2000
16#define CONFIG_SYS_MAXARGS 32
17#define CONFIG_SYS_MALLOC_LEN (32 << 20)
18#define CONFIG_SYS_CBSIZE 1024
Carlo Caione72ad9032016-06-10 20:18:22 +020019
20#define CONFIG_SYS_SDRAM_BASE 0
21#define CONFIG_SYS_TEXT_BASE 0x01000000
22#define CONFIG_SYS_INIT_SP_ADDR 0x20000000
23#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
24
25/* Generic Interrupt Controller Definitions */
26#define GICD_BASE 0xc4301000
27#define GICC_BASE 0xc4302000
28
29#define CONFIG_CMD_ENV
30
31/* Monitor Command Prompt */
32/* Console I/O Buffer Size */
33#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
34 sizeof(CONFIG_SYS_PROMPT) + 16)
Carlo Caione72ad9032016-06-10 20:18:22 +020035#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
36#define CONFIG_SYS_LONGHELP
37#define CONFIG_CMDLINE_EDITING
38
39#include <config_distro_defaults.h>
40
Andreas Färberd1296682017-01-15 20:22:30 +010041#define BOOT_TARGET_DEVICES(func) \
xypron.glpk@gmx.de787b5d12017-04-15 21:30:39 +020042 func(MMC, mmc, 0) \
43 func(MMC, mmc, 1) \
44 func(MMC, mmc, 2) \
Andreas Färberd1296682017-01-15 20:22:30 +010045 func(DHCP, dhcp, na)
46
47#include <config_distro_bootcmd.h>
48
49#define CONFIG_EXTRA_ENV_SETTINGS \
50 "fdt_addr_r=0x01000000\0" \
51 "scriptaddr=0x1f000000\0" \
52 "kernel_addr_r=0x01080000\0" \
53 "pxefile_addr_r=0x01080000\0" \
54 "ramdisk_addr_r=0x10000000\0" \
55 MESON_FDTFILE_SETTING \
56 BOOTENV
57
Carlo Caione72ad9032016-06-10 20:18:22 +020058#endif /* __MESON_GXBB_COMMON_CONFIG_H */