cpsw_mdio.h 475 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * CPSW MDIO generic driver API for TI AMxx/K2x/EMAC devices.
  4. *
  5. * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  6. */
  7. #ifndef CPSW_MDIO_H_
  8. #define CPSW_MDIO_H_
  9. struct cpsw_mdio;
  10. struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
  11. u32 bus_freq, int fck_freq);
  12. void cpsw_mdio_free(struct mii_dev *bus);
  13. u32 cpsw_mdio_get_alive(struct mii_dev *bus);
  14. #endif /* CPSW_MDIO_H_ */