Convert CONFIG_IMX_VIDEO_SKIP 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_IPADDR           192.168.10.2
20 #define CONFIG_NETMASK          255.255.255.0
21 #define CONFIG_SERVERIP         192.168.10.1
22
23 #define CONFIG_FDTADDR                  0x84000000
24
25 #define MEM_LAYOUT_ENV_SETTINGS \
26         "bootm_size=0x10000000\0" \
27         "fdt_addr_r=0x82000000\0" \
28         "kernel_addr_r=0x81000000\0" \
29         "pxefile_addr_r=0x87100000\0" \
30         "ramdisk_addr_r=0x82100000\0" \
31         "scriptaddr=0x87000000\0"
32
33 #define UBOOT_UPDATE \
34         "update_uboot=nand erase.part u-boot && " \
35                 "nand write ${loadaddr} u-boot ${filesize}\0" \
36
37 #define UBI_BOOTCMD \
38         "ubiargs=ubi.mtd=ubi root=ubi0:rootfs rootfstype=ubifs " \
39         "ubi.fm_autoconvert=1\0" \
40         "ubiboot=run setup; " \
41         "setenv bootargs ${defargs} ${ubiargs} ${mtdparts} "   \
42         "${setupargs} ${vidargs} ${tdxargs}; echo Booting from NAND...; " \
43         "ubi part ubi && " \
44         "ubi read ${kernel_addr_r} kernel && " \
45         "ubi read ${fdt_addr_r} dtb && " \
46         "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
47
48 #define BOOT_TARGET_DEVICES(func) \
49         func(MMC, mmc, 0) \
50         func(USB, usb, 0) \
51         func(DHCP, dhcp, na)
52 #include <config_distro_bootcmd.h>
53 #undef BOOTENV_RUN_NET_USB_START
54 #define BOOTENV_RUN_NET_USB_START ""
55
56 #define DFU_ALT_NAND_INFO "vf-bcb part 0,1;u-boot part 0,2;ubi part 0,4"
57
58 #define CONFIG_EXTRA_ENV_SETTINGS \
59         BOOTENV \
60         MEM_LAYOUT_ENV_SETTINGS \
61         UBI_BOOTCMD \
62         UBOOT_UPDATE \
63         "boot_script_dhcp=boot.scr\0" \
64         "console=ttyLP0\0" \
65         "defargs=user_debug=30\0" \
66         "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \
67         "fdt_board=eval-v3\0" \
68         "fdt_fixup=;\0" \
69         "kernel_image=zImage\0" \
70         "setsdupdate=mmc rescan && set interface mmc && " \
71                 "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
72                 "source ${loadaddr}\0" \
73         "setup=setenv setupargs console=tty1 console=${console}" \
74                 ",${baudrate}n8 ${memargs}\0" \
75         "setupdate=run setsdupdate || run setusbupdate\0" \
76         "setusbupdate=usb start && set interface usb && " \
77                 "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
78                 "source ${loadaddr}\0" \
79         "splashpos=m,m\0" \
80         "video-mode=dcufb:640x480-16@60,monitor=lcd\0"
81
82 /* Miscellaneous configurable options */
83
84 /* Physical memory map */
85 #define PHYS_SDRAM                      (0x80000000)
86 #define PHYS_SDRAM_SIZE                 (256 * SZ_1M)
87
88 #define CFG_SYS_SDRAM_BASE              PHYS_SDRAM
89 #define CFG_SYS_INIT_RAM_ADDR   IRAM_BASE_ADDR
90 #define CFG_SYS_INIT_RAM_SIZE   IRAM_SIZE
91
92 /* USB Host Support */
93
94 /* USB DFU */
95
96 #endif /* __CONFIG_H */