]> Git Repo - u-boot.git/blame - include/configs/imx8mm_venice.h
Convert CONFIG_SYS_MONITOR_LEN to Kconfig
[u-boot.git] / include / configs / imx8mm_venice.h
CommitLineData
03bf8436
TH
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
03bf8436
TH
12#define CONFIG_SYS_UBOOT_BASE \
13 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
14
15#ifdef CONFIG_SPL_BUILD
03bf8436
TH
16/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
17#define CONFIG_MALLOC_F_ADDR 0x930000
18/* For RAW image gives a error info not panic */
03bf8436
TH
19
20#endif
21
22#define MEM_LAYOUT_ENV_SETTINGS \
fd5c7173
TH
23 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
24 "fdt_addr_r=0x50200000\0" \
25 "scriptaddr=0x50280000\0" \
26 "ramdisk_addr_r=0x50300000\0" \
27 "kernel_comp_addr_r=0x40200000\0"
03bf8436 28
03bf8436 29/* Enable Distro Boot */
03bf8436
TH
30#define BOOT_TARGET_DEVICES(func) \
31 func(MMC, mmc, 1) \
32 func(MMC, mmc, 2) \
c5747369
TH
33 func(USB, usb, 0) \
34 func(USB, usb, 1) \
03bf8436
TH
35 func(DHCP, dhcp, na)
36#include <config_distro_bootcmd.h>
03bf8436
TH
37
38/* Initial environment variables */
39#define CONFIG_EXTRA_ENV_SETTINGS \
40 BOOTENV \
41 MEM_LAYOUT_ENV_SETTINGS \
42 "script=boot.scr\0" \
43 "bootm_size=0x10000000\0" \
03bf8436
TH
44 "dev=2\0" \
45 "preboot=gsc wd-disable\0" \
46 "console=ttymxc1,115200\0" \
47 "update_firmware=" \
48 "tftpboot $loadaddr $image && " \
49 "setexpr blkcnt $filesize + 0x1ff && " \
50 "setexpr blkcnt $blkcnt / 0x200 && " \
51 "mmc dev $dev && " \
52 "mmc write $loadaddr 0x42 $blkcnt\0" \
f3722dd6
TH
53 "loadfdt=" \
54 "if $fsload $fdt_addr_r $dir/$fdt_file1; " \
55 "then echo loaded $fdt_file1; " \
56 "elif $fsload $fdt_addr_r $dir/$fdt_file2; " \
57 "then echo loaded $fdt_file2; " \
58 "elif $fsload $fdt_addr_r $dir/$fdt_file3; " \
59 "then echo loaded $fdt_file3; " \
60 "elif $fsload $fdt_addr_r $dir/$fdt_file4; " \
61 "then echo loaded $fdt_file4; " \
62 "elif $fsload $fdt_addr_r $dir/$fdt_file5; " \
63 "then echo loaded $fdt_file5; " \
64 "fi\0" \
03bf8436 65 "boot_net=" \
f3722dd6
TH
66 "setenv fsload tftpboot; " \
67 "run loadfdt && tftpboot $kernel_addr_r $dir/Image && " \
68 "booti $kernel_addr_r - $fdt_addr_r\0" \
03bf8436
TH
69 "update_rootfs=" \
70 "tftpboot $loadaddr $image && " \
71 "gzwrite mmc $dev $loadaddr $filesize 100000 1000000\0" \
72 "update_all=" \
73 "tftpboot $loadaddr $image && " \
74 "gzwrite mmc $dev $loadaddr $filesize\0" \
75 "erase_env=mmc dev $dev; mmc erase 0x7f08 0x40\0"
76
77#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
78#define CONFIG_SYS_INIT_RAM_SIZE SZ_2M
03bf8436 79
03bf8436
TH
80#define CONFIG_SYS_SDRAM_BASE 0x40000000
81
82/* SDRAM configuration */
83#define PHYS_SDRAM 0x40000000
52ae8d6c 84#define PHYS_SDRAM_SIZE SZ_4G
03bf8436 85
6889412a
TR
86/* FEC */
87#define CONFIG_FEC_MXC_PHYADDR 0
88#define FEC_QUIRK_ENET_MAC
03bf8436 89
03bf8436 90#endif
This page took 0.133268 seconds and 4 git commands to generate.