1 /* 2 * (C) Copyright 2012 Xilinx 3 * (C) Copyright 2017 Opal Kelly Inc. 4 * 5 * Configuration settings for the SYZYGY Hub development board 6 * See zynq-common.h for Zynq common configs 7 * 8 * SPDX-License-Identifier: GPL-2.0+ 9 */ 10 11 #ifndef __CONFIG_SYZYGY_HUB_H 12 #define __CONFIG_SYZYGY_HUB_H 13 14 #define CONFIG_ZYNQ_I2C1 15 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 16 #define CONFIG_ZYNQ_GEM_EEPROM_ADDR 0x57 17 18 #define CONFIG_EXTRA_ENV_SETTINGS \ 19 "fit_image=fit.itb\0" \ 20 "bitstream_image=download.bit\0" \ 21 "loadbit_addr=0x1000000\0" \ 22 "load_addr=0x2000000\0" \ 23 "fit_size=0x800000\0" \ 24 "flash_off=0x100000\0" \ 25 "nor_flash_off=0xE2100000\0" \ 26 "fdt_high=0x20000000\0" \ 27 "initrd_high=0x20000000\0" \ 28 "loadbootenv_addr=0x2000000\0" \ 29 "fdt_addr_r=0x1f00000\0" \ 30 "pxefile_addr_r=0x2000000\0" \ 31 "kernel_addr_r=0x2000000\0" \ 32 "scriptaddr=0x3000000\0" \ 33 "ramdisk_addr_r=0x3100000\0" \ 34 "bootenv=uEnv.txt\0" \ 35 "bootenv_dev=mmc\0" \ 36 "loadbootenv=load ${bootenv_dev} 0 ${loadbootenv_addr} ${bootenv}\0" \ 37 "importbootenv=echo Importing environment from ${bootenv_dev} ...; " \ 38 "env import -t ${loadbootenv_addr} $filesize\0" \ 39 "bootenv_existence_test=test -e ${bootenv_dev} 0 /${bootenv}\0" \ 40 "setbootenv=if env run bootenv_existence_test; then " \ 41 "if env run loadbootenv; then " \ 42 "env run importbootenv; " \ 43 "fi; " \ 44 "fi; \0" \ 45 "sd_loadbootenv=set bootenv_dev mmc && " \ 46 "run setbootenv \0" \ 47 "usb_loadbootenv=set bootenv_dev usb && usb start && run setbootenv\0" \ 48 "preboot=if test $modeboot = sdboot; then " \ 49 "run sd_loadbootenv; " \ 50 "echo Checking if uenvcmd is set ...; " \ 51 "if test -n $uenvcmd; then " \ 52 "echo Running uenvcmd ...; " \ 53 "run uenvcmd; " \ 54 "fi; " \ 55 "fi; \0" \ 56 "sdboot=echo Copying FPGA Bitstream from SD to RAM... && " \ 57 "load mmc 0 ${loadbit_addr} ${bitstream_image} && " \ 58 "echo Programming FPGA... && " \ 59 "fpga loadb 0 ${loadbit_addr} ${filesize} && " \ 60 "echo Copying FIT from SD to RAM... && " \ 61 "load mmc 0 ${load_addr} ${fit_image} && " \ 62 "bootm ${load_addr}\0" \ 63 "jtagboot=echo TFTPing FIT to RAM... && " \ 64 "tftpboot ${load_addr} ${fit_image} && " \ 65 "bootm ${load_addr}\0" \ 66 DFU_ALT_INFO \ 67 BOOTENV 68 69 #include <configs/zynq-common.h> 70 71 #endif /* __CONFIG_SYZYGY_HUB_H */ 72