Fabio Estevam | db1aa29 | 2021-05-28 10:26:57 -0300 | [diff] [blame] | 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 | |
Fabio Estevam | db1aa29 | 2021-05-28 10:26:57 -0300 | [diff] [blame] | 17 | /* MMC Config*/ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 18 | #define CFG_SYS_FSL_ESDHC_ADDR 0 |
Fabio Estevam | db1aa29 | 2021-05-28 10:26:57 -0300 | [diff] [blame] | 19 | |
Eduard Strehlau | c358377 | 2023-04-26 13:04:48 -0300 | [diff] [blame] | 20 | /* default to no extra bootparams, we need an empty define for stringification*/ |
| 21 | #ifndef EXTRA_BOOTPARAMS |
| 22 | #define EXTRA_BOOTPARAMS |
| 23 | #endif |
| 24 | |
Eduard Strehlau | 5fad525 | 2023-04-26 13:04:57 -0300 | [diff] [blame] | 25 | #ifdef CONFIG_SYS_BOOT_LOCKED |
| 26 | #define EXTRA_ENV_FLAGS |
Eduard Strehlau | 5fad525 | 2023-04-26 13:04:57 -0300 | [diff] [blame] | 27 | #else |
| 28 | #define EXTRA_ENV_FLAGS "mmcdev:dw," |
Eduard Strehlau | 5fad525 | 2023-04-26 13:04:57 -0300 | [diff] [blame] | 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 | |
Fabio Estevam | db1aa29 | 2021-05-28 10:26:57 -0300 | [diff] [blame] | 40 | /* Physical Memory Map */ |
| 41 | #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR |
| 42 | |
Tom Rini | bb4dd96 | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 43 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 44 | #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR |
| 45 | #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE |
Fabio Estevam | db1aa29 | 2021-05-28 10:26:57 -0300 | [diff] [blame] | 46 | |
Fabio Estevam | db1aa29 | 2021-05-28 10:26:57 -0300 | [diff] [blame] | 47 | #endif |