2019-12-30 17:46:21 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright 2019 NXP
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IMX8MP_EVK_H
|
|
|
|
#define __IMX8MP_EVK_H
|
|
|
|
|
|
|
|
#include <linux/sizes.h>
|
2020-05-11 01:40:09 +08:00
|
|
|
#include <linux/stringify.h>
|
2019-12-30 17:46:21 +08:00
|
|
|
#include <asm/arch/imx-regs.h>
|
|
|
|
|
2022-11-17 02:10:41 +08:00
|
|
|
#define CFG_SYS_UBOOT_BASE (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
|
2019-12-30 17:46:21 +08:00
|
|
|
|
2020-12-25 16:16:34 +08:00
|
|
|
#if defined(CONFIG_CMD_NET)
|
2022-12-04 23:03:53 +08:00
|
|
|
#define CFG_FEC_MXC_PHYADDR 1
|
2020-12-25 16:16:34 +08:00
|
|
|
|
|
|
|
#define PHY_ANEG_TIMEOUT 20000
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2020-12-18 15:19:26 +08:00
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(MMC, mmc, 1) \
|
|
|
|
func(MMC, mmc, 2)
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
2019-12-30 17:46:21 +08:00
|
|
|
/* Initial environment variables */
|
2022-12-04 23:03:50 +08:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2020-12-18 15:19:26 +08:00
|
|
|
BOOTENV \
|
2021-08-23 22:25:30 +08:00
|
|
|
"scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
|
|
|
"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
2019-12-30 17:46:21 +08:00
|
|
|
"image=Image\0" \
|
|
|
|
"console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200\0" \
|
2021-03-19 15:56:58 +08:00
|
|
|
"fdt_addr_r=0x43000000\0" \
|
2019-12-30 17:46:21 +08:00
|
|
|
"boot_fdt=try\0" \
|
2021-03-19 15:56:58 +08:00
|
|
|
"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
|
2019-12-30 17:46:21 +08:00
|
|
|
"initrd_addr=0x43800000\0" \
|
2020-08-21 21:39:43 +08:00
|
|
|
"bootm_size=0x10000000\0" \
|
2021-12-12 03:55:52 +08:00
|
|
|
"mmcpart=1\0" \
|
2022-04-15 12:23:41 +08:00
|
|
|
"mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
|
2019-12-30 17:46:21 +08:00
|
|
|
|
|
|
|
/* Link Definitions */
|
|
|
|
|
2022-11-17 02:10:41 +08:00
|
|
|
#define CFG_SYS_INIT_RAM_ADDR 0x40000000
|
|
|
|
#define CFG_SYS_INIT_RAM_SIZE 0x80000
|
2019-12-30 17:46:21 +08:00
|
|
|
|
|
|
|
|
2022-11-28 19:45:31 +08:00
|
|
|
/* Totally 6GB DDR */
|
2022-11-17 02:10:37 +08:00
|
|
|
#define CFG_SYS_SDRAM_BASE 0x40000000
|
2019-12-30 17:46:21 +08:00
|
|
|
#define PHYS_SDRAM 0x40000000
|
2022-11-28 19:45:31 +08:00
|
|
|
#define PHYS_SDRAM_SIZE 0xC0000000 /* 3 GB */
|
|
|
|
#define PHYS_SDRAM_2 0x100000000
|
|
|
|
#define PHYS_SDRAM_2_SIZE 0xC0000000 /* 3 GB */
|
2019-12-30 17:46:21 +08:00
|
|
|
|
|
|
|
#endif
|