emac_defs.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. * SPDX-License-Identifier: GPL-2.0+
  17. *
  18. * Modifications:
  19. * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
  20. */
  21. #ifndef _AM3517_EMAC_H_
  22. #define _AM3517_EMAC_H_
  23. #define EMAC_BASE_ADDR 0x5C010000
  24. #define EMAC_WRAPPER_BASE_ADDR 0x5C000000
  25. #define EMAC_WRAPPER_RAM_ADDR 0x5C020000
  26. #define EMAC_MDIO_BASE_ADDR 0x5C030000
  27. #define EMAC_HW_RAM_ADDR 0x01E20000
  28. #define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
  29. #define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
  30. /* SOFTRESET macro definition interferes with emac_regs structure definition */
  31. #undef SOFTRESET
  32. typedef volatile unsigned int dv_reg;
  33. typedef volatile unsigned int *dv_reg_p;
  34. #define DAVINCI_EMAC_VERSION2
  35. #endif /* _AM3517_EMAC_H_ */