blob: a2aedefcec215e3e22fc64a84713521fe2150477 [file] [log] [blame]
Frieder Schrempf199dfd92021-09-29 16:42:42 +02001/* 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)
20#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
21
22#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
23#define CONFIG_SYS_INIT_RAM_SIZE 0x200000
24
Frieder Schrempf199dfd92021-09-29 16:42:42 +020025/* Board and environment settings */
Frieder Schrempf199dfd92021-09-29 16:42:42 +020026#define CONFIG_HOSTNAME "kontron-mx8mm"
27
28#ifdef CONFIG_USB_EHCI_HCD
Frieder Schrempf199dfd92021-09-29 16:42:42 +020029#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
30#define CONFIG_MXC_USB_FLAGS 0
Frieder Schrempf199dfd92021-09-29 16:42:42 +020031#endif
32
Sughosh Ganuccb36462022-04-15 11:29:34 +053033/* GUID for capsule updatable firmware image */
34#define KONTRON_SL_MX8MM_FIT_IMAGE_GUID \
35 EFI_GUID(0xd488e45a, 0x4929, 0x4b55, 0x8c, 0x14, \
36 0x86, 0xce, 0xa2, 0xcd, 0x66, 0x29)
37
Frieder Schrempf199dfd92021-09-29 16:42:42 +020038#define BOOT_TARGET_DEVICES(func) \
39 func(MMC, mmc, 1) \
40 func(MMC, mmc, 0) \
41 func(USB, usb, 0) \
42 func(PXE, pxe, na)
43#include <config_distro_bootcmd.h>
44/* Do not try to probe USB net adapters for net boot */
45#undef BOOTENV_RUN_NET_USB_START
46#define BOOTENV_RUN_NET_USB_START
Frieder Schrempf199dfd92021-09-29 16:42:42 +020047
Frieder Schrempf199dfd92021-09-29 16:42:42 +020048#ifdef CONFIG_SPL_BUILD
Frieder Schrempf199dfd92021-09-29 16:42:42 +020049/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
50#define CONFIG_MALLOC_F_ADDR 0x930000
51#endif
52
Frieder Schrempf38d01ee2022-08-24 15:59:09 +020053#define CONFIG_EXTRA_ENV_SETTINGS BOOTENV
Frieder Schrempf199dfd92021-09-29 16:42:42 +020054
55#endif /* __KONTRON_MX8MM_CONFIG_H */