1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2019 Kontron Electronics GmbH
5 * Configuration settings for the Kontron SL/BL i.MX8M-Mini boards and modules (N81xx).
7 #ifndef __KONTRON_MX8MM_CONFIG_H
8 #define __KONTRON_MX8MM_CONFIG_H
10 #include <asm/arch/imx-regs.h>
11 #include <linux/sizes.h>
13 #ifdef CONFIG_XPL_BUILD
18 #define PHYS_SDRAM DDR_CSD1_BASE_ADDR
19 #define PHYS_SDRAM_SIZE (SZ_4G)
20 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM
22 #define CFG_SYS_INIT_RAM_ADDR 0x40000000
23 #define CFG_SYS_INIT_RAM_SIZE 0x200000
25 /* Board and environment settings */
27 /* GUID for capsule updatable firmware image */
28 #define KONTRON_SL_MX8MM_FIT_IMAGE_GUID \
29 EFI_GUID(0xd488e45a, 0x4929, 0x4b55, 0x8c, 0x14, \
30 0x86, 0xce, 0xa2, 0xcd, 0x66, 0x29)
32 #define BOOT_TARGET_DEVICES(func) \
37 #include <config_distro_bootcmd.h>
38 /* Do not try to probe USB net adapters for net boot */
39 #undef BOOTENV_RUN_NET_USB_START
40 #define BOOTENV_RUN_NET_USB_START
42 #ifdef CONFIG_XPL_BUILD
43 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
44 #define CFG_MALLOC_F_ADDR 0x930000
47 #define CFG_EXTRA_ENV_SETTINGS BOOTENV
49 #endif /* __KONTRON_MX8MM_CONFIG_H */