Eric Cooper | 38041db | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu> |
| 3 | * |
| 4 | * Based on sheevaplug.h originally written by |
| 5 | * Prafulla Wadaskar <prafulla@marvell.com> |
| 6 | * (C) Copyright 2009 |
| 7 | * Marvell Semiconductor <www.marvell.com> |
| 8 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Eric Cooper | 38041db | 2010-11-24 17:11:32 +0530 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __DOCKSTAR_H |
| 13 | #define __DOCKSTAR_H |
| 14 | |
| 15 | #define DOCKSTAR_OE_LOW (~(0)) |
| 16 | #define DOCKSTAR_OE_HIGH (~(0)) |
| 17 | #define DOCKSTAR_OE_VAL_LOW (1 << 29) /* USB_PWEN low */ |
| 18 | #define DOCKSTAR_OE_VAL_HIGH (1 << 17) /* LED pin high */ |
| 19 | |
| 20 | /* PHY related */ |
| 21 | #define MV88E1116_LED_FCTRL_REG 10 |
| 22 | #define MV88E1116_CPRSP_CR3_REG 21 |
| 23 | #define MV88E1116_MAC_CTRL_REG 21 |
| 24 | #define MV88E1116_PGADR_REG 22 |
| 25 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 26 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 27 | |
| 28 | #endif /* __DOCKSTAR_H */ |