xref: /openbmc/u-boot/board/Marvell/openrd/openrd.h (revision 2c79b7a3)
1 /*
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  *
11  * SPDX-License-Identifier:	GPL-2.0+
12  */
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 */
31