pinctrl: tegra: Add MIPI pad control
authorShravani Dingari <shravanid@nvidia.com>
Wed, 31 Dec 2014 09:55:30 +0000 (14:55 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Mon, 12 Jan 2015 08:37:04 +0000 (00:37 -0800)
commit489c8251776de8838547207acce199f50846ded1
treee86bf94e7642526f6ec5fbb7db29a03748309e5f
parentb1f6dce1761f8253b8befccdeeb8f218141054f1
pinctrl: tegra: Add MIPI pad control

This patch adds MIPI CSI/DSIB pad control mux register
from the APB misc block to tegra pinctrl.

Without writing to this register, the dsib pads are
muxed as csi, and cannot be used.

The register is not yet documented in the TRM, here is
the description:

70000820: APB_MISC_GP_MIPI_PAD_CTRL_0
        [31:02] RESERVED
        [01:01] DSIB_MODE       [CSI=0,DSIB=1]
        [00:00] RESERVED

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

BUG=chrome-os-partner:30799
TEST=Tested on ryu

(cherry picked from commit 3ccc11f6b82c34646c8a4233278251d9e9e99390)

Change-Id: I49b0de124b169fca5e9639c4396eb93dcffabaab
Reviewed-on: https://chromium-review.googlesource.com/219832
Reviewed-by: David Riley <davidriley@chromium.org>
Commit-Queue: Sean Paul <seanpaul@chromium.org>
Tested-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/668725
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
arch/arm/boot/dts/tegra124-soc-base.dtsi
drivers/pinctrl/pinctrl-tegra124.c