David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 |
| 3 | * David Purdy <david.c.purdy@gmail.com> |
| 4 | * |
| 5 | * Based on Kirkwood support: |
| 6 | * (C) Copyright 2009 |
| 7 | * Marvell Semiconductor <www.marvell.com> |
| 8 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
| 9 | * |
| 10 | * See file CREDITS for list of people who contributed to this |
| 11 | * project. |
| 12 | * |
| 13 | * This program is free software; you can redistribute it and/or |
| 14 | * modify it under the terms of the GNU General Public License as |
| 15 | * published by the Free Software Foundation; either version 2 of |
| 16 | * the License, or (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License |
| 24 | * along with this program; If not, see <http://www.gnu.org/licenses/>. |
| 25 | */ |
| 26 | |
| 27 | #ifndef __POGO_E02_H |
| 28 | #define __POGO_E02_H |
| 29 | |
| 30 | /* GPIO configuration */ |
| 31 | #define POGO_E02_OE_LOW (~(0)) |
| 32 | #define POGO_E02_OE_HIGH (~(0)) |
| 33 | #define POGO_E02_OE_VAL_LOW (1 << 29) |
| 34 | #define POGO_E02_OE_VAL_HIGH 0 |
| 35 | |
| 36 | /* PHY related */ |
| 37 | #define MV88E1116_LED_FCTRL_REG 10 |
| 38 | #define MV88E1116_CPRSP_CR3_REG 21 |
| 39 | #define MV88E1116_MAC_CTRL_REG 21 |
| 40 | #define MV88E1116_PGADR_REG 22 |
| 41 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 42 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 43 | |
| 44 | #endif /* __POGO_E02_H */ |