Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 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 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 13 | /* |
| 14 | * NS16550 Configuration |
| 15 | */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 16 | #define CFG_SYS_NS16550_CLK CFG_SYS_TCLK |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 17 | #if !defined(CONFIG_DM_SERIAL) |
Tom Rini | df6a215 | 2022-11-16 13:10:28 -0500 | [diff] [blame] | 18 | #define CFG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 19 | #endif |
| 20 | |
| 21 | /* |
| 22 | * Serial Port configuration |
| 23 | * The following definitions let you select what serial you want to use |
| 24 | * for your console driver. |
| 25 | */ |
| 26 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 27 | /* NAND */ |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 28 | |
| 29 | #define BBT_CUSTOM_SCAN |
| 30 | #define BBT_CUSTOM_SCAN_PAGE 0 |
| 31 | #define BBT_CUSTOM_SCAN_POSITION 2048 |
| 32 | |
| 33 | /* SPI NOR flash default params, used by sf commands */ |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 34 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 35 | #define MTDPARTS_MTDOOPS "errlog" |
| 36 | |
| 37 | /* Partition support */ |
| 38 | |
| 39 | /* Additional FS support/configuration */ |
| 40 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 41 | /* Environment in SPI NOR flash */ |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 42 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 43 | #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */ |
| 44 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 45 | /* NAND */ |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 46 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 47 | #include <asm/arch/config.h> |
| 48 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 49 | /* Keep device tree and initrd in low memory so the kernel can access them */ |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 50 | #define CFG_EXTRA_ENV_SETTINGS \ |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 51 | "fdt_high=0x10000000\0" \ |
| 52 | "initrd_high=0x10000000\0" |
| 53 | |
Chris Packham | b55b2c9 | 2019-01-10 21:01:00 +1300 | [diff] [blame] | 54 | #endif /* _CONFIG_X530_H */ |