0add626e81a5bc3dd0516c69fd385a2f423a27dd
[platform/kernel/u-boot.git] / include / configs / x530.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2018 Allied Telesis Labs
4  */
5
6 #ifndef _CONFIG_X530_H
7 #define _CONFIG_X530_H
8
9 /*
10  * High Level Configuration Options (easy to change)
11  */
12
13 /*
14  * NS16550 Configuration
15  */
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
21 #endif
22
23 /*
24  * Serial Port configuration
25  * The following definitions let you select what serial you want to use
26  * for your console driver.
27  */
28
29 /* NAND */
30
31 #define BBT_CUSTOM_SCAN
32 #define BBT_CUSTOM_SCAN_PAGE 0
33 #define BBT_CUSTOM_SCAN_POSITION 2048
34
35 /* SPI NOR flash default params, used by sf commands */
36
37 #define MTDIDS_DEFAULT                  "nand0=nand"
38 #define MTDPARTS_DEFAULT                "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
39 #define MTDPARTS_MTDOOPS                "errlog"
40
41 /* Partition support */
42
43 /* Additional FS support/configuration */
44
45 /* Environment in SPI NOR flash */
46
47 #define PHY_ANEG_TIMEOUT        8000    /* PHY needs a longer aneg time */
48
49 /* NAND */
50
51 #include <asm/arch/config.h>
52
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"
57
58 #define CONFIG_UBI_PART                 user
59 #define CONFIG_UBIFS_VOLUME             user
60
61 #endif /* _CONFIG_X530_H */