blob: 8d7954004c2aff897692b41dc55ef3c07a4482f3 [file] [log] [blame]
Marek Vasutaa2fc532023-04-04 01:07:43 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2022 Marek Vasut <marex@denx.de>
4 */
5
6#ifndef __IMX8MP_DATA_MODUL_EDM_SBC_H
7#define __IMX8MP_DATA_MODUL_EDM_SBC_H
8
9#include <linux/sizes.h>
10#include <linux/stringify.h>
11#include <asm/arch/imx-regs.h>
12
13/* Link Definitions */
14#define CFG_SYS_INIT_RAM_ADDR 0x40000000
15#define CFG_SYS_INIT_RAM_SIZE 0x200000
16
17#define CFG_SYS_SDRAM_BASE 0x40000000
18#define PHYS_SDRAM 0x40000000
19#define PHYS_SDRAM_SIZE 0x40000000 /* Minimum 1 GiB DDR */
20
21#define CFG_MXC_UART_BASE UART3_BASE_ADDR
22
23/* PHY needs a longer autonegotiation timeout after reset */
24#define PHY_ANEG_TIMEOUT 20000
25#define FEC_QUIRK_ENET_MAC
26
27#define CFG_EXTRA_ENV_SETTINGS \
28 "altbootcmd=setenv devpart 2 && run bootcmd ; reset\0" \
29 "bootlimit=3\0" \
30 "devtype=mmc\0" \
31 "devpart=1\0" \
Marek Vasutaa2fc532023-04-04 01:07:43 +020032 "dmo_update_env=" \
33 "setenv dmo_update_env true ; saveenv ; saveenv\0" \
34 "dmo_update_sf_write_data=" \
35 "sf probe && sf update ${loadaddr} 0 ${filesize}\0" \
36 "dmo_update_emmc_to_sf=" \
37 "load mmc 0:1 ${loadaddr} boot/flash.bin && " \
38 "run dmo_update_sf_write_data\0" \
39 "dmo_update_sd_to_sf=" \
40 "load mmc 1:1 ${loadaddr} boot/flash.bin && " \
Marek Vasut54e99772024-01-13 18:59:13 +010041 "run dmo_update_sf_write_data\0" \
42 "stdin=serial\0" \
43 "stdout=serial\0" \
44 "stderr=serial\0" \
45 /* Give slow devices beyond USB HUB chance to come up. */ \
46 "usb_pgood_delay=2000\0"
Marek Vasutaa2fc532023-04-04 01:07:43 +020047
48#endif