Marek Vasut | aa2fc53 | 2023-04-04 01:07:43 +0200 | [diff] [blame] | 1 | /* 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" \ |
| 32 | /* Give slow devices beyond USB HUB chance to come up. */ \ |
| 33 | "usb_pgood_delay=2000\0" \ |
| 34 | "dmo_update_env=" \ |
| 35 | "setenv dmo_update_env true ; saveenv ; saveenv\0" \ |
| 36 | "dmo_update_sf_write_data=" \ |
| 37 | "sf probe && sf update ${loadaddr} 0 ${filesize}\0" \ |
| 38 | "dmo_update_emmc_to_sf=" \ |
| 39 | "load mmc 0:1 ${loadaddr} boot/flash.bin && " \ |
| 40 | "run dmo_update_sf_write_data\0" \ |
| 41 | "dmo_update_sd_to_sf=" \ |
| 42 | "load mmc 1:1 ${loadaddr} boot/flash.bin && " \ |
| 43 | "run dmo_update_sf_write_data\0" |
| 44 | |
| 45 | #endif |