Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 2 | /* |
Neil Armstrong | f0f3762 | 2018-04-11 17:13:45 +0200 | [diff] [blame] | 3 | * Configuration for Amlogic Meson GX SoCs |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 4 | * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com> |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
Neil Armstrong | f0f3762 | 2018-04-11 17:13:45 +0200 | [diff] [blame] | 7 | #ifndef __MESON_GX_COMMON_CONFIG_H |
| 8 | #define __MESON_GX_COMMON_CONFIG_H |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 9 | |
| 10 | #define CONFIG_CPU_ARMV8 |
| 11 | #define CONFIG_REMAKE_ELF |
Neil Armstrong | c7be3e5 | 2017-11-27 10:35:46 +0100 | [diff] [blame] | 12 | #define CONFIG_NR_DRAM_BANKS 1 |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 13 | #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 Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 17 | |
| 18 | #define CONFIG_SYS_SDRAM_BASE 0 |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 19 | #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 | |
Andreas Färber | 70b8bd7 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 26 | #define BOOT_TARGET_DEVICES(func) \ |
xypron.glpk@gmx.de | 1f677e4 | 2017-04-15 21:30:39 +0200 | [diff] [blame] | 27 | func(MMC, mmc, 0) \ |
| 28 | func(MMC, mmc, 1) \ |
| 29 | func(MMC, mmc, 2) \ |
Vagrant Cascadian | e320d37 | 2017-05-05 14:11:26 -0700 | [diff] [blame] | 30 | func(PXE, pxe, na) \ |
Andreas Färber | 70b8bd7 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 31 | func(DHCP, dhcp, na) |
| 32 | |
| 33 | #include <config_distro_bootcmd.h> |
| 34 | |
| 35 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 36 | "fdt_addr_r=0x01000000\0" \ |
| 37 | "scriptaddr=0x1f000000\0" \ |
| 38 | "kernel_addr_r=0x01080000\0" \ |
| 39 | "pxefile_addr_r=0x01080000\0" \ |
xypron.glpk@gmx.de | d038574 | 2017-04-14 20:04:46 +0200 | [diff] [blame] | 40 | "ramdisk_addr_r=0x13000000\0" \ |
Andreas Färber | 70b8bd7 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 41 | MESON_FDTFILE_SETTING \ |
| 42 | BOOTENV |
| 43 | |
xypron.glpk@gmx.de | cc93834 | 2017-04-14 19:54:40 +0200 | [diff] [blame] | 44 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */ |
| 45 | |
Neil Armstrong | f0f3762 | 2018-04-11 17:13:45 +0200 | [diff] [blame] | 46 | #endif /* __MESON_GX_COMMON_CONFIG_H */ |