Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefan | c98efc3 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2011 |
Stefan Herbrechtsmeier | 91eafc0 | 2014-12-28 14:09:50 +0100 | [diff] [blame] | 4 | * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> |
Stefan | c98efc3 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 5 | * |
| 6 | * Based on Kirkwood support: |
| 7 | * (C) Copyright 2009 |
| 8 | * Marvell Semiconductor <www.marvell.com> |
| 9 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
Stefan | c98efc3 | 2011-12-23 06:35:04 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __DNS325_H |
| 13 | #define __DNS325_H |
| 14 | |
| 15 | /* GPIO configuration */ |
| 16 | #define DNS325_OE_LOW 0x00000000 |
| 17 | #define DNS325_OE_HIGH 0x00039604 |
| 18 | #define DNS325_OE_VAL_LOW 0x38000000 /* disable leds */ |
| 19 | #define DNS325_OE_VAL_HIGH 0x00000800 /* disable leds */ |
| 20 | |
| 21 | #define DNS325_GPIO_LED_POWER 26 |
| 22 | #define DNS325_GPIO_SATA0_EN 39 |
| 23 | #define DNS325_GPIO_SATA1_EN 40 |
| 24 | |
| 25 | /* PHY related */ |
| 26 | #define MV88E1116_MAC_CTRL_REG 21 |
| 27 | #define MV88E1116_PGADR_REG 22 |
| 28 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 29 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 30 | |
| 31 | #endif /* __DNS325_H */ |