1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2021 Gateworks Corporation
4 */
5
6#ifndef __IMX8MM_VENICE_H
7#define __IMX8MM_VENICE_H
8
9#include <asm/arch/imx-regs.h>
10#include <linux/sizes.h>
11
12#define CFG_SYS_UBOOT_BASE	\
13	(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
14
15#ifdef CONFIG_SPL_BUILD
16/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
17#define CFG_MALLOC_F_ADDR		0x930000
18#endif
19
20/* Enable Distro Boot */
21#define BOOT_TARGET_DEVICES(func) \
22	func(MMC, mmc, 1) \
23	func(MMC, mmc, 2) \
24	func(USB, usb, 0) \
25	func(USB, usb, 1) \
26	func(DHCP, dhcp, na)
27#include <config_distro_bootcmd.h>
28#define CFG_EXTRA_ENV_SETTINGS \
29	BOOTENV
30
31#define CFG_SYS_INIT_RAM_ADDR        0x40000000
32#define CFG_SYS_INIT_RAM_SIZE        SZ_2M
33
34/* SDRAM configuration: 4GiB */
35#define CFG_SYS_SDRAM_BASE           0x40000000
36#define PHYS_SDRAM                   0x40000000
37#define PHYS_SDRAM_SIZE              0x80000000      /* 2 GB */
38#define PHYS_SDRAM_2                 0xC0000000
39#define PHYS_SDRAM_2_SIZE            0x80000000      /* 2 GB */
40
41#endif
42