ib62x0.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 2011-2012
  3. * Gerald Kerma <dreagle@doukki.net>
  4. * Simon Baatz <gmbnomis@gmail.com>
  5. * Luka Perkov <uboot@lukaperkov.net>
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. */
  23. #ifndef __IB62x0_H
  24. #define __IB62x0_H
  25. #define IB62x0_OE_LOW (~(1 << 22 | 1 << 24 | 1 << 25 | 1 << 27))
  26. #define IB62x0_OE_HIGH (~(0))
  27. #define IB62x0_OE_VAL_LOW 0
  28. #define IB62x0_OE_VAL_HIGH 0
  29. /* PHY related */
  30. #define MV88E1116_LED_FCTRL_REG 10
  31. #define MV88E1116_CPRSP_CR3_REG 21
  32. #define MV88E1116_MAC_CTRL_REG 21
  33. #define MV88E1116_PGADR_REG 22
  34. #define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
  35. #define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
  36. /* SATAHC related */
  37. #define MVSATAHC_LED_CONF_REG (MV_SATA_BASE + 0x2C)
  38. #define MVSATAHC_LED_POLARITY_CTRL (1 << 3)
  39. #endif /* __IB62x0_H */