Merge tag 'u-boot-at91-2022.04-a' of https://source.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / include / configs / openrd.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2009
4  * Net Insight <www.netinsight.net>
5  * Written-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
6  *
7  * Based on sheevaplug.h:
8  * (C) Copyright 2009
9  * Marvell Semiconductor <www.marvell.com>
10  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
11  */
12
13 #ifndef _CONFIG_OPENRD_H
14 #define _CONFIG_OPENRD_H
15
16 /*
17  * High Level Configuration Options (easy to change)
18  */
19 #define CONFIG_SHEEVA_88SV131   1       /* CPU Core subversion */
20 #define CONFIG_KW88F6281        1       /* SOC Name */
21
22 #include "mv-common.h"
23
24 /*
25  *  Environment variables configurations
26  */
27 /*
28  * max 4k env size is enough, but in case of nand
29  * it has to be rounded to sector size
30  */
31 /*
32  * Environment is right behind U-Boot in flash. Make sure U-Boot
33  * doesn't grow into the environment area.
34  */
35 #define CONFIG_BOARD_SIZE_LIMIT         CONFIG_ENV_OFFSET
36
37 /*
38  * Default environment variables
39  */
40
41 #define CONFIG_EXTRA_ENV_SETTINGS       "x_bootargs=console=ttyS0,115200 " \
42         CONFIG_MTDPARTS_DEFAULT " rw ubi.mtd=2,2048\0" \
43         "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0"      \
44         "x_bootcmd_usb=usb start\0"                                     \
45         "x_bootargs_root=root=ubi0:rootfs rootfstype=ubifs\0"
46
47 /*
48  * Ethernet Driver configuration
49  */
50 #ifdef CONFIG_CMD_NET
51 # ifdef CONFIG_BOARD_IS_OPENRD_BASE
52 #  define CONFIG_MVGBE_PORTS    {1, 0}  /* enable port 0 only */
53 # else
54 #  define CONFIG_MVGBE_PORTS    {1, 1}  /* enable both ports */
55 # endif
56 # ifdef CONFIG_BOARD_IS_OPENRD_ULTIMATE
57 #  define CONFIG_PHY_BASE_ADR   0x0
58 #  define PHY_NO                "88E1121"
59 # else
60 #  define CONFIG_PHY_BASE_ADR   0x8
61 #  define PHY_NO                "88E1116"
62 # endif
63 #endif /* CONFIG_CMD_NET */
64
65 /*
66  * SATA Driver configuration
67  */
68 #ifdef CONFIG_MVSATA_IDE
69 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
70 #define CONFIG_SYS_ATA_IDE1_OFFSET      MV_SATA_PORT1_OFFSET
71 #endif /*CONFIG_MVSATA_IDE*/
72
73 #endif /* _CONFIG_OPENRD_BASE_H */