apalis-tk1: add update_uboot wrapper
[platform/kernel/u-boot.git] / include / configs / el6x_common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) Stefano Babic <sbabic@denx.de>
4  *
5  * Configuration settings for the E+L i.MX6Q DO82 board.
6  */
7
8 #ifndef __EL6Q_COMMON_CONFIG_H
9 #define __EL6Q_COMMON_CONFIG_H
10
11 #define CONFIG_BOARD_NAME               EL6Q
12
13 #include "mx6_common.h"
14
15 #define CONFIG_IMX_THERMAL
16
17 /* Size of malloc() pool */
18 #define CONFIG_SYS_MALLOC_LEN           (10 * SZ_1M)
19
20 #define CONFIG_MXC_UART
21
22 #ifdef CONFIG_SPL
23 #include "imx6_spl.h"
24 #endif
25
26 /* MMC Configs */
27 #define CONFIG_SYS_FSL_ESDHC_ADDR       0
28 #define CONFIG_SYS_FSL_USDHC_NUM        2
29
30 /* I2C config */
31 #define CONFIG_SYS_I2C
32 #define CONFIG_SYS_I2C_MXC
33 #define CONFIG_SYS_I2C_MXC_I2C1         /* enable I2C bus 1 */
34 #define CONFIG_SYS_I2C_MXC_I2C2         /* enable I2C bus 2 */
35 #define CONFIG_SYS_I2C_MXC_I2C3         /* enable I2C bus 3 */
36 #define CONFIG_SYS_I2C_SPEED                    100000
37
38 /* PMIC */
39 #define CONFIG_POWER
40 #define CONFIG_POWER_I2C
41 #define CONFIG_POWER_PFUZE100
42 #define CONFIG_POWER_PFUZE100_I2C_ADDR  0x08
43
44 /* Commands */
45
46 /* allow to overwrite serial and ethaddr */
47 #define CONFIG_ENV_OVERWRITE
48 #define CONFIG_MXC_UART_BASE    UART2_BASE
49
50 #define CONFIG_BOARD_NAME       EL6Q
51
52 #define CONFIG_EXTRA_ENV_SETTINGS                                               \
53         "board="__stringify(CONFIG_BOARD_NAME)"\0"                              \
54         "cma_size="__stringify(EL6Q_CMA_SIZE)"\0"                               \
55         "chp_size="__stringify(EL6Q_COHERENT_POOL_SIZE)"\0"                     \
56         "console=" CONSOLE_DEV "\0"                                     \
57         "fdtfile=undefined\0" \
58         "fdt_high=0xffffffff\0" \
59         "fdt_addr_r=0x18000000\0" \
60         "fdt_addr=0x18000000\0" \
61         "findfdt=setenv fdtfile " CONFIG_DEFAULT_FDT_FILE "\0"                  \
62         "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
63         "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
64         "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
65         BOOTENV
66
67 #define BOOT_TARGET_DEVICES(func) \
68         func(MMC, mmc, 0) \
69         func(MMC, mmc, 1) \
70         func(PXE, PXE, na) \
71         func(DHCP, dhcp, na)
72
73 #include <config_distro_bootcmd.h>
74
75 #define CONFIG_ARP_TIMEOUT     200UL
76
77 #define CONFIG_SYS_MEMTEST_START       0x10000000
78 #define CONFIG_SYS_MEMTEST_END         0x10800000
79 #define CONFIG_SYS_MEMTEST_SCRATCH     0x10800000
80
81 /* Physical Memory Map */
82 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
83
84 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
85 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
86 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
87
88 #define CONFIG_SYS_INIT_SP_OFFSET \
89         (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
90 #define CONFIG_SYS_INIT_SP_ADDR \
91         (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
92
93 /* environment organization */
94
95 #if defined(CONFIG_ENV_IS_IN_MMC)
96 #define CONFIG_SYS_MMC_ENV_DEV          1
97 #define CONFIG_SYS_MMC_ENV_PART         2
98 #endif
99
100 #endif                         /* __EL6Q_COMMON_CONFIG_H */