blob: 9b98763656f5d7e58d1f502be307f0e8ec1fd30c [file] [log] [blame]
Grygorii Strashkocf56fb72018-10-31 16:21:43 -05001/* 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
8#ifndef CPSW_MDIO_H_
9#define CPSW_MDIO_H_
10
11struct cpsw_mdio;
12
Keerthy21deb9b2019-07-09 10:30:33 +053013struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
Ravi Gunasekaran40cea492022-09-22 15:21:23 +053014 u32 bus_freq, int fck_freq, bool manual_mode);
Grygorii Strashkocf56fb72018-10-31 16:21:43 -050015void cpsw_mdio_free(struct mii_dev *bus);
16u32 cpsw_mdio_get_alive(struct mii_dev *bus);
17
18#endif /* CPSW_MDIO_H_ */