Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e17ee5f0 authored by Shawn Lin's avatar Shawn Lin Committed by Heiko Stuebner
Browse files

soc: rockchip: disable jtag switching for RK3228/RK3229 SoCs



Disable IO function switching between sdmmc and jtag
for RK3228 and RK3229 SoCs.

Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 7928b2cb
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,17 @@ static const struct rockchip_grf_info rk3036_grf __initconst = {
	.num_values = ARRAY_SIZE(rk3036_defaults),
	.num_values = ARRAY_SIZE(rk3036_defaults),
};
};


#define RK3228_GRF_SOC_CON6		0x418

static const struct rockchip_grf_value rk3228_defaults[] __initconst = {
	{ "jtag switching", RK3228_GRF_SOC_CON6, HIWORD_UPDATE(0, 1, 8) },
};

static const struct rockchip_grf_info rk3228_grf __initconst = {
	.values = rk3228_defaults,
	.num_values = ARRAY_SIZE(rk3228_defaults),
};

#define RK3288_GRF_SOC_CON0		0x244
#define RK3288_GRF_SOC_CON0		0x244


static const struct rockchip_grf_value rk3288_defaults[] __initconst = {
static const struct rockchip_grf_value rk3288_defaults[] __initconst = {
@@ -91,6 +102,9 @@ static const struct of_device_id rockchip_grf_dt_match[] __initconst = {
	{
	{
		.compatible = "rockchip,rk3036-grf",
		.compatible = "rockchip,rk3036-grf",
		.data = (void *)&rk3036_grf,
		.data = (void *)&rk3036_grf,
	}, {
		.compatible = "rockchip,rk3228-grf",
		.data = (void *)&rk3228_grf,
	}, {
	}, {
		.compatible = "rockchip,rk3288-grf",
		.compatible = "rockchip,rk3288-grf",
		.data = (void *)&rk3288_grf,
		.data = (void *)&rk3288_grf,