Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) Stefano Babic <sbabic@denx.de> |
| 4 | * |
| 5 | * Configuration settings for the E+L i.MX6Q DO82 board. |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __EL6Q_COMMON_CONFIG_H |
| 9 | #define __EL6Q_COMMON_CONFIG_H |
| 10 | |
Simon Glass | 1af3c7f | 2020-05-10 11:40:09 -0600 | [diff] [blame] | 11 | #include <linux/stringify.h> |
| 12 | |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 13 | #include "mx6_common.h" |
| 14 | |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 15 | /* MMC Configs */ |
Tom Rini | 6cc0454 | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 16 | #define CFG_SYS_FSL_ESDHC_ADDR 0 |
| 17 | #define CFG_SYS_FSL_USDHC_NUM 2 |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 18 | |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 19 | /* PMIC */ |
Tom Rini | aa3efb6 | 2022-12-04 10:13:35 -0500 | [diff] [blame] | 20 | #define CFG_POWER_PFUZE100_I2C_ADDR 0x08 |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 21 | |
| 22 | /* Commands */ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 23 | |
Tom Rini | 4db3866 | 2022-12-04 10:04:55 -0500 | [diff] [blame] | 24 | #define CFG_MXC_UART_BASE UART2_BASE |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 25 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 26 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tom Rini | 47267f8 | 2022-03-21 21:33:32 -0400 | [diff] [blame] | 27 | "board=EL6Q\0" \ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 28 | "cma_size="__stringify(EL6Q_CMA_SIZE)"\0" \ |
| 29 | "chp_size="__stringify(EL6Q_COHERENT_POOL_SIZE)"\0" \ |
Simon Glass | 12ca05a | 2016-10-17 20:12:39 -0600 | [diff] [blame] | 30 | "console=" CONSOLE_DEV "\0" \ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 31 | "fdtfile=undefined\0" \ |
| 32 | "fdt_high=0xffffffff\0" \ |
| 33 | "fdt_addr_r=0x18000000\0" \ |
| 34 | "fdt_addr=0x18000000\0" \ |
| 35 | "findfdt=setenv fdtfile " CONFIG_DEFAULT_FDT_FILE "\0" \ |
Tom Rini | 72d8136 | 2021-08-23 10:25:30 -0400 | [diff] [blame] | 36 | "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
| 37 | "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
| 38 | "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 39 | BOOTENV |
| 40 | |
| 41 | #define BOOT_TARGET_DEVICES(func) \ |
| 42 | func(MMC, mmc, 0) \ |
| 43 | func(MMC, mmc, 1) \ |
| 44 | func(PXE, PXE, na) \ |
| 45 | func(DHCP, dhcp, na) |
| 46 | |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 47 | #include <config_distro_bootcmd.h> |
| 48 | |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 49 | /* Physical Memory Map */ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 50 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 51 | |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 52 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 53 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 54 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 55 | |
Masahiro Yamada | e856bdc | 2017-02-11 22:43:54 +0900 | [diff] [blame] | 56 | /* environment organization */ |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 57 | |
Stefano Babic | 8be4f40 | 2016-06-06 11:19:42 +0200 | [diff] [blame] | 58 | #endif /* __EL6Q_COMMON_CONFIG_H */ |