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 - https://www.ti.com/
6 */
7
8#ifndef CPSW_MDIO_H_
9#define CPSW_MDIO_H_
10
11struct cpsw_mdio;
12
13#if !defined(CONFIG_MDIO_TI_CPSW)
14struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
15			       u32 bus_freq, int fck_freq, bool manual_mode);
16void cpsw_mdio_free(struct mii_dev *bus);
17u32 cpsw_mdio_get_alive(struct mii_dev *bus);
18#endif /* CONFIG_MDIO_TI_CPSW */
19
20#endif /* CPSW_MDIO_H_ */
21