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 */ |
Marek Vasut | aa2fc53 | 2023-04-04 01:07:43 +0200 | [diff] [blame] | 24 | #define FEC_QUIRK_ENET_MAC |
| 25 | |
| 26 | #define CFG_EXTRA_ENV_SETTINGS \ |
| 27 | "altbootcmd=setenv devpart 2 && run bootcmd ; reset\0" \ |
| 28 | "bootlimit=3\0" \ |
| 29 | "devtype=mmc\0" \ |
| 30 | "devpart=1\0" \ |
Marek Vasut | aa2fc53 | 2023-04-04 01:07:43 +0200 | [diff] [blame] | 31 | "dmo_update_env=" \ |
| 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 && " \ |
Marek Vasut | 54e9977 | 2024-01-13 18:59:13 +0100 | [diff] [blame] | 40 | "run dmo_update_sf_write_data\0" \ |
| 41 | "stdin=serial\0" \ |
| 42 | "stdout=serial\0" \ |
| 43 | "stderr=serial\0" \ |
| 44 | /* Give slow devices beyond USB HUB chance to come up. */ \ |
| 45 | "usb_pgood_delay=2000\0" |
Marek Vasut | aa2fc53 | 2023-04-04 01:07:43 +0200 | [diff] [blame] | 46 | |
| 47 | #endif |