blob: 240c972d697ae26a0b654cb9dc952fbfbc5ef807 [file] [log] [blame]
Grygorii Strashko6c4bbcc2018-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 *
Nishanth Menona94a4072023-11-01 15:56:03 -05005 * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
Grygorii Strashko6c4bbcc2018-10-31 16:21:43 -05006 */
7
8#ifndef CPSW_MDIO_H_
9#define CPSW_MDIO_H_
10
11struct cpsw_mdio;
12
Roger Quadrosbe2eb3a2024-02-28 12:35:27 +020013#if !defined(CONFIG_MDIO_TI_CPSW)
Keerthy45e8c052019-07-09 10:30:33 +053014struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
Ravi Gunasekaran9ea30ea2022-09-22 15:21:23 +053015 u32 bus_freq, int fck_freq, bool manual_mode);
Grygorii Strashko6c4bbcc2018-10-31 16:21:43 -050016void cpsw_mdio_free(struct mii_dev *bus);
17u32 cpsw_mdio_get_alive(struct mii_dev *bus);
Roger Quadrosbe2eb3a2024-02-28 12:35:27 +020018#endif /* CONFIG_MDIO_TI_CPSW */
Grygorii Strashko6c4bbcc2018-10-31 16:21:43 -050019
20#endif /* CPSW_MDIO_H_ */