blob: 72a28a6a413b255de5251afb521f7a56c8b03cef [file] [log] [blame]
Frieder Schrempf9cab87f2021-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
Simon Glassf38956a2024-09-29 19:49:49 -060013#ifdef CONFIG_XPL_BUILD
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020014#include <config.h>
15#endif
16
17/* RAM */
18#define PHYS_SDRAM DDR_CSD1_BASE_ADDR
19#define PHYS_SDRAM_SIZE (SZ_4G)
Tom Riniaa6e94d2022-11-16 13:10:37 -050020#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020021
Tom Rini65cc0e22022-11-16 13:10:41 -050022#define CFG_SYS_INIT_RAM_ADDR 0x40000000
23#define CFG_SYS_INIT_RAM_SIZE 0x200000
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020024
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020025/* Board and environment settings */
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020026
Sughosh Ganu741ef862022-04-15 11:29:34 +053027/* 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)
31
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020032#define BOOT_TARGET_DEVICES(func) \
33 func(MMC, mmc, 1) \
34 func(MMC, mmc, 0) \
35 func(USB, usb, 0) \
36 func(PXE, pxe, na)
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
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020041
Simon Glassf38956a2024-09-29 19:49:49 -060042#ifdef CONFIG_XPL_BUILD
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020043/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
Tom Rinidd5b58c2022-12-04 10:04:49 -050044#define CFG_MALLOC_F_ADDR 0x930000
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020045#endif
46
Tom Rini0613c362022-12-04 10:03:50 -050047#define CFG_EXTRA_ENV_SETTINGS BOOTENV
Frieder Schrempf9cab87f2021-09-29 16:42:42 +020048
49#endif /* __KONTRON_MX8MM_CONFIG_H */