ARM: rockchip: disable jtag/sdmmc autoswitching on rk3288
From: Heiko Stuebner <heiko@...> Date: Wed, 7 Jan 2015 23:04:48 +0100
Commit-Message
rk3288 SoCs have a function to automatically switch between jtag/sdmmc pinmux settings depending on the card state. This collides with a lot of assumptions. It only works when using the internal card-detect mechanism and breaks horribly when using either the normal card-detect via the slot-gpio function or via any other pin. Also there is of course no link between the mmc and jtag on the software-side, so the jtag clocks may very well be disabled when the card is ejected and the soc switches back to the jtag pinmux. Leaving the switching function enabled did result in mmc timeouts and rcu stalls thus hanging the system on 3.19-rc1. Therefore disable it in all cases, as we expect the devicetree to explicitly select either mmc or jtag pinmuxes anyway. For this introduce an early check for rk3288 socs Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
arch/arm/mach-rockchip/rockchip.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
Statistics
- 28 lines added
- 0 lines removed