1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2007-2010 Michal Simek
5 * Michal SIMEK <monstr@monstr.eu>
11 /* Microblaze is microblaze_0 */
12 #define XILINX_FSL_NUMBER 3
15 /* The following table includes the supported baudrates */
16 # define CFG_SYS_BAUDRATE_TABLE \
17 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
19 /* architecture dependent code */
20 #if defined(CONFIG_CMD_PXE) && defined(CONFIG_CMD_DHCP)
21 #define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
23 #define BOOT_TARGET_DEVICES_PXE(func)
26 #if defined(CONFIG_CMD_DHCP)
27 #define BOOT_TARGET_DEVICES_DHCP(func) func(DHCP, dhcp, na)
29 #define BOOT_TARGET_DEVICES_DHCP(func)
32 #if defined(CONFIG_SPI_FLASH)
33 # define BOOT_TARGET_DEVICES_QSPI(func) func(QSPI, qspi, na)
35 # define BOOT_TARGET_DEVICES_QSPI(func)
38 #if defined(CONFIG_MTD_NOR_FLASH)
39 # define BOOT_TARGET_DEVICES_NOR(func) func(NOR, nor, na)
41 # define BOOT_TARGET_DEVICES_NOR(func)
44 #define BOOTENV_DEV_NOR(devtypeu, devtypel, instance) \
45 "bootcmd_nor=cp.b ${script_offset_nor} ${scriptaddr} ${script_size_f} && " \
46 "echo NOR: Trying to boot script at ${scriptaddr} && " \
47 "source ${scriptaddr}; echo NOR: SCRIPT FAILED: continuing...;\0"
49 #define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
52 #define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
53 "bootcmd_qspi=sf probe 0 0 0 && " \
54 "sf read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
55 "echo QSPI: Trying to boot script at ${scriptaddr} && " \
56 "source ${scriptaddr}; echo QSPI: SCRIPT FAILED: continuing...;\0"
58 #define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
61 #define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
63 #define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
64 "bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && " \
65 "source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;\0"
67 #define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
70 #define BOOT_TARGET_DEVICES(func) \
71 BOOT_TARGET_DEVICES_JTAG(func) \
72 BOOT_TARGET_DEVICES_QSPI(func) \
73 BOOT_TARGET_DEVICES_NOR(func) \
74 BOOT_TARGET_DEVICES_DHCP(func) \
75 BOOT_TARGET_DEVICES_PXE(func)
77 #include <config_distro_bootcmd.h>
79 #ifndef CFG_EXTRA_ENV_SETTINGS
80 #define CFG_EXTRA_ENV_SETTINGS \
83 "mtdparts=mtdparts=flash-0:"\
84 "256k(u-boot),256k(env),3m(kernel),"\
85 "1m(romfs),1m(cramfs),-(fs)\0"\
86 "nc=setenv stdout nc;"\
88 "serial=setenv stdout serial;"\
89 "setenv stdin serial\0"\
90 "script_size_f=0x40000\0"\
96 #define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
98 #endif /* __CONFIG_H */