Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2022 Gateworks Corporation |
| 4 | */ |
| 5 | |
Tim Harvey | 9414097 | 2022-11-04 08:45:20 -0700 | [diff] [blame] | 6 | #ifndef __IMX8MN_VENICE_H |
| 7 | #define __IMX8MN_VENICE_H |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 8 | |
| 9 | #include <asm/arch/imx-regs.h> |
| 10 | #include <linux/sizes.h> |
| 11 | |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 12 | #define CFG_SYS_UBOOT_BASE \ |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 13 | (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) |
| 14 | |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 15 | /* Enable Distro Boot */ |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 16 | #define BOOT_TARGET_DEVICES(func) \ |
| 17 | func(MMC, mmc, 1) \ |
| 18 | func(MMC, mmc, 2) \ |
Tim Harvey | c574736 | 2022-04-13 08:42:52 -0700 | [diff] [blame] | 19 | func(USB, usb, 0) \ |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 20 | func(DHCP, dhcp, na) |
| 21 | #include <config_distro_bootcmd.h> |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 22 | #define CFG_EXTRA_ENV_SETTINGS \ |
Tim Harvey | 765f6f1 | 2022-11-04 08:51:45 -0700 | [diff] [blame] | 23 | BOOTENV |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 24 | |
Tom Rini | 65cc0e2 | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 25 | #define CFG_SYS_INIT_RAM_ADDR 0x40000000 |
| 26 | #define CFG_SYS_INIT_RAM_SIZE SZ_2M |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 27 | |
Tim Harvey | 3d634b0 | 2023-06-23 09:44:17 -0700 | [diff] [blame] | 28 | /* SDRAM configuration: 4GiB */ |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 29 | #define CFG_SYS_SDRAM_BASE 0x40000000 |
Tim Harvey | 3d634b0 | 2023-06-23 09:44:17 -0700 | [diff] [blame] | 30 | #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 Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 34 | |
Tim Harvey | 2cb156e | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 35 | #endif |