emac_defs.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  3. *
  4. * Based on:
  5. *
  6. * ----------------------------------------------------------------------------
  7. *
  8. * dm644x_emac.h
  9. *
  10. * TI DaVinci (DM644X) EMAC peripheral driver header for DV-EVM
  11. *
  12. * Copyright (C) 2005 Texas Instruments.
  13. *
  14. * ----------------------------------------------------------------------------
  15. *
  16. * This program is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU General Public License as published by
  18. * the Free Software Foundation; either version 2 of the License, or
  19. * (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software
  28. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29. * ----------------------------------------------------------------------------
  30. * Modifications:
  31. * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
  32. *
  33. */
  34. #ifndef _AM3517_EMAC_H_
  35. #define _AM3517_EMAC_H_
  36. #define EMAC_BASE_ADDR 0x5C010000
  37. #define EMAC_WRAPPER_BASE_ADDR 0x5C000000
  38. #define EMAC_WRAPPER_RAM_ADDR 0x5C020000
  39. #define EMAC_MDIO_BASE_ADDR 0x5C030000
  40. #define EMAC_HW_RAM_ADDR 0x01E20000
  41. #define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
  42. #define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
  43. /* SOFTRESET macro definition interferes with emac_regs structure definition */
  44. #undef SOFTRESET
  45. typedef volatile unsigned int dv_reg;
  46. typedef volatile unsigned int *dv_reg_p;
  47. #define DAVINCI_EMAC_VERSION2
  48. #endif /* _AM3517_EMAC_H_ */