mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 03:08:31 +00:00
bc0e578f90
ti_phy_init function was allocated to the DP83867 PHY. This function name is to generic for a specific PHY. The function can be moved to a TI specific file that can register all TI PHYs that are defined in the defconfig. The ti_phy_init file will contain all TI PHYs initialization so that only phy_ti_init can be called from the framework. In addition to the above the config flag for the DP83867 needs to be changed in the Kconfig and dependent defconfig files. The config flag that was used for the DP83867 was also generic in nature so a more specific config flag for the DP83867 was created. Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Dan Murphy <dmurphy@ti.com>
18 lines
313 B
C
18 lines
313 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* TI Generic PHY Init to register any TI Ethernet PHYs
|
|
*
|
|
* Author: Dan Murphy <dmurphy@ti.com>
|
|
*
|
|
* Copyright (C) 2019-20 Texas Instruments Inc.
|
|
*/
|
|
|
|
#include "ti_phy_init.h"
|
|
|
|
int phy_ti_init(void)
|
|
{
|
|
#ifdef CONFIG_PHY_TI_DP83867
|
|
phy_dp83867_init();
|
|
#endif
|
|
return 0;
|
|
}
|