Luka Perkov | 2a3ce88 | 2012-04-17 09:22:17 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011-2012 |
| 3 | * Gerald Kerma <dreagle@doukki.net> |
| 4 | * Simon Baatz <gmbnomis@gmail.com> |
Luka Perkov | e91505d | 2012-12-03 03:24:15 +0000 | [diff] [blame] | 5 | * Luka Perkov <luka@openwrt.org> |
Luka Perkov | 2a3ce88 | 2012-04-17 09:22:17 +0000 | [diff] [blame] | 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Luka Perkov | 2a3ce88 | 2012-04-17 09:22:17 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __IB62x0_H |
| 11 | #define __IB62x0_H |
| 12 | |
| 13 | #define IB62x0_OE_LOW (~(1 << 22 | 1 << 24 | 1 << 25 | 1 << 27)) |
| 14 | #define IB62x0_OE_HIGH (~(0)) |
| 15 | #define IB62x0_OE_VAL_LOW 0 |
| 16 | #define IB62x0_OE_VAL_HIGH 0 |
| 17 | |
| 18 | /* PHY related */ |
| 19 | #define MV88E1116_LED_FCTRL_REG 10 |
| 20 | #define MV88E1116_CPRSP_CR3_REG 21 |
| 21 | #define MV88E1116_MAC_CTRL_REG 21 |
| 22 | #define MV88E1116_PGADR_REG 22 |
| 23 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 24 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 25 | |
Simon Baatz | 50135dd | 2012-07-20 09:59:14 +0000 | [diff] [blame] | 26 | /* SATAHC related */ |
| 27 | #define MVSATAHC_LED_CONF_REG (MV_SATA_BASE + 0x2C) |
| 28 | #define MVSATAHC_LED_POLARITY_CTRL (1 << 3) |
| 29 | |
Luka Perkov | 2a3ce88 | 2012-04-17 09:22:17 +0000 | [diff] [blame] | 30 | #endif /* __IB62x0_H */ |