blob: ea5c93ecf6962445e683d27deb7904b31959405f [file] [log] [blame]
Martyn Welch56f96e62022-10-25 10:55:02 +01001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Based on vendor support provided by AVNET Embedded
4 *
5 * Copyright (C) 2021 AVNET Embedded, MSC Technologies GmbH
6 * Copyright 2021 General Electric Company
7 * Copyright 2021 Collabora Ltd.
8 */
9
10#ifndef __MSC_SM2S_IMX8MP_H
11#define __MSC_SM2S_IMX8MP_H
12
13#include <linux/sizes.h>
14#include <linux/stringify.h>
15#include <asm/arch/imx-regs.h>
16
Tom Rini6a5dccc2022-11-16 13:10:41 -050017#define CFG_SYS_UBOOT_BASE (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
Martyn Welch56f96e62022-10-25 10:55:02 +010018
19#if defined(CONFIG_CMD_NET)
Tom Rini4e3c8a62022-12-04 10:03:53 -050020#define CFG_FEC_MXC_PHYADDR 1
Martyn Welch56f96e62022-10-25 10:55:02 +010021#endif
22
23#ifndef CONFIG_SPL_BUILD
24#define BOOT_TARGET_DEVICES(func) \
25 func(MMC, mmc, 1) \
26 func(MMC, mmc, 2)
27
28#include <config_distro_bootcmd.h>
29#endif
30
31/* Initial environment variables */
Tom Rinic9edebe2022-12-04 10:03:50 -050032#define CFG_EXTRA_ENV_SETTINGS \
Martyn Welch56f96e62022-10-25 10:55:02 +010033 BOOTENV \
34 "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
35 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
36 "image=Image\0" \
37 "console=ttymxc1,115200\0" \
Fabio Estevame5d7e2a2024-07-04 09:03:37 -030038 "fdt_addr_r=0x48600000\0" \
Martyn Welch56f96e62022-10-25 10:55:02 +010039 "boot_fdt=try\0" \
40 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
Fabio Estevame5d7e2a2024-07-04 09:03:37 -030041 "initrd_addr=0x48680000\0" \
Martyn Welch56f96e62022-10-25 10:55:02 +010042 "bootm_size=0x10000000\0" \
43 "mmcpart=1\0" \
44 "mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
45
46/* Link Definitions */
47
Tom Rini6a5dccc2022-11-16 13:10:41 -050048#define CFG_SYS_INIT_RAM_ADDR 0x40000000
49#define CFG_SYS_INIT_RAM_SIZE 0x80000
Martyn Welch56f96e62022-10-25 10:55:02 +010050
Tom Rinibb4dd962022-11-16 13:10:37 -050051#define CFG_SYS_SDRAM_BASE 0x40000000
Martyn Welch56f96e62022-10-25 10:55:02 +010052#define PHYS_SDRAM 0x40000000
53#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */
54#define PHYS_SDRAM_2 0xc0000000
55#define PHYS_SDRAM_2_SIZE 0x0
56
Tom Rini8bda02a2022-11-14 07:29:51 -050057#define CFG_SYS_FSL_USDHC_NUM 2
58#define CFG_SYS_FSL_ESDHC_ADDR 0
Martyn Welch56f96e62022-10-25 10:55:02 +010059
60#endif