Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 |
Stefan Herbrechtsmeier | 16437a1 | 2014-12-28 14:09:50 +0100 | [diff] [blame] | 3 | * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 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 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan | bfacf46 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef __DNS325_H |
| 14 | #define __DNS325_H |
| 15 | |
| 16 | /* GPIO configuration */ |
| 17 | #define DNS325_OE_LOW 0x00000000 |
| 18 | #define DNS325_OE_HIGH 0x00039604 |
| 19 | #define DNS325_OE_VAL_LOW 0x38000000 /* disable leds */ |
| 20 | #define DNS325_OE_VAL_HIGH 0x00000800 /* disable leds */ |
| 21 | |
| 22 | #define DNS325_GPIO_LED_POWER 26 |
| 23 | #define DNS325_GPIO_SATA0_EN 39 |
| 24 | #define DNS325_GPIO_SATA1_EN 40 |
| 25 | |
| 26 | /* PHY related */ |
| 27 | #define MV88E1116_MAC_CTRL_REG 21 |
| 28 | #define MV88E1116_PGADR_REG 22 |
| 29 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 30 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 31 | |
| 32 | #endif /* __DNS325_H */ |