blob: 56dfeea1a8e481eb8b282c6b5c84ce0e16c7e9f7 [file] [log] [blame]
Simon Kagstrom258c3302009-09-22 04:01:01 +05301/*
2 * (C) Copyright 2009
3 * Net Insight <www.netinsight.net>
4 * Written-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
5 *
6 * Based on sheevaplug.h:
7 * (C) Copyright 2009
8 * Marvell Semiconductor <www.marvell.com>
9 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
10 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
Simon Kagstrom258c3302009-09-22 04:01:01 +053012 */
13
14#ifndef __OPENRD_BASE_H
15#define __OPENRD_BASE_H
16
17#define OPENRD_OE_LOW (~(1<<28)) /* RS232 / RS485 */
18#define OPENRD_OE_HIGH (~(1<<2)) /* SD / UART1 */
19#define OPENRD_OE_VAL_LOW (0) /* Sel RS232 */
20#define OPENRD_OE_VAL_HIGH (1 << 2) /* Sel SD */
21
22/* PHY related */
23#define MV88E1116_LED_FCTRL_REG 10
24#define MV88E1116_CPRSP_CR3_REG 21
25#define MV88E1116_MAC_CTRL_REG 21
26#define MV88E1116_PGADR_REG 22
27#define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
28#define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
29
30#endif /* __OPENRD_BASE_H */