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 | /* |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 3 | * Configuration for Amlogic Meson 64bits 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 | |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 7 | #ifndef __MESON64_CONFIG_H |
| 8 | #define __MESON64_CONFIG_H |
| 9 | |
| 10 | /* Generic Interrupt Controller Definitions */ |
| 11 | #define GICD_BASE 0xc4301000 |
| 12 | #define GICC_BASE 0xc4302000 |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 13 | |
| 14 | #define CONFIG_CPU_ARMV8 |
| 15 | #define CONFIG_REMAKE_ELF |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 16 | #define CONFIG_ENV_SIZE 0x2000 |
| 17 | #define CONFIG_SYS_MAXARGS 32 |
| 18 | #define CONFIG_SYS_MALLOC_LEN (32 << 20) |
| 19 | #define CONFIG_SYS_CBSIZE 1024 |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 20 | |
| 21 | #define CONFIG_SYS_SDRAM_BASE 0 |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 22 | #define CONFIG_SYS_INIT_SP_ADDR 0x20000000 |
| 23 | #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 24 | #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64 MiB */ |
Carlo Caione | 72ad903 | 2016-06-10 20:18:22 +0200 | [diff] [blame] | 25 | |
Neil Armstrong | 42fe74e | 2018-06-14 13:43:38 +0200 | [diff] [blame] | 26 | #ifdef CONFIG_CMD_USB |
| 27 | #define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0) |
| 28 | #else |
| 29 | #define BOOT_TARGET_DEVICES_USB(func) |
| 30 | #endif |
| 31 | |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 32 | #ifndef BOOT_TARGET_DEVICES |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 33 | #define BOOT_TARGET_DEVICES(func) \ |
xypron.glpk@gmx.de | 787b5d1 | 2017-04-15 21:30:39 +0200 | [diff] [blame] | 34 | func(MMC, mmc, 0) \ |
| 35 | func(MMC, mmc, 1) \ |
| 36 | func(MMC, mmc, 2) \ |
Neil Armstrong | 42fe74e | 2018-06-14 13:43:38 +0200 | [diff] [blame] | 37 | BOOT_TARGET_DEVICES_USB(func) \ |
Vagrant Cascadian | 69d4b99 | 2017-05-05 14:11:26 -0700 | [diff] [blame] | 38 | func(PXE, pxe, na) \ |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 39 | func(DHCP, dhcp, na) |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 40 | #endif |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 41 | |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 42 | #ifndef CONFIG_EXTRA_ENV_SETTINGS |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 43 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Jerome Brunet | 7c3ca35 | 2018-10-24 16:27:51 +0200 | [diff] [blame^] | 44 | "fdt_addr_r=0x08008000\0" \ |
| 45 | "scriptaddr=0x08000000\0" \ |
| 46 | "kernel_addr_r=0x08080000\0" \ |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 47 | "pxefile_addr_r=0x01080000\0" \ |
xypron.glpk@gmx.de | 840e0af | 2017-04-14 20:04:46 +0200 | [diff] [blame] | 48 | "ramdisk_addr_r=0x13000000\0" \ |
Jerome Brunet | ff5ce03 | 2018-10-19 12:00:51 +0200 | [diff] [blame] | 49 | "fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 50 | BOOTENV |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 51 | #endif |
Andreas Färber | d129668 | 2017-01-15 20:22:30 +0100 | [diff] [blame] | 52 | |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 53 | #include <config_distro_bootcmd.h> |
xypron.glpk@gmx.de | 07fee66 | 2017-04-14 19:54:40 +0200 | [diff] [blame] | 54 | |
Jerome Brunet | 32bacc5 | 2018-10-25 16:41:37 +0200 | [diff] [blame] | 55 | #endif /* __MESON64_CONFIG_H */ |