blob: 0aa25f9e2eaa6cd2f8b1521a768038f2bafa2d12 [file] [log] [blame]
Fabio Estevam40496ac2021-05-28 10:26:57 -03001/* 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
Fabio Estevam40496ac2021-05-28 10:26:57 -030017/* MMC Config*/
Tom Rini6cc04542022-10-28 20:27:13 -040018#define CFG_SYS_FSL_ESDHC_ADDR 0
Fabio Estevam40496ac2021-05-28 10:26:57 -030019
Eduard Strehlau7f932c62023-04-26 13:04:48 -030020/* default to no extra bootparams, we need an empty define for stringification*/
21#ifndef EXTRA_BOOTPARAMS
22#define EXTRA_BOOTPARAMS
23#endif
24
Eduard Strehlaua1bc4f12023-04-26 13:04:57 -030025#ifdef CONFIG_SYS_BOOT_LOCKED
26#define EXTRA_ENV_FLAGS
Eduard Strehlaua1bc4f12023-04-26 13:04:57 -030027#else
28#define EXTRA_ENV_FLAGS "mmcdev:dw,"
Eduard Strehlaua1bc4f12023-04-26 13:04:57 -030029#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
Fabio Estevam40496ac2021-05-28 10:26:57 -030040/* Physical Memory Map */
41#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
42
Tom Riniaa6e94d2022-11-16 13:10:37 -050043#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Tom Rini65cc0e22022-11-16 13:10:41 -050044#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
45#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
Fabio Estevam40496ac2021-05-28 10:26:57 -030046
Fabio Estevam40496ac2021-05-28 10:26:57 -030047#endif