Grygorii Strashko | cf56fb7 | 2018-10-31 16:21:43 -0500 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * CPSW MDIO generic driver API for TI AMxx/K2x/EMAC devices. |
| 4 | * |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 5 | * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/ |
Grygorii Strashko | cf56fb7 | 2018-10-31 16:21:43 -0500 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef CPSW_MDIO_H_ |
| 9 | #define CPSW_MDIO_H_ |
| 10 | |
| 11 | struct cpsw_mdio; |
| 12 | |
Roger Quadros | fced6b6 | 2024-02-28 12:35:27 +0200 | [diff] [blame] | 13 | #if !defined(CONFIG_MDIO_TI_CPSW) |
Keerthy | 21deb9b | 2019-07-09 10:30:33 +0530 | [diff] [blame] | 14 | struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base, |
Ravi Gunasekaran | 40cea49 | 2022-09-22 15:21:23 +0530 | [diff] [blame] | 15 | u32 bus_freq, int fck_freq, bool manual_mode); |
Grygorii Strashko | cf56fb7 | 2018-10-31 16:21:43 -0500 | [diff] [blame] | 16 | void cpsw_mdio_free(struct mii_dev *bus); |
| 17 | u32 cpsw_mdio_get_alive(struct mii_dev *bus); |
Roger Quadros | fced6b6 | 2024-02-28 12:35:27 +0200 | [diff] [blame] | 18 | #endif /* CONFIG_MDIO_TI_CPSW */ |
Grygorii Strashko | cf56fb7 | 2018-10-31 16:21:43 -0500 | [diff] [blame] | 19 | |
| 20 | #endif /* CPSW_MDIO_H_ */ |