]> git.baikalelectronics.ru Git - uboot.git/commit
phy: dphy: Add configuration helpers
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 29 Dec 2020 13:58:58 +0000 (14:58 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 10 Feb 2021 09:00:51 +0000 (10:00 +0100)
commitf670b543d73cee401e5ad015ad82641c322b1fd6
treebc634d8ec8f97e16d4c756ca56da1166f9cd84db
parentaf25b5ce860f6177a7defb91de5501e6466b6a12
phy: dphy: Add configuration helpers

The MIPI D-PHY spec defines default values and boundaries for most of the
parameters it defines. Introduce helpers to help drivers get meaningful
values based on their current parameters, and validate the boundaries of
these parameters if needed.

These helpers and header are taken from Linux commit 9123e3a74ec7 ("Linux 5.9-rc1").

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/phy/Kconfig
drivers/phy/Makefile
drivers/phy/phy-core-mipi-dphy.c [new file with mode: 0644]
include/phy-mipi-dphy.h [new file with mode: 0644]