Merge tag 'xilinx-for-v2020.10' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[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 #define CONFIG_DISPLAY_BOARDINFO_LATE
14
15 #define CONFIG_SYS_TCLK         250000000       /* 250MHz */
16
17 /*
18  * NS16550 Configuration
19  */
20 #define CONFIG_SYS_NS16550_SERIAL
21 #define CONFIG_SYS_NS16550_CLK          CONFIG_SYS_TCLK
22 #if !defined(CONFIG_DM_SERIAL)
23 #define CONFIG_SYS_NS16550_REG_SIZE     (-4)
24 #define CONFIG_SYS_NS16550_COM1         MV_UART_CONSOLE_BASE
25 #endif
26
27 /*
28  * Serial Port configuration
29  * The following definitions let you select what serial you want to use
30  * for your console driver.
31  */
32
33 #define CONFIG_CONS_INDEX       1       /*Console on UART0 */
34
35 /* NAND */
36 #define CONFIG_SYS_NAND_ONFI_DETECTION
37 #define CONFIG_SYS_MAX_NAND_DEVICE 1
38
39 #define BBT_CUSTOM_SCAN
40 #define BBT_CUSTOM_SCAN_PAGE 0
41 #define BBT_CUSTOM_SCAN_POSITION 2048
42
43 /* SPI NOR flash default params, used by sf commands */
44
45 #define MTDIDS_DEFAULT                  "nand0=nand"
46 #define MTDPARTS_DEFAULT                "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
47 #define MTDPARTS_MTDOOPS                "errlog"
48
49 /* Partition support */
50
51 /* Additional FS support/configuration */
52
53 /* USB/EHCI configuration */
54 #define CONFIG_EHCI_IS_TDI
55
56 /* Environment in SPI NOR flash */
57
58 #define PHY_ANEG_TIMEOUT        8000    /* PHY needs a longer aneg time */
59
60 /* PCIe support */
61 #ifndef CONFIG_SPL_BUILD
62 #define CONFIG_PCI_SCAN_SHOW
63 #endif
64
65 /* NAND */
66 #define CONFIG_SYS_NAND_ONFI_DETECTION
67
68 #define CONFIG_SYS_MALLOC_LEN           (4 << 20)
69
70 #include <asm/arch/config.h>
71
72 /*
73  * Other required minimal configurations
74  */
75 #define CONFIG_SYS_RESET_ADDRESS 0xffff0000     /* Rst Vector Adr */
76
77 /* Keep device tree and initrd in low memory so the kernel can access them */
78 #define CONFIG_EXTRA_ENV_SETTINGS       \
79         "fdt_high=0x10000000\0"         \
80         "initrd_high=0x10000000\0"
81
82 #define CONFIG_SYS_LOAD_ADDR    0x1000000
83 #define CONFIG_UBI_PART                 user
84 #define CONFIG_UBIFS_VOLUME             user
85
86 /* SPL */
87
88 /* Defines for SPL */
89 #define CONFIG_SPL_SIZE                 (140 << 10)
90 #define CONFIG_SPL_MAX_SIZE             (CONFIG_SPL_SIZE - 0x0030)
91
92 #define CONFIG_SPL_BSS_START_ADDR       (0x40000000 + CONFIG_SPL_SIZE)
93 #define CONFIG_SPL_BSS_MAX_SIZE         (16 << 10)
94
95 #ifdef CONFIG_SPL_BUILD
96 #define CONFIG_SYS_MALLOC_SIMPLE
97 #endif
98
99 #define CONFIG_SPL_STACK                (0x40000000 + ((192 - 16) << 10))
100 #define CONFIG_SPL_BOOTROM_SAVE         (CONFIG_SPL_STACK + 4)
101
102 /* SPL related SPI defines */
103 #define CONFIG_SYS_U_BOOT_OFFS          CONFIG_SYS_SPI_U_BOOT_OFFS
104
105 #endif /* _CONFIG_X530_H */