drivers: phy: add generic PHY framework

The PHY framework provides a set of APIs to control a PHY. This API is
derived from the linux version of the generic PHY framework.
Currently the API supports init(), deinit(), power_on, power_off() and
reset(). The framework provides a way to get a reference to a phy from the
device-tree.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Jean-Jacques Hiblot
2017-04-24 11:51:27 +02:00
committed by Simon Glass
parent d52063b84f
commit 72e5016f87
7 changed files with 411 additions and 0 deletions

8
drivers/phy/Makefile Normal file
View File

@@ -0,0 +1,8 @@
#
# Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
# Written by Jean-Jacques Hiblot <jjhiblot@ti.com>
#
# SPDX-License-Identifier: GPL-2.0+
#
obj-$(CONFIG_$(SPL_)PHY) += phy-uclass.o