xref: /rk3399_rockchip-uboot/board/Marvell/guruplug/guruplug.h (revision 326ea986ac150acdc7656d57fca647db80b50158)
116b76705SSiddarth Gore /*
216b76705SSiddarth Gore  * (C) Copyright 2009
316b76705SSiddarth Gore  * Marvell Semiconductor <www.marvell.com>
416b76705SSiddarth Gore  * Written-by: Siddarth Gore <gores@marvell.com>
516b76705SSiddarth Gore  *
6*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
716b76705SSiddarth Gore  */
816b76705SSiddarth Gore 
916b76705SSiddarth Gore #ifndef __GURUPLUG_H
1016b76705SSiddarth Gore #define __GURUPLUG_H
1116b76705SSiddarth Gore 
1216b76705SSiddarth Gore #define GURUPLUG_OE_LOW		(~(0))
1316b76705SSiddarth Gore #define GURUPLUG_OE_HIGH	(~(0))
1416b76705SSiddarth Gore #define GURUPLUG_OE_VAL_LOW	0
1516b76705SSiddarth Gore #define GURUPLUG_OE_VAL_HIGH	(0xf << 16) /* 4 LED Pins high */
1616b76705SSiddarth Gore 
1716b76705SSiddarth Gore /* PHY related */
1816b76705SSiddarth Gore #define MV88E1121_MAC_CTRL2_REG		21
1916b76705SSiddarth Gore #define MV88E1121_PGADR_REG		22
2016b76705SSiddarth Gore #define MV88E1121_RGMII_TXTM_CTRL	(1 << 4)
2116b76705SSiddarth Gore #define MV88E1121_RGMII_RXTM_CTRL	(1 << 5)
2216b76705SSiddarth Gore 
2316b76705SSiddarth Gore #endif /* __GURUPLUG_H */
24