Convert CONFIG_HOSTNAME et al to Kconfig
[platform/kernel/u-boot.git] / include / configs / colibri_vf.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2015-2019 Toradex, Inc.
4  *
5  * Configuration settings for the Toradex VF50/VF61 modules.
6  *
7  * Based on vf610twr.h:
8  * Copyright 2013 Freescale Semiconductor, Inc.
9  */
10
11 #ifndef __CONFIG_H
12 #define __CONFIG_H
13
14 #include <asm/arch/imx-regs.h>
15 #include <linux/sizes.h>
16
17 /* NAND support */
18
19 #define CONFIG_FDTADDR                  0x84000000
20
21 #define MEM_LAYOUT_ENV_SETTINGS \
22         "bootm_size=0x10000000\0" \
23         "fdt_addr_r=0x82000000\0" \
24         "kernel_addr_r=0x81000000\0" \
25         "pxefile_addr_r=0x87100000\0" \
26         "ramdisk_addr_r=0x82100000\0" \
27         "scriptaddr=0x87000000\0"
28
29 #define UBOOT_UPDATE \
30         "update_uboot=nand erase.part u-boot && " \
31                 "nand write ${loadaddr} u-boot ${filesize}\0" \
32
33 #define UBI_BOOTCMD \
34         "ubiargs=ubi.mtd=ubi root=ubi0:rootfs rootfstype=ubifs " \
35         "ubi.fm_autoconvert=1\0" \
36         "ubiboot=run setup; " \
37         "setenv bootargs ${defargs} ${ubiargs} ${mtdparts} "   \
38         "${setupargs} ${vidargs} ${tdxargs}; echo Booting from NAND...; " \
39         "ubi part ubi && " \
40         "ubi read ${kernel_addr_r} kernel && " \
41         "ubi read ${fdt_addr_r} dtb && " \
42         "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
43
44 #define BOOT_TARGET_DEVICES(func) \
45         func(MMC, mmc, 0) \
46         func(USB, usb, 0) \
47         func(DHCP, dhcp, na)
48 #include <config_distro_bootcmd.h>
49 #undef BOOTENV_RUN_NET_USB_START
50 #define BOOTENV_RUN_NET_USB_START ""
51
52 #define DFU_ALT_NAND_INFO "vf-bcb part 0,1;u-boot part 0,2;ubi part 0,4"
53
54 #define CONFIG_EXTRA_ENV_SETTINGS \
55         BOOTENV \
56         MEM_LAYOUT_ENV_SETTINGS \
57         UBI_BOOTCMD \
58         UBOOT_UPDATE \
59         "boot_script_dhcp=boot.scr\0" \
60         "console=ttyLP0\0" \
61         "defargs=user_debug=30\0" \
62         "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \
63         "fdt_board=eval-v3\0" \
64         "fdt_fixup=;\0" \
65         "kernel_image=zImage\0" \
66         "setsdupdate=mmc rescan && set interface mmc && " \
67                 "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
68                 "source ${loadaddr}\0" \
69         "setup=setenv setupargs console=tty1 console=${console}" \
70                 ",${baudrate}n8 ${memargs}\0" \
71         "setupdate=run setsdupdate || run setusbupdate\0" \
72         "setusbupdate=usb start && set interface usb && " \
73                 "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
74                 "source ${loadaddr}\0" \
75         "splashpos=m,m\0" \
76         "video-mode=dcufb:640x480-16@60,monitor=lcd\0"
77
78 /* Miscellaneous configurable options */
79
80 /* Physical memory map */
81 #define PHYS_SDRAM                      (0x80000000)
82 #define PHYS_SDRAM_SIZE                 (256 * SZ_1M)
83
84 #define CFG_SYS_SDRAM_BASE              PHYS_SDRAM
85 #define CFG_SYS_INIT_RAM_ADDR   IRAM_BASE_ADDR
86 #define CFG_SYS_INIT_RAM_SIZE   IRAM_SIZE
87
88 /* USB Host Support */
89
90 /* USB DFU */
91
92 #endif /* __CONFIG_H */