blob: 1b7eb3433483678fa9a1c9cdb9c58b2a38e67874 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Evgeni Dobreve80958b2014-12-08 17:49:42 +01002/*
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>
Evgeni Dobreve80958b2014-12-08 17:49:42 +01009 */
10
11#ifndef _CONFIG_NAS220_H
12#define _CONFIG_NAS220_H
13
Evgeni Dobreve80958b2014-12-08 17:49:42 +010014/* 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
Evgeni Dobreve80958b2014-12-08 17:49:42 +010028#include "mv-common.h"
29
Evgeni Dobreve80958b2014-12-08 17:49:42 +010030/*
31 * Environment variables configurations
32 */
Evgeni Dobreve80958b2014-12-08 17:49:42 +010033
34/*
35 * Default environment variables
36 */
Evgeni Dobreve80958b2014-12-08 17:49:42 +010037
38#define CONFIG_EXTRA_ENV_SETTINGS \
39 "bootargs=console=ttyS0,115200\0" \
Tom Rini065d6612022-06-13 22:57:35 -040040 "autostart=no\0"
Evgeni Dobreve80958b2014-12-08 17:49:42 +010041
42/*
43 * Ethernet Driver configuration
44 */
45#ifdef CONFIG_CMD_NET
46#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
47#define CONFIG_PHY_BASE_ADR 8
48#endif /* CONFIG_CMD_NET */
49
50/*
Evgeni Dobreve80958b2014-12-08 17:49:42 +010051 * EFI partition
52 */
Evgeni Dobreve80958b2014-12-08 17:49:42 +010053
Evgeni Dobreve80958b2014-12-08 17:49:42 +010054#endif /* _CONFIG_NAS220_H */