1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2019 Toradex
6 #ifndef __COLIBRI_IMX8X_H
7 #define __COLIBRI_IMX8X_H
9 #include <asm/arch/imx-regs.h>
10 #include <linux/sizes.h>
12 #define MEM_LAYOUT_ENV_SETTINGS \
13 "fdt_addr_r=0x9d400000\0" \
14 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
15 "kernel_comp_addr_r=0xb0000000\0" \
16 "kernel_comp_size=0x08000000\0" \
17 "ramdisk_addr_r=0x9d500000\0" \
18 "scriptaddr=0x9d480000\0"
22 "m4_0_image=m4_0.bin\0" \
23 "loadm4image_0=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4_0_image}\0" \
24 "m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0\0"
26 /* Enable Distro Boot */
27 #define BOOT_TARGET_DEVICES(func) \
31 #include <config_distro_bootcmd.h>
33 /* Initial environment variables */
34 #define CFG_EXTRA_ENV_SETTINGS \
37 MEM_LAYOUT_ENV_SETTINGS \
38 "boot_script_dhcp=boot.scr\0" \
40 "fdt_board=eval-v3\0" \
41 "initrd_addr=0x83800000\0" \
42 "initrd_high=0xffffffffffffffff\0" \
43 "update_uboot=askenv confirm Did you load flash.bin resp. u-boot-dtb.imx (y/N)?; " \
44 "if test \"$confirm\" = \"y\"; then " \
45 "setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt " \
46 "${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x0 " \
49 #define CFG_SYS_SDRAM_BASE 0x80000000
50 #define PHYS_SDRAM_1 0x80000000
51 #define PHYS_SDRAM_2 0x880000000
52 #define PHYS_SDRAM_1_SIZE SZ_2G /* 2 GB */
53 #define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 GB */
55 #endif /* __COLIBRI_IMX8X_H */