Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 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> |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _CONFIG_NAS220_H |
| 12 | #define _CONFIG_NAS220_H |
| 13 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 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 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 28 | #include "mv-common.h" |
| 29 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 30 | /* |
| 31 | * Environment variables configurations |
| 32 | */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 33 | |
| 34 | /* |
| 35 | * Default environment variables |
| 36 | */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 37 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 38 | #define CFG_EXTRA_ENV_SETTINGS \ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 39 | "bootargs=console=ttyS0,115200\0" \ |
Tom Rini | 065d661 | 2022-06-13 22:57:35 -0400 | [diff] [blame] | 40 | "autostart=no\0" |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 41 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 42 | #endif /* _CONFIG_NAS220_H */ |