1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2018 Allied Telesis Labs
10 * High Level Configuration Options (easy to change)
14 * NS16550 Configuration
16 #define CONFIG_SYS_NS16550_SERIAL
17 #define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
18 #if !defined(CONFIG_DM_SERIAL)
19 #define CONFIG_SYS_NS16550_REG_SIZE (-4)
20 #define CONFIG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE
24 * Serial Port configuration
25 * The following definitions let you select what serial you want to use
26 * for your console driver.
31 #define BBT_CUSTOM_SCAN
32 #define BBT_CUSTOM_SCAN_PAGE 0
33 #define BBT_CUSTOM_SCAN_POSITION 2048
35 /* SPI NOR flash default params, used by sf commands */
37 #define MTDIDS_DEFAULT "nand0=nand"
38 #define MTDPARTS_DEFAULT "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
39 #define MTDPARTS_MTDOOPS "errlog"
41 /* Partition support */
43 /* Additional FS support/configuration */
45 /* Environment in SPI NOR flash */
47 #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
51 #include <asm/arch/config.h>
53 /* Keep device tree and initrd in low memory so the kernel can access them */
54 #define CONFIG_EXTRA_ENV_SETTINGS \
55 "fdt_high=0x10000000\0" \
56 "initrd_high=0x10000000\0"
58 #define CONFIG_UBI_PART user
59 #define CONFIG_UBIFS_VOLUME user
61 #endif /* _CONFIG_X530_H */