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 CONFIG_SYS_BAUDRATE_TABLE \
17 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
19 #define CONFIG_HOSTNAME "microblaze-generic"
21 /* architecture dependent code */
22 #if defined(CONFIG_CMD_PXE) && defined(CONFIG_CMD_DHCP)
23 #define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
25 #define BOOT_TARGET_DEVICES_PXE(func)
28 #if defined(CONFIG_CMD_DHCP)
29 #define BOOT_TARGET_DEVICES_DHCP(func) func(DHCP, dhcp, na)
31 #define BOOT_TARGET_DEVICES_DHCP(func)
34 #if defined(CONFIG_SPI_FLASH)
35 # define BOOT_TARGET_DEVICES_QSPI(func) func(QSPI, qspi, na)
37 # define BOOT_TARGET_DEVICES_QSPI(func)
40 #if defined(CONFIG_MTD_NOR_FLASH)
41 # define BOOT_TARGET_DEVICES_NOR(func) func(NOR, nor, na)
43 # define BOOT_TARGET_DEVICES_NOR(func)
46 #define BOOTENV_DEV_NOR(devtypeu, devtypel, instance) \
47 "bootcmd_nor=cp.b ${script_offset_nor} ${scriptaddr} ${script_size_f} && " \
48 "echo NOR: Trying to boot script at ${scriptaddr} && " \
49 "source ${scriptaddr}; echo NOR: SCRIPT FAILED: continuing...;\0"
51 #define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
54 #define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
55 "bootcmd_qspi=sf probe 0 0 0 && " \
56 "sf read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
57 "echo QSPI: Trying to boot script at ${scriptaddr} && " \
58 "source ${scriptaddr}; echo QSPI: SCRIPT FAILED: continuing...;\0"
60 #define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
63 #define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
65 #define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
66 "bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && " \
67 "source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;\0"
69 #define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
72 #define BOOT_TARGET_DEVICES(func) \
73 BOOT_TARGET_DEVICES_JTAG(func) \
74 BOOT_TARGET_DEVICES_QSPI(func) \
75 BOOT_TARGET_DEVICES_NOR(func) \
76 BOOT_TARGET_DEVICES_DHCP(func) \
77 BOOT_TARGET_DEVICES_PXE(func)
79 #include <config_distro_bootcmd.h>
81 #ifndef CONFIG_EXTRA_ENV_SETTINGS
82 #define CONFIG_EXTRA_ENV_SETTINGS \
85 "mtdparts=mtdparts=flash-0:"\
86 "256k(u-boot),256k(env),3m(kernel),"\
87 "1m(romfs),1m(cramfs),-(jffs2)\0"\
88 "nc=setenv stdout nc;"\
90 "serial=setenv stdout serial;"\
91 "setenv stdin serial\0"\
92 "script_size_f=0x40000\0"\
98 #define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE
100 #endif /* __CONFIG_H */