pogo_e02.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef __POGO_E02_H
  27. #define __POGO_E02_H
  28. /* GPIO configuration */
  29. #define POGO_E02_OE_LOW (~(0))
  30. #define POGO_E02_OE_HIGH (~(0))
  31. #define POGO_E02_OE_VAL_LOW (1 << 29)
  32. #define POGO_E02_OE_VAL_HIGH 0
  33. /* PHY related */
  34. #define MV88E1116_LED_FCTRL_REG 10
  35. #define MV88E1116_CPRSP_CR3_REG 21
  36. #define MV88E1116_MAC_CTRL_REG 21
  37. #define MV88E1116_PGADR_REG 22
  38. #define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
  39. #define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
  40. #endif /* __POGO_E02_H */