Merge tag 'next-20220328' of https://source.denx.de/u-boot/custodians/u-boot-video...
[platform/kernel/u-boot.git] / include / configs / nas220.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2014 Evgeni Dobrev <evgeni@studio-punkt.com>
4  *
5  * based on work from:
6  * (C) Copyright 2009
7  * Marvell Semiconductor <www.marvell.com>
8  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
9  */
10
11 #ifndef _CONFIG_NAS220_H
12 #define _CONFIG_NAS220_H
13
14 /* power-on led, regulator, sata0, sata1 */
15 #define NAS220_GE_OE_VAL_LOW ((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28))
16 #define NAS220_GE_OE_VAL_HIGH (0)
17 #define NAS220_GE_OE_LOW (~((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28)))
18 #define NAS220_GE_OE_HIGH (~(0))
19
20 /* PHY related */
21 #define MV88E1116_LED_FCTRL_REG         10
22 #define MV88E1116_CPRSP_CR3_REG         21
23 #define MV88E1116_MAC_CTRL_REG          21
24 #define MV88E1116_PGADR_REG             22
25 #define MV88E1116_RGMII_TXTM_CTRL       (1 << 4)
26 #define MV88E1116_RGMII_RXTM_CTRL       (1 << 5)
27
28 #include "mv-common.h"
29
30 /*
31  *  Environment variables configurations
32  */
33
34 /*
35  * Default environment variables
36  */
37
38 #define CONFIG_EXTRA_ENV_SETTINGS \
39         "bootargs=console=ttyS0,115200\0" \
40         "mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\
41         "0x010000@0xa0000(env),"\
42         "0x500000@0xc0000(uimage),"\
43         "0x1a40000@0x5c0000(rootfs)\0" \
44         "mtdids=nand0=orion_nand\0"\
45         "autostart=no\0"\
46         "autoload=no\0"
47
48 /*
49  * Ethernet Driver configuration
50  */
51 #ifdef CONFIG_CMD_NET
52 #define CONFIG_MVGBE_PORTS {1, 0}       /* enable port 0 only */
53 #define CONFIG_PHY_BASE_ADR 8
54 #endif /* CONFIG_CMD_NET */
55
56 /*
57  * EFI partition
58  */
59
60 #endif /* _CONFIG_NAS220_H */