mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 22:03:15 +00:00
5b777fe527
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call. Converted using sed "s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {" This particular PHY driver is slightly more spread out across additional source files. Since the phy_register() calls are no longer necessary, all the registration calls across those source files is dropped. Furthermore, the Makefile can now be updated to only compile generic TI PHY support if matching Kconfig symbol is enabled and the ifdeffery in the generic TI PHY driver can be dropped. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Acked-by: Michal Simek <michal.simek@amd.com> Tested-by: Michal Simek <michal.simek@amd.com> #microblaze (MANUAL_RELOC)
81 lines
1.8 KiB
C
81 lines
1.8 KiB
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 <phy.h>
|
|
#include "ti_phy_init.h"
|
|
|
|
U_BOOT_PHY_DRIVER(dp83822) = {
|
|
.name = "TI DP83822",
|
|
.uid = 0x2000a240,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|
|
|
|
U_BOOT_PHY_DRIVER(dp83826nc) = {
|
|
.name = "TI DP83826NC",
|
|
.uid = 0x2000a110,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|
|
|
|
U_BOOT_PHY_DRIVER(dp83826c) = {
|
|
.name = "TI DP83826C",
|
|
.uid = 0x2000a130,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|
|
|
|
U_BOOT_PHY_DRIVER(dp83825s) = {
|
|
.name = "TI DP83825S",
|
|
.uid = 0x2000a140,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|
|
|
|
U_BOOT_PHY_DRIVER(dp83825i) = {
|
|
.name = "TI DP83825I",
|
|
.uid = 0x2000a150,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|
|
|
|
U_BOOT_PHY_DRIVER(dp83825m) = {
|
|
.name = "TI DP83825M",
|
|
.uid = 0x2000a160,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|
|
|
|
U_BOOT_PHY_DRIVER(dp83825cs) = {
|
|
.name = "TI DP83825CS",
|
|
.uid = 0x2000a170,
|
|
.mask = 0xfffffff0,
|
|
.features = PHY_BASIC_FEATURES,
|
|
.config = &genphy_config_aneg,
|
|
.startup = &genphy_startup,
|
|
.shutdown = &genphy_shutdown,
|
|
};
|