net: phy: Port set/clear bits from Linux
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Fri, 28 Feb 2025 12:47:52 +0000 (12:47 +0000)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 19 Mar 2025 02:38:51 +0000 (03:38 +0100)
commit985dc81a1d962a04ad1084bc4fe912492c8fe463
tree1a003d534e66a1bece017a90ed5c3ff5df2f360a
parent667ab63f931bc16b38c1ce87f57a4914c1c7bcfa
net: phy: Port set/clear bits from Linux

To simply porting phy drivers from Linux to U-Boot, define
phy_set_bits() and phy_clear_bits() functions with a similar API to
those used in Linux.

The U-Boot versions of these functions include the `devad` argument
which is not present in the Linux versions, to keep them aligned with
the other phy functions in U-Boot.

Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
include/phy.h