mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
![Keerthy](/assets/img/avatar_default.png)
Use phys_addr_t for mdio_base address to avoid build warnings on arm64 and dra7. Cast it to uintprt_t before assigning to regs. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
19 lines
475 B
C
19 lines
475 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, phys_addr_t 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_ */
|