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 #ifdef CONFIG_CFI_FLASH
21 /* max number of memory banks */
22 /* max number of sectors on one chip */
23 # define CONFIG_SYS_MAX_FLASH_SECT 2048
26 #define CONFIG_HOSTNAME "microblaze-generic"
28 /* architecture dependent code */
29 #if defined(CONFIG_CMD_PXE) && defined(CONFIG_CMD_DHCP)
30 #define BOOT_TARGET_DEVICES_PXE(func) func(PXE, pxe, na)
32 #define BOOT_TARGET_DEVICES_PXE(func)
35 #if defined(CONFIG_CMD_DHCP)
36 #define BOOT_TARGET_DEVICES_DHCP(func) func(DHCP, dhcp, na)
38 #define BOOT_TARGET_DEVICES_DHCP(func)
41 #if defined(CONFIG_SPI_FLASH)
42 # define BOOT_TARGET_DEVICES_QSPI(func) func(QSPI, qspi, na)
44 # define BOOT_TARGET_DEVICES_QSPI(func)
47 #if defined(CONFIG_MTD_NOR_FLASH)
48 # define BOOT_TARGET_DEVICES_NOR(func) func(NOR, nor, na)
50 # define BOOT_TARGET_DEVICES_NOR(func)
53 #define BOOTENV_DEV_NOR(devtypeu, devtypel, instance) \
54 "bootcmd_nor=cp.b ${script_offset_nor} ${scriptaddr} ${script_size_f} && " \
55 "echo NOR: Trying to boot script at ${scriptaddr} && " \
56 "source ${scriptaddr}; echo NOR: SCRIPT FAILED: continuing...;\0"
58 #define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
61 #define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
62 "bootcmd_qspi=sf probe 0 0 0 && " \
63 "sf read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
64 "echo QSPI: Trying to boot script at ${scriptaddr} && " \
65 "source ${scriptaddr}; echo QSPI: SCRIPT FAILED: continuing...;\0"
67 #define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
70 #define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
72 #define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
73 "bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && " \
74 "source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;\0"
76 #define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
79 #define BOOT_TARGET_DEVICES(func) \
80 BOOT_TARGET_DEVICES_JTAG(func) \
81 BOOT_TARGET_DEVICES_QSPI(func) \
82 BOOT_TARGET_DEVICES_NOR(func) \
83 BOOT_TARGET_DEVICES_DHCP(func) \
84 BOOT_TARGET_DEVICES_PXE(func)
86 #include <config_distro_bootcmd.h>
88 #ifndef CONFIG_EXTRA_ENV_SETTINGS
89 #define CONFIG_EXTRA_ENV_SETTINGS \
92 "mtdparts=mtdparts=flash-0:"\
93 "256k(u-boot),256k(env),3m(kernel),"\
94 "1m(romfs),1m(cramfs),-(jffs2)\0"\
95 "nc=setenv stdout nc;"\
97 "serial=setenv stdout serial;"\
98 "setenv stdin serial\0"\
99 "script_size_f=0x40000\0"\
105 #define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE
107 /* SP location before relocation, must use scratch RAM */
109 #define CONFIG_SYS_INIT_RAM_ADDR 0x0
110 /* BRAM size - will be generated */
111 #define CONFIG_SYS_INIT_RAM_SIZE 0x100000
113 #endif /* __CONFIG_H */