2018-10-31 21:21:43 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* CPSW MDIO generic driver API for TI AMxx/K2x/EMAC devices.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CPSW_MDIO_H_
|
|
|
|
#define CPSW_MDIO_H_
|
|
|
|
|
|
|
|
struct cpsw_mdio;
|
|
|
|
|
2019-07-09 05:00:33 +00:00
|
|
|
struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
|
2022-09-22 09:51:23 +00:00
|
|
|
u32 bus_freq, int fck_freq, bool manual_mode);
|
2018-10-31 21:21:43 +00:00
|
|
|
void cpsw_mdio_free(struct mii_dev *bus);
|
|
|
|
u32 cpsw_mdio_get_alive(struct mii_dev *bus);
|
|
|
|
|
|
|
|
#endif /* CPSW_MDIO_H_ */
|