blob: 1cc054a82ba146bb13070dedddd01ba979a6e51d [file] [log] [blame]
Tim Harvey2cb156e2022-02-11 10:48:56 -08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2022 Gateworks Corporation
4 */
5
Tim Harvey94140972022-11-04 08:45:20 -07006#ifndef __IMX8MN_VENICE_H
7#define __IMX8MN_VENICE_H
Tim Harvey2cb156e2022-02-11 10:48:56 -08008
9#include <asm/arch/imx-regs.h>
10#include <linux/sizes.h>
11
Tom Rini65cc0e22022-11-16 13:10:41 -050012#define CFG_SYS_UBOOT_BASE \
Tim Harvey2cb156e2022-02-11 10:48:56 -080013 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
14
Tim Harvey2cb156e2022-02-11 10:48:56 -080015/* Enable Distro Boot */
Tim Harvey2cb156e2022-02-11 10:48:56 -080016#define BOOT_TARGET_DEVICES(func) \
17 func(MMC, mmc, 1) \
18 func(MMC, mmc, 2) \
Tim Harveyc5747362022-04-13 08:42:52 -070019 func(USB, usb, 0) \
Tim Harvey2cb156e2022-02-11 10:48:56 -080020 func(DHCP, dhcp, na)
21#include <config_distro_bootcmd.h>
Tom Rini0613c362022-12-04 10:03:50 -050022#define CFG_EXTRA_ENV_SETTINGS \
Tim Harvey765f6f12022-11-04 08:51:45 -070023 BOOTENV
Tim Harvey2cb156e2022-02-11 10:48:56 -080024
Tom Rini65cc0e22022-11-16 13:10:41 -050025#define CFG_SYS_INIT_RAM_ADDR 0x40000000
26#define CFG_SYS_INIT_RAM_SIZE SZ_2M
Tim Harvey2cb156e2022-02-11 10:48:56 -080027
Tim Harvey3d634b02023-06-23 09:44:17 -070028/* SDRAM configuration: 4GiB */
Tom Riniaa6e94d2022-11-16 13:10:37 -050029#define CFG_SYS_SDRAM_BASE 0x40000000
Tim Harvey3d634b02023-06-23 09:44:17 -070030#define PHYS_SDRAM 0x40000000
31#define PHYS_SDRAM_SIZE 0x80000000 /* 2 GB */
32#define PHYS_SDRAM_2 0xC0000000
33#define PHYS_SDRAM_2_SIZE 0x80000000 /* 2 GB */
Tim Harvey2cb156e2022-02-11 10:48:56 -080034
Tim Harvey2cb156e2022-02-11 10:48:56 -080035#endif