2021-05-28 13:26:57 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 NXP Semiconductors
|
|
|
|
* Copyright (C) 2021 Fabio Estevam <festevam@denx.de>
|
|
|
|
*
|
|
|
|
* Configuration settings for the smegw01 board.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SMEGW01_CONFIG_H
|
|
|
|
#define __SMEGW01_CONFIG_H
|
|
|
|
|
|
|
|
#include "mx7_common.h"
|
|
|
|
#include <imximage.h>
|
|
|
|
|
|
|
|
#define PHYS_SDRAM_SIZE SZ_512M
|
|
|
|
|
|
|
|
/* MMC Config*/
|
2022-10-29 00:27:13 +00:00
|
|
|
#define CFG_SYS_FSL_ESDHC_ADDR 0
|
2021-05-28 13:26:57 +00:00
|
|
|
|
2023-04-26 16:04:48 +00:00
|
|
|
/* default to no extra bootparams, we need an empty define for stringification*/
|
|
|
|
#ifndef EXTRA_BOOTPARAMS
|
|
|
|
#define EXTRA_BOOTPARAMS
|
|
|
|
#endif
|
|
|
|
|
2023-04-26 16:04:57 +00:00
|
|
|
#ifdef CONFIG_SYS_BOOT_LOCKED
|
|
|
|
#define EXTRA_ENV_FLAGS
|
|
|
|
#else
|
|
|
|
#define EXTRA_ENV_FLAGS "mmcdev:dw,"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CFG_ENV_FLAGS_LIST_STATIC \
|
|
|
|
"mmcpart:dw," \
|
|
|
|
"mmcpart_committed:dw," \
|
|
|
|
"ustate:dw," \
|
|
|
|
"bootcount:dw," \
|
|
|
|
"bootlimit:dw," \
|
|
|
|
"upgrade_available:dw," \
|
|
|
|
EXTRA_ENV_FLAGS
|
|
|
|
|
2021-05-28 13:26:57 +00:00
|
|
|
/* Physical Memory Map */
|
|
|
|
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
|
|
|
|
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
|
2022-11-16 18:10:41 +00:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
|
|
|
|
#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
|
2021-05-28 13:26:57 +00:00
|
|
|
|
|
|
|
#endif
|