1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2022 Marek Vasut <marex@denx.de>
6 #ifndef __IMX8MP_DATA_MODUL_EDM_SBC_H
7 #define __IMX8MP_DATA_MODUL_EDM_SBC_H
9 #include <linux/sizes.h>
10 #include <linux/stringify.h>
11 #include <asm/arch/imx-regs.h>
13 /* Link Definitions */
14 #define CFG_SYS_INIT_RAM_ADDR 0x40000000
15 #define CFG_SYS_INIT_RAM_SIZE 0x200000
17 #define CFG_SYS_SDRAM_BASE 0x40000000
18 #define PHYS_SDRAM 0x40000000
19 #define PHYS_SDRAM_SIZE 0x40000000 /* Minimum 1 GiB DDR */
21 #define CFG_MXC_UART_BASE UART3_BASE_ADDR
23 /* PHY needs a longer autonegotiation timeout after reset */
24 #define FEC_QUIRK_ENET_MAC
26 #define CFG_EXTRA_ENV_SETTINGS \
27 "altbootcmd=run bootcmd\0" \
32 "setenv dmo_update_env true ; saveenv ; saveenv\0" \
33 "dmo_update_sf_write_data=" \
34 "sf probe && sf update ${loadaddr} 0 ${filesize}\0" \
35 "dmo_update_emmc_to_sf=" \
36 "load mmc 0:1 ${loadaddr} boot/flash.bin && " \
37 "run dmo_update_sf_write_data\0" \
38 "dmo_update_sd_to_sf=" \
39 "load mmc 1:1 ${loadaddr} boot/flash.bin && " \
40 "run dmo_update_sf_write_data\0" \
44 /* Give slow devices beyond USB HUB chance to come up. */ \
45 "usb_pgood_delay=2000\0"