blob: 81144300885f2db6345389f991e3cfab0aafa464 [file] [log] [blame]
Tim Harvey0f5717f2022-04-13 11:31:09 -07001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2022 Gateworks Corporation
4 */
5
6#ifndef __IMX8MP_VENICE_H
7#define __IMX8MP_VENICE_H
8
9#include <asm/arch/imx-regs.h>
10#include <linux/sizes.h>
11
Tom Rini6a5dccc2022-11-16 13:10:41 -050012#define CFG_SYS_UBOOT_BASE \
Tim Harvey0f5717f2022-04-13 11:31:09 -070013 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
14
Tim Harvey0f5717f2022-04-13 11:31:09 -070015/* Enable Distro Boot */
Tim Harvey0f5717f2022-04-13 11:31:09 -070016#define BOOT_TARGET_DEVICES(func) \
17 func(MMC, mmc, 1) \
18 func(MMC, mmc, 2) \
19 func(USB, usb, 0) \
Tim Harvey14697fb2024-06-19 14:13:58 -070020 func(NVME, nvme, 0) \
Tim Harvey0f5717f2022-04-13 11:31:09 -070021 func(DHCP, dhcp, na)
22#include <config_distro_bootcmd.h>
Tom Rinic9edebe2022-12-04 10:03:50 -050023#define CFG_EXTRA_ENV_SETTINGS \
Tim Harvey942bf432022-11-04 08:51:45 -070024 BOOTENV
Tim Harvey0f5717f2022-04-13 11:31:09 -070025
Tom Rini6a5dccc2022-11-16 13:10:41 -050026#define CFG_SYS_INIT_RAM_ADDR 0x40000000
27#define CFG_SYS_INIT_RAM_SIZE SZ_2M
Tim Harvey0f5717f2022-04-13 11:31:09 -070028
Tim Harvey55475292023-06-23 09:44:17 -070029/* SDRAM configuration: 4GiB */
Tom Rinibb4dd962022-11-16 13:10:37 -050030#define CFG_SYS_SDRAM_BASE 0x40000000
Tim Harvey55475292023-06-23 09:44:17 -070031#define PHYS_SDRAM 0x40000000
32#define PHYS_SDRAM_SIZE 0x80000000 /* 2 GB */
33#define PHYS_SDRAM_2 0xC0000000
34#define PHYS_SDRAM_2_SIZE 0x80000000 /* 2 GB */
Tim Harvey0f5717f2022-04-13 11:31:09 -070035
Tim Harvey0f5717f2022-04-13 11:31:09 -070036#endif