dns325.h 827 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2011
  3. * Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
  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. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #ifndef __DNS325_H
  13. #define __DNS325_H
  14. /* GPIO configuration */
  15. #define DNS325_OE_LOW 0x00000000
  16. #define DNS325_OE_HIGH 0x00039604
  17. #define DNS325_OE_VAL_LOW 0x38000000 /* disable leds */
  18. #define DNS325_OE_VAL_HIGH 0x00000800 /* disable leds */
  19. #define DNS325_GPIO_LED_POWER 26
  20. #define DNS325_GPIO_SATA0_EN 39
  21. #define DNS325_GPIO_SATA1_EN 40
  22. /* PHY related */
  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. #endif /* __DNS325_H */