mmc: sunxi: sun4i / sun5i do not have sample clocks
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Jul 2016 14:25:47 +0000 (16:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Sep 2016 08:35:18 +0000 (10:35 +0200)
commitd4e1a133c040d72b77c41e4de2e275ed3a8646f1
tree4c444ca7d23cf070b2f48952b155e874ea9ee8c3
parenta731ea152e6a6647f00e1c3464a056cf213f901c
mmc: sunxi: sun4i / sun5i do not have sample clocks

It turns out that sun4i (A10) and sun5i (A13 & co) do not have sample
clocks, so add a new sun7i-a20-mmc compatible and do not try to use
sample clocks on sun4i / sun5i.

Since sun4i / sun5i do not have sample clocks, they cannot (reliably) do
DDR rates, so only set MMC_CAP_1_8V_DDR when we do have sample clks.

Note this patch leaves the clk_prepare_enable() / clk_disable_unprepare()
calls to the sample clks as-is, without adding checks for them being
NULL. All the clk_foo calls accept a NULL clk and will return success when
called with a NULL clk.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/sunxi-mmc.txt
drivers/mmc/host/sunxi-mmc.c
This page took 0.028078 seconds and 5 git commands to generate.