Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 1 | /* |
| 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 Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 13 | #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 Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 19 | |
| 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 | |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 29 | /* Monitor Command Prompt */ |
| 30 | /* Console I/O Buffer Size */ |
| 31 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ |
| 32 | sizeof(CONFIG_SYS_PROMPT) + 16) |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 33 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 34 | #define CONFIG_SYS_LONGHELP |
| 35 | #define CONFIG_CMDLINE_EDITING |
| 36 | |
| 37 | #include <config_distro_defaults.h> |
| 38 | |
Andreas Färber | 70b8bd7 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 39 | #define BOOT_TARGET_DEVICES(func) \ |
xypron.glpk@gmx.de | 1f677e4 | 2017-04-15 21:30:39 +0200 | [diff] [blame] | 40 | func(MMC, mmc, 0) \ |
| 41 | func(MMC, mmc, 1) \ |
| 42 | func(MMC, mmc, 2) \ |
Vagrant Cascadian | e320d37 | 2017-05-05 14:11:26 -0700 | [diff] [blame] | 43 | func(PXE, pxe, na) \ |
Andreas Färber | 70b8bd7 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 44 | func(DHCP, dhcp, na) |
| 45 | |
| 46 | #include <config_distro_bootcmd.h> |
| 47 | |
| 48 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 49 | "fdt_addr_r=0x01000000\0" \ |
| 50 | "scriptaddr=0x1f000000\0" \ |
| 51 | "kernel_addr_r=0x01080000\0" \ |
| 52 | "pxefile_addr_r=0x01080000\0" \ |
xypron.glpk@gmx.de | d038574 | 2017-04-14 20:04:46 +0200 | [diff] [blame] | 53 | "ramdisk_addr_r=0x13000000\0" \ |
Andreas Färber | 70b8bd7 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 54 | MESON_FDTFILE_SETTING \ |
| 55 | BOOTENV |
| 56 | |
xypron.glpk@gmx.de | cc93834 | 2017-04-14 19:54:40 +0200 | [diff] [blame] | 57 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */ |
| 58 | |
Carlo Caione | 4b3ab59 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 59 | #endif /* __MESON_GXBB_COMMON_CONFIG_H */ |