mmc: core: Add helper for parsing clock phase properties
authorAndrew Jeffery <andrew@aj.id.au>
Thu, 14 Jan 2021 03:14:28 +0000 (13:44 +1030)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:47 +0000 (11:54 +0100)
commit3561afa02605b398d1b98e1ce913ea6411cdc5dd
tree2cfabc460c4814f3be7c368db5792b2574212ce2
parent7c7905df68c5ca5b3b20f41ef3f0d245ae6f32c3
mmc: core: Add helper for parsing clock phase properties

Drivers for MMC hosts that accept phase corrections can take advantage
of the helper by embedding an instance of struct mmc_clk_phase_map in
their private data and invoking mmc_of_parse_clk_phase() to extract
phase parameters. It is the responsibility of the host driver to
translate and apply the extracted values to hardware as required.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20210114031433.2388532-2-andrew@aj.id.au
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c
include/linux/mmc/host.h