xref: /openbmc/u-boot/board/raidsonic/ib62x0/ib62x0.h (revision 12308b12)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2011-2012
4  * Gerald Kerma <dreagle@doukki.net>
5  * Simon Baatz <gmbnomis@gmail.com>
6  * Luka Perkov <luka@openwrt.org>
7  */
8 
9 #ifndef __IB62x0_H
10 #define __IB62x0_H
11 
12 #define IB62x0_OE_LOW		(~(1 << 22 | 1 << 24 | 1 << 25 | 1 << 27))
13 #define IB62x0_OE_HIGH		(~(0))
14 #define IB62x0_OE_VAL_LOW	0
15 #define IB62x0_OE_VAL_HIGH	0
16 
17 /* PHY related */
18 #define MV88E1116_LED_FCTRL_REG		10
19 #define MV88E1116_CPRSP_CR3_REG		21
20 #define MV88E1116_MAC_CTRL_REG		21
21 #define MV88E1116_PGADR_REG		22
22 #define MV88E1116_RGMII_TXTM_CTRL	(1 << 4)
23 #define MV88E1116_RGMII_RXTM_CTRL	(1 << 5)
24 
25 /* SATAHC related */
26 #define MVSATAHC_LED_CONF_REG       (MV_SATA_BASE + 0x2C)
27 #define MVSATAHC_LED_POLARITY_CTRL  (1 << 3)
28 
29 #endif /* __IB62x0_H */
30