Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 2 | /* |
Neil Armstrong | 6e89d92 | 2018-04-11 17:13:45 +0200 | [diff] [blame] | 3 | * Configuration for Amlogic Meson GX SoCs |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 4 | * (C) Copyright 2016 Beniamino Galvani <b.galvani@gmail.com> |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
Neil Armstrong | 6e89d92 | 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 | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 9 | |
| 10 | #define CONFIG_CPU_ARMV8 |
| 11 | #define CONFIG_REMAKE_ELF |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 12 | #define CONFIG_ENV_SIZE 0x2000 |
| 13 | #define CONFIG_SYS_MAXARGS 32 |
| 14 | #define CONFIG_SYS_MALLOC_LEN (32 << 20) |
| 15 | #define CONFIG_SYS_CBSIZE 1024 |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 16 | |
| 17 | #define CONFIG_SYS_SDRAM_BASE 0 |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 18 | #define CONFIG_SYS_INIT_SP_ADDR 0x20000000 |
| 19 | #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE |
| 20 | |
| 21 | /* Generic Interrupt Controller Definitions */ |
| 22 | #define GICD_BASE 0xc4301000 |
| 23 | #define GICC_BASE 0xc4302000 |
| 24 | |
Neil Armstrong | 42fe74e | 2018-06-14 13:43:38 +0200 | [diff] [blame] | 25 | #ifdef CONFIG_CMD_USB |
| 26 | #define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0) |
| 27 | #else |
| 28 | #define BOOT_TARGET_DEVICES_USB(func) |
| 29 | #endif |
| 30 | |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 31 | #define BOOT_TARGET_DEVICES(func) \ |
xypron.glpk@gmx.de | 787b5d1 | 2017-04-15 21:30:39 +0200 | [diff] [blame] | 32 | func(MMC, mmc, 0) \ |
| 33 | func(MMC, mmc, 1) \ |
| 34 | func(MMC, mmc, 2) \ |
Neil Armstrong | 42fe74e | 2018-06-14 13:43:38 +0200 | [diff] [blame] | 35 | BOOT_TARGET_DEVICES_USB(func) \ |
Vagrant Cascadian | 69d4b99 | 2017-05-05 14:11:26 -0700 | [diff] [blame] | 36 | func(PXE, pxe, na) \ |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 37 | func(DHCP, dhcp, na) |
| 38 | |
| 39 | #include <config_distro_bootcmd.h> |
| 40 | |
| 41 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 42 | "fdt_addr_r=0x01000000\0" \ |
| 43 | "scriptaddr=0x1f000000\0" \ |
| 44 | "kernel_addr_r=0x01080000\0" \ |
| 45 | "pxefile_addr_r=0x01080000\0" \ |
xypron.glpk@gmx.de | 840e0af | 2017-04-14 20:04:46 +0200 | [diff] [blame] | 46 | "ramdisk_addr_r=0x13000000\0" \ |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 47 | MESON_FDTFILE_SETTING \ |
| 48 | BOOTENV |
| 49 | |
xypron.glpk@gmx.de | 07fee66 | 2017-04-14 19:54:40 +0200 | [diff] [blame] | 50 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */ |
| 51 | |
Neil Armstrong | 6e89d92 | 2018-04-11 17:13:45 +0200 | [diff] [blame] | 52 | #endif /* __MESON_GX_COMMON_CONFIG_H */ |