configs: imx8mn_venice.h: remove unused ifdef
[platform/kernel/u-boot.git] / include / configs / imx8mp_venice.h
1 /* 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
12 #define CONFIG_SYS_MONITOR_LEN          SZ_512K
13 #define CONFIG_SYS_UBOOT_BASE   \
14         (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
15
16 #define MEM_LAYOUT_ENV_SETTINGS \
17         "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
18         "fdt_addr_r=0x50200000\0" \
19         "scriptaddr=0x50280000\0" \
20         "ramdisk_addr_r=0x50300000\0" \
21         "kernel_comp_addr_r=0x40200000\0"
22
23 /* Enable Distro Boot */
24 #define BOOT_TARGET_DEVICES(func) \
25         func(MMC, mmc, 1) \
26         func(MMC, mmc, 2) \
27         func(USB, usb, 0) \
28         func(DHCP, dhcp, na)
29 #include <config_distro_bootcmd.h>
30
31 /* Initial environment variables */
32 #define CONFIG_EXTRA_ENV_SETTINGS \
33         BOOTENV \
34         MEM_LAYOUT_ENV_SETTINGS \
35         "script=boot.scr\0" \
36         "bootm_size=0x10000000\0" \
37         "dev=2\0" \
38         "preboot=gsc wd-disable\0" \
39         "console=ttymxc1,115200\0" \
40         "update_firmware=" \
41                 "tftpboot $loadaddr $image && " \
42                 "setexpr blkcnt $filesize + 0x1ff && " \
43                 "setexpr blkcnt $blkcnt / 0x200 && " \
44                 "mmc dev $dev && " \
45                 "mmc write $loadaddr 0x40 $blkcnt\0" \
46         "loadfdt=" \
47                 "if $fsload $fdt_addr_r $dir/$fdt_file1; " \
48                         "then echo loaded $fdt_file1; " \
49                 "elif $fsload $fdt_addr_r $dir/$fdt_file2; " \
50                         "then echo loaded $fdt_file2; " \
51                 "elif $fsload $fdt_addr_r $dir/$fdt_file3; " \
52                         "then echo loaded $fdt_file3; " \
53                 "elif $fsload $fdt_addr_r $dir/$fdt_file4; " \
54                         "then echo loaded $fdt_file4; " \
55                 "elif $fsload $fdt_addr_r $dir/$fdt_file5; " \
56                         "then echo loaded $fdt_file5; " \
57                 "fi\0" \
58         "boot_net=" \
59                 "setenv fsload tftpboot; " \
60                 "run loadfdt && tftpboot $kernel_addr_r $dir/Image && " \
61                 "booti $kernel_addr_r - $fdt_addr_r\0" \
62         "update_rootfs=" \
63                 "tftpboot $loadaddr $image && " \
64                 "gzwrite mmc $dev $loadaddr $filesize 100000 1000000\0" \
65         "update_all=" \
66                 "tftpboot $loadaddr $image && " \
67                 "gzwrite mmc $dev $loadaddr $filesize\0" \
68         "erase_env=mmc dev $dev; mmc erase 0x7f08 0x40\0"
69
70 #define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
71 #define CONFIG_SYS_INIT_RAM_SIZE        SZ_2M
72
73 #define CONFIG_SYS_SDRAM_BASE           0x40000000
74
75 /* SDRAM configuration */
76 #define PHYS_SDRAM                      0x40000000
77 #define PHYS_SDRAM_SIZE                 SZ_4G
78
79 #endif