]> Git Repo - J-u-boot.git/blob - include/configs/smegw01.h
Convert CONFIG_USE_BOOTCOMMAND et al to Kconfig
[J-u-boot.git] / include / configs / smegw01.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2016 NXP Semiconductors
4  * Copyright (C) 2021 Fabio Estevam <[email protected]>
5  *
6  * Configuration settings for the smegw01 board.
7  */
8
9 #ifndef __SMEGW01_CONFIG_H
10 #define __SMEGW01_CONFIG_H
11
12 #include "mx7_common.h"
13 #include <imximage.h>
14
15 #define PHYS_SDRAM_SIZE         SZ_512M
16
17 /* MMC Config*/
18 #define CONFIG_SYS_FSL_ESDHC_ADDR       0
19 #define CONFIG_SYS_MMC_IMG_LOAD_PART    1
20
21 #define CONFIG_EXTRA_ENV_SETTINGS \
22         "image=zImage\0" \
23         "console=ttymxc0\0" \
24         "fdtfile=imx7d-smegw01.dtb\0" \
25         "fdt_addr=0x83000000\0" \
26         "bootm_size=0x10000000\0" \
27         "mmcdev=0\0" \
28         "mmcpart=1\0" \
29         "mmcargs=setenv bootargs console=${console},${baudrate} " \
30                 "root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
31         "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
32         "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
33         "mmcboot=echo Booting from mmc ...; " \
34                 "run mmcargs; " \
35                 "if run loadfdt; then " \
36                         "bootz ${loadaddr} - ${fdt_addr}; " \
37                 "fi;\0" \
38
39 /* Physical Memory Map */
40 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
41
42 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM
43 #define CONFIG_SYS_INIT_RAM_ADDR        IRAM_BASE_ADDR
44 #define CONFIG_SYS_INIT_RAM_SIZE        IRAM_SIZE
45
46 #define CONFIG_SYS_INIT_SP_OFFSET \
47         (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
48 #define CONFIG_SYS_INIT_SP_ADDR \
49         (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
50
51 #endif
This page took 0.029224 seconds and 4 git commands to generate.