xref: /rk3399_rockchip-uboot/board/Marvell/dreamplug/dreamplug.h (revision 326ea986ac150acdc7656d57fca647db80b50158)
12e0c1c7dSJason Cooper /*
22e0c1c7dSJason Cooper  * (C) Copyright 2011
32e0c1c7dSJason Cooper  * Jason Cooper <u-boot@lakedaemon.net>
42e0c1c7dSJason Cooper  *
52e0c1c7dSJason Cooper  * Based on work by:
62e0c1c7dSJason Cooper  * Marvell Semiconductor <www.marvell.com>
72e0c1c7dSJason Cooper  * Written-by: Siddarth Gore <gores@marvell.com>
82e0c1c7dSJason Cooper  *
9*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
102e0c1c7dSJason Cooper  */
112e0c1c7dSJason Cooper 
122e0c1c7dSJason Cooper #ifndef __DREAMPLUG_H
132e0c1c7dSJason Cooper #define __DREAMPLUG_H
142e0c1c7dSJason Cooper 
152e0c1c7dSJason Cooper #define DREAMPLUG_OE_LOW	(~(0))
162e0c1c7dSJason Cooper #define DREAMPLUG_OE_HIGH	(~(0))
172e0c1c7dSJason Cooper #define DREAMPLUG_OE_VAL_LOW	0
182e0c1c7dSJason Cooper #define DREAMPLUG_OE_VAL_HIGH	(0xf << 16) /* 4 LED Pins high */
192e0c1c7dSJason Cooper 
202e0c1c7dSJason Cooper /* PHY related */
212e0c1c7dSJason Cooper #define MV88E1116_MAC_CTRL2_REG		21
222e0c1c7dSJason Cooper #define MV88E1116_PGADR_REG		22
232e0c1c7dSJason Cooper #define MV88E1116_RGMII_TXTM_CTRL	(1 << 4)
242e0c1c7dSJason Cooper #define MV88E1116_RGMII_RXTM_CTRL	(1 << 5)
252e0c1c7dSJason Cooper 
262e0c1c7dSJason Cooper #endif /* __DREAMPLUG_H */
27