]> git.ipfire.org Git - thirdparty/u-boot.git/blob - include/configs/topic_miami.h
treewide: mem: Move mtest related defines to Kconfig
[thirdparty/u-boot.git] / include / configs / topic_miami.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * (C) Copyright 2014 Topic Embedded Products
4 *
5 * Configuration for Zynq Evaluation and Development Board - Miami
6 * See zynq-common.h for Zynq common configs
7 */
8
9 #ifndef __CONFIG_TOPIC_MIAMI_H
10 #define __CONFIG_TOPIC_MIAMI_H
11
12
13 /* Speed up boot time by ignoring the environment which we never used */
14
15 #include "zynq-common.h"
16
17 /* Fixup settings */
18
19 /* SPL settings */
20 #undef CONFIG_SPL_ETH_SUPPORT
21 #undef CONFIG_SPL_MAX_FOOTPRINT
22 #define CONFIG_SPL_MAX_FOOTPRINT CONFIG_SYS_SPI_U_BOOT_OFFS
23 #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
24
25 /* sspi command isn't useful */
26 #undef CONFIG_CMD_SPI
27
28 /* No useful gpio */
29 #undef CONFIG_ZYNQ_GPIO
30 #undef CONFIG_CMD_GPIO
31
32 /* No falcon support */
33 #undef CONFIG_SPL_OS_BOOT
34 #undef CONFIG_SPL_FPGA_SUPPORT
35
36 /* FPGA commands that we don't use */
37
38 /* Extras */
39
40 /* Faster flash, ours may run at 108 MHz */
41 #undef CONFIG_SPI_FLASH_WINBOND
42
43 /* Setup proper boot sequences for Miami boards */
44
45 #if defined(CONFIG_USB)
46 # define EXTRA_ENV_USB \
47 "usbreset=i2c dev 1 && i2c mw 41 1 ff && i2c mw 41 3 fe && "\
48 "i2c mw 41 1 fe && i2c mw 41 1 ff\0" \
49 "usbboot=run usbreset && if usb start; then " \
50 "echo Booting from USB... && " \
51 "if load usb 0 0x1900000 ${bootscript}; then "\
52 "source 0x1900000; fi; " \
53 "load usb 0 ${kernel_addr} ${kernel_image} && " \
54 "load usb 0 ${devicetree_addr} ${devicetree_image} && " \
55 "load usb 0 ${ramdisk_load_address} ${ramdisk_image} && " \
56 "bootm ${kernel_addr} ${ramdisk_load_address} "\
57 "${devicetree_addr}; " \
58 "fi\0"
59 /* Note that addresses here should match the addresses in the env */
60 # undef DFU_ALT_INFO
61 # define DFU_ALT_INFO \
62 "dfu_alt_info=" \
63 "uImage ram 0x2080000 0x500000;" \
64 "devicetree.dtb ram 0x2000000 0x20000;" \
65 "uramdisk.image.gz ram 0x4000000 0x10000000\0" \
66 "dfu_ram=run usbreset && dfu 0 ram 0\0" \
67 "thor_ram=run usbreset && thordown 0 ram 0\0"
68 #else
69 # define EXTRA_ENV_USB
70 #endif
71
72 #undef CONFIG_EXTRA_ENV_SETTINGS
73 #define CONFIG_EXTRA_ENV_SETTINGS \
74 "kernel_image=uImage\0" \
75 "kernel_addr=0x2080000\0" \
76 "ramdisk_image=uramdisk.image.gz\0" \
77 "ramdisk_load_address=0x4000000\0" \
78 "devicetree_image=devicetree.dtb\0" \
79 "devicetree_addr=0x2000000\0" \
80 "bitstream_image=fpga.bin\0" \
81 "bootscript=autorun.scr\0" \
82 "loadbit_addr=0x100000\0" \
83 "loadbootenv_addr=0x2000000\0" \
84 "kernel_size=0x440000\0" \
85 "devicetree_size=0x10000\0" \
86 "boot_size=0xF00000\0" \
87 "fdt_high=0x20000000\0" \
88 "initrd_high=0x20000000\0" \
89 "mmc_loadbit=echo Loading bitstream from SD/MMC/eMMC to RAM.. && " \
90 "mmcinfo && " \
91 "load mmc 0 ${loadbit_addr} ${bitstream_image} && " \
92 "fpga load 0 ${loadbit_addr} ${filesize}\0" \
93 "qspiboot=echo Booting from QSPI flash... && " \
94 "sf probe && " \
95 "sf read ${devicetree_addr} 0xA0000 ${devicetree_size} && " \
96 "sf read ${kernel_addr} 0xC0000 ${kernel_size} && " \
97 "bootm ${kernel_addr} - ${devicetree_addr}\0" \
98 "sdboot=if mmcinfo; then " \
99 "setenv bootargs console=ttyPS0,115200 " \
100 "root=/dev/mmcblk0p2 rw rootfstype=ext4 " \
101 "rootwait quiet ; " \
102 "load mmc 0 ${kernel_addr} ${kernel_image}&& " \
103 "load mmc 0 ${devicetree_addr} ${devicetree_image}&& " \
104 "bootm ${kernel_addr} - ${devicetree_addr}; " \
105 "fi\0" \
106 EXTRA_ENV_USB \
107 DFU_ALT_INFO
108
109 #undef CONFIG_BOOTCOMMAND
110 #define CONFIG_BOOTCOMMAND "if mmcinfo; then " \
111 "if fatload mmc 0 0x1900000 ${bootscript}; then source 0x1900000; " \
112 "fi; fi; run $modeboot"
113 #undef CONFIG_DISPLAY_BOARDINFO
114
115 #endif /* __CONFIG_TOPIC_MIAMI_H */