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