aboutsummaryrefslogtreecommitdiff
path: root/include/phy-mipi-dphy.h
AgeCommit message (Collapse)AuthorFilesLines
2021-02-10phy: dphy: Add configuration helpersNeil Armstrong1-0/+284
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>