Prepare v2023.10
[platform/kernel/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 <festevam@denx.de>
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 CFG_SYS_FSL_ESDHC_ADDR  0
19
20 /* default to no extra bootparams, we need an empty define for stringification*/
21 #ifndef EXTRA_BOOTPARAMS
22 #define EXTRA_BOOTPARAMS
23 #endif
24
25 #ifdef CONFIG_SYS_BOOT_LOCKED
26 #define EXTRA_ENV_FLAGS
27 #else
28 #define EXTRA_ENV_FLAGS "mmcdev:dw,"
29 #endif
30
31 #define CFG_ENV_FLAGS_LIST_STATIC \
32         "mmcpart:dw," \
33         "mmcpart_committed:dw," \
34         "ustate:dw," \
35         "bootcount:dw," \
36         "bootlimit:dw," \
37         "upgrade_available:dw," \
38         EXTRA_ENV_FLAGS
39
40 /* Physical Memory Map */
41 #define PHYS_SDRAM                      MMDC0_ARB_BASE_ADDR
42
43 #define CFG_SYS_SDRAM_BASE              PHYS_SDRAM
44 #define CFG_SYS_INIT_RAM_ADDR   IRAM_BASE_ADDR
45 #define CFG_SYS_INIT_RAM_SIZE   IRAM_SIZE
46
47 #endif