mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 18:28:55 +00:00
6c4bbccc6e
All existing TI SoCs network HW have similar MDIO implementation, so introduce common mdio support library which can be reused by TI networking drivers. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
18 lines
467 B
C
18 lines
467 B
C
/* 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;
|
|
|
|
struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base,
|
|
u32 bus_freq, int fck_freq);
|
|
void cpsw_mdio_free(struct mii_dev *bus);
|
|
u32 cpsw_mdio_get_alive(struct mii_dev *bus);
|
|
|
|
#endif /* CPSW_MDIO_H_ */
|