1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2018 Allied Telesis Labs
10 * High Level Configuration Options (easy to change)
13 #define CONFIG_DISPLAY_BOARDINFO_LATE
16 * NS16550 Configuration
18 #define CONFIG_SYS_NS16550_SERIAL
19 #define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
20 #if !defined(CONFIG_DM_SERIAL)
21 #define CONFIG_SYS_NS16550_REG_SIZE (-4)
22 #define CONFIG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE
26 * Serial Port configuration
27 * The following definitions let you select what serial you want to use
28 * for your console driver.
32 #define CONFIG_SYS_NAND_ONFI_DETECTION
33 #define CONFIG_SYS_MAX_NAND_DEVICE 1
35 #define BBT_CUSTOM_SCAN
36 #define BBT_CUSTOM_SCAN_PAGE 0
37 #define BBT_CUSTOM_SCAN_POSITION 2048
39 /* SPI NOR flash default params, used by sf commands */
41 #define MTDIDS_DEFAULT "nand0=nand"
42 #define MTDPARTS_DEFAULT "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
43 #define MTDPARTS_MTDOOPS "errlog"
45 /* Partition support */
47 /* Additional FS support/configuration */
49 /* USB/EHCI configuration */
50 #define CONFIG_EHCI_IS_TDI
52 /* Environment in SPI NOR flash */
54 #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
57 #ifndef CONFIG_SPL_BUILD
58 #define CONFIG_PCI_SCAN_SHOW
62 #define CONFIG_SYS_NAND_ONFI_DETECTION
64 #include <asm/arch/config.h>
67 * Other required minimal configurations
69 #define CONFIG_SYS_RESET_ADDRESS 0xffff0000 /* Rst Vector Adr */
71 /* Keep device tree and initrd in low memory so the kernel can access them */
72 #define CONFIG_EXTRA_ENV_SETTINGS \
73 "fdt_high=0x10000000\0" \
74 "initrd_high=0x10000000\0"
76 #define CONFIG_UBI_PART user
77 #define CONFIG_UBIFS_VOLUME user
82 #define CONFIG_SPL_SIZE (140 << 10)
83 #define CONFIG_SPL_MAX_SIZE (CONFIG_SPL_SIZE - 0x0030)
85 #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + CONFIG_SPL_SIZE)
86 #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10)
88 #ifdef CONFIG_SPL_BUILD
89 #define CONFIG_SYS_MALLOC_SIMPLE
92 #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10))
93 #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4)
95 #endif /* _CONFIG_X530_H */