xref: /rk3399_rockchip-uboot/board/iomega/iconnect/iconnect.h (revision 3fdf7596dff87a79e2b41d07479c608d91d06cb3)
19b914727SLuka Perkov /*
29b914727SLuka Perkov  * Copyright (C) 2009-2012
39b914727SLuka Perkov  * Wojciech Dubowik <wojciech.dubowik@neratec.com>
4*3fdf7596SLuka Perkov  * Luka Perkov <luka@openwrt.org>
59b914727SLuka Perkov  *
69b914727SLuka Perkov  * See file CREDITS for list of people who contributed to this
79b914727SLuka Perkov  * project.
89b914727SLuka Perkov  *
99b914727SLuka Perkov  * This program is free software; you can redistribute it and/or
109b914727SLuka Perkov  * modify it under the terms of the GNU General Public License as
119b914727SLuka Perkov  * published by the Free Software Foundation; either version 2 of
129b914727SLuka Perkov  * the License, or (at your option) any later version.
139b914727SLuka Perkov  *
149b914727SLuka Perkov  * This program is distributed in the hope that it will be useful,
159b914727SLuka Perkov  * but WITHOUT ANY WARRANTY; without even the implied warranty of
169b914727SLuka Perkov  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
179b914727SLuka Perkov  * GNU General Public License for more details.
189b914727SLuka Perkov  *
199b914727SLuka Perkov  * You should have received a copy of the GNU General Public License
209b914727SLuka Perkov  * along with this program. If not, see <http://www.gnu.org/licenses/>.
219b914727SLuka Perkov  */
229b914727SLuka Perkov 
239b914727SLuka Perkov #ifndef __ICONNECT_H
249b914727SLuka Perkov #define __ICONNECT_H
259b914727SLuka Perkov 
269b914727SLuka Perkov #define ICONNECT_OE_LOW			(~(1 << 7))
279b914727SLuka Perkov #define ICONNECT_OE_HIGH		(~(1 << 10))
289b914727SLuka Perkov #define ICONNECT_OE_VAL_LOW		(0)
299b914727SLuka Perkov #define ICONNECT_OE_VAL_HIGH		(1 << 10)
309b914727SLuka Perkov 
319b914727SLuka Perkov /* PHY related */
329b914727SLuka Perkov #define MV88E1116_LED_FCTRL_REG		10
339b914727SLuka Perkov #define MV88E1116_CPRSP_CR3_REG		21
349b914727SLuka Perkov #define MV88E1116_MAC_CTRL_REG		21
359b914727SLuka Perkov #define MV88E1116_PGADR_REG		22
369b914727SLuka Perkov #define MV88E1116_RGMII_TXTM_CTRL	(1 << 4)
379b914727SLuka Perkov #define MV88E1116_RGMII_RXTM_CTRL	(1 << 5)
389b914727SLuka Perkov 
399b914727SLuka Perkov #endif /* __ICONNECT_H */
40