blob: 0118c2b69acc18d7c25fc31195c39d5e9e6009d0 [file] [log] [blame]
Luka Perkove5841e12012-04-17 09:22:17 +00001/*
2 * Copyright (C) 2011-2012
3 * Gerald Kerma <dreagle@doukki.net>
4 * Simon Baatz <gmbnomis@gmail.com>
5 * Luka Perkov <uboot@lukaperkov.net>
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef __IB62x0_H
25#define __IB62x0_H
26
27#define IB62x0_OE_LOW (~(1 << 22 | 1 << 24 | 1 << 25 | 1 << 27))
28#define IB62x0_OE_HIGH (~(0))
29#define IB62x0_OE_VAL_LOW 0
30#define IB62x0_OE_VAL_HIGH 0
31
32/* PHY related */
33#define MV88E1116_LED_FCTRL_REG 10
34#define MV88E1116_CPRSP_CR3_REG 21
35#define MV88E1116_MAC_CTRL_REG 21
36#define MV88E1116_PGADR_REG 22
37#define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
38#define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
39
Simon Baatza0452342012-07-20 09:59:14 +000040/* SATAHC related */
41#define MVSATAHC_LED_CONF_REG (MV_SATA_BASE + 0x2C)
42#define MVSATAHC_LED_POLARITY_CTRL (1 << 3)
43
Luka Perkove5841e12012-04-17 09:22:17 +000044#endif /* __IB62x0_H */