emac_defs.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  4. *
  5. * Based on:
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * dm644x_emac.h
  10. *
  11. * TI DaVinci (DM644X) EMAC peripheral driver header for DV-EVM
  12. *
  13. * Copyright (C) 2005 Texas Instruments.
  14. *
  15. * ----------------------------------------------------------------------------
  16. *
  17. * Modifications:
  18. * ver. 1.0: Sep 2005, TI PSP Team - Created EMAC version for uBoot.
  19. */
  20. #ifndef _AM3517_EMAC_H_
  21. #define _AM3517_EMAC_H_
  22. #define EMAC_BASE_ADDR 0x5C010000
  23. #define EMAC_WRAPPER_BASE_ADDR 0x5C000000
  24. #define EMAC_WRAPPER_RAM_ADDR 0x5C020000
  25. #define EMAC_MDIO_BASE_ADDR 0x5C030000
  26. #define EMAC_HW_RAM_ADDR 0x01E20000
  27. #define EMAC_MDIO_BUS_FREQ 166000000 /* 166 MHZ check */
  28. #define EMAC_MDIO_CLOCK_FREQ 1000000 /* 2.0 MHz */
  29. /* SOFTRESET macro definition interferes with emac_regs structure definition */
  30. #undef SOFTRESET
  31. typedef volatile unsigned int dv_reg;
  32. typedef volatile unsigned int *dv_reg_p;
  33. #define DAVINCI_EMAC_VERSION2
  34. #endif /* _AM3517_EMAC_H_ */