diff options
author | Xiao Yao <xiaoyao@rock-chips.com> | 2018-01-18 17:56:45 +0800 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-03-05 19:42:23 +0100 |
commit | 6e61c891a0bbe3cede4157b4ecdfbd1617098b5a (patch) | |
tree | ad28261b9d9e554aa21387e401da2369791d293f | |
parent | e17ee5f08b9849b9f80fadab96364121c6bdd207 (diff) | |
download | linux-6e61c891a0bbe3cede4157b4ecdfbd1617098b5a.tar.gz linux-6e61c891a0bbe3cede4157b4ecdfbd1617098b5a.tar.bz2 linux-6e61c891a0bbe3cede4157b4ecdfbd1617098b5a.zip |
soc: rockchip: disable jtag switching for RK3128 SoCs
Disable IO function switching between sdmmc and jtag
for RK3128 SoCs.
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r-- | drivers/soc/rockchip/grf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c index dd81b87d79f0..96882ffde67e 100644 --- a/drivers/soc/rockchip/grf.c +++ b/drivers/soc/rockchip/grf.c @@ -43,6 +43,17 @@ static const struct rockchip_grf_info rk3036_grf __initconst = { .num_values = ARRAY_SIZE(rk3036_defaults), }; +#define RK3128_GRF_SOC_CON0 0x140 + +static const struct rockchip_grf_value rk3128_defaults[] __initconst = { + { "jtag switching", RK3128_GRF_SOC_CON0, HIWORD_UPDATE(0, 1, 8) }, +}; + +static const struct rockchip_grf_info rk3128_grf __initconst = { + .values = rk3128_defaults, + .num_values = ARRAY_SIZE(rk3128_defaults), +}; + #define RK3228_GRF_SOC_CON6 0x418 static const struct rockchip_grf_value rk3228_defaults[] __initconst = { @@ -103,6 +114,9 @@ static const struct of_device_id rockchip_grf_dt_match[] __initconst = { .compatible = "rockchip,rk3036-grf", .data = (void *)&rk3036_grf, }, { + .compatible = "rockchip,rk3128-grf", + .data = (void *)&rk3128_grf, + }, { .compatible = "rockchip,rk3228-grf", .data = (void *)&rk3228_grf, }, { |