Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Kontron Electronics GmbH |
| 4 | * |
| 5 | * Configuration settings for the Kontron SL/BL i.MX8M-Mini boards and modules (N81xx). |
| 6 | */ |
| 7 | #ifndef __KONTRON_MX8MM_CONFIG_H |
| 8 | #define __KONTRON_MX8MM_CONFIG_H |
| 9 | |
| 10 | #include <asm/arch/imx-regs.h> |
| 11 | #include <linux/sizes.h> |
| 12 | |
| 13 | #ifdef CONFIG_SPL_BUILD |
| 14 | #include <config.h> |
| 15 | #endif |
| 16 | |
| 17 | /* RAM */ |
| 18 | #define PHYS_SDRAM DDR_CSD1_BASE_ADDR |
| 19 | #define PHYS_SDRAM_SIZE (SZ_4G) |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 20 | #define CFG_SYS_SDRAM_BASE PHYS_SDRAM |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 21 | |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 22 | #define CFG_SYS_INIT_RAM_ADDR 0x40000000 |
| 23 | #define CFG_SYS_INIT_RAM_SIZE 0x200000 |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 24 | |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 25 | /* Board and environment settings */ |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 26 | |
| 27 | #ifdef CONFIG_USB_EHCI_HCD |
Tom Rini | dd11fdc | 2022-12-04 10:04:56 -0500 | [diff] [blame] | 28 | #define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) |
| 29 | #define CFG_MXC_USB_FLAGS 0 |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 30 | #endif |
| 31 | |
Sughosh Ganu | 741ef86 | 2022-04-15 11:29:34 +0530 | [diff] [blame] | 32 | /* GUID for capsule updatable firmware image */ |
| 33 | #define KONTRON_SL_MX8MM_FIT_IMAGE_GUID \ |
| 34 | EFI_GUID(0xd488e45a, 0x4929, 0x4b55, 0x8c, 0x14, \ |
| 35 | 0x86, 0xce, 0xa2, 0xcd, 0x66, 0x29) |
| 36 | |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 37 | #define BOOT_TARGET_DEVICES(func) \ |
| 38 | func(MMC, mmc, 1) \ |
| 39 | func(MMC, mmc, 0) \ |
| 40 | func(USB, usb, 0) \ |
| 41 | func(PXE, pxe, na) |
| 42 | #include <config_distro_bootcmd.h> |
| 43 | /* Do not try to probe USB net adapters for net boot */ |
| 44 | #undef BOOTENV_RUN_NET_USB_START |
| 45 | #define BOOTENV_RUN_NET_USB_START |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 46 | |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 47 | #ifdef CONFIG_SPL_BUILD |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 48 | /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */ |
Tom Rini | dd5b58c | 2022-12-04 10:04:49 -0500 | [diff] [blame] | 49 | #define CFG_MALLOC_F_ADDR 0x930000 |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 50 | #endif |
| 51 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 52 | #define CFG_EXTRA_ENV_SETTINGS BOOTENV |
Frieder Schrempf | 9cab87f | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 53 | |
| 54 | #endif /* __KONTRON_MX8MM_CONFIG_H */ |