Skip to content

Commit d4692f6

Browse files
committed
Merge tag 'v6.6-rockchip-drivers1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into soc/drivers
PD_VO powerdomain for rv1126 and disabling of the automatic switch between sdmmc and jtag for rk3588 (makes sdmmc unreliable). This includes the shared genpd-v6.5-rc1-1 tag from Ulf Hansson, which moves the powerdomain drivers into a new genpd subsystem. * tag 'v6.6-rockchip-drivers1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: soc: rockchip: grf: Fix SDMMC not working on RK3588 with bus-width > 1 genpd: rockchip: Add PD_VO entry for rv1126 Link: https://lore.kernel.org/r/40318909.XM6RcZxFsP@phil Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 7d66128 + 6f6878e commit d4692f6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

drivers/genpd/rockchip/pm-domains.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ static const struct rockchip_domain_info px30_pm_domains[] = {
976976
static const struct rockchip_domain_info rv1126_pm_domains[] = {
977977
[RV1126_PD_VEPU] = DOMAIN_RV1126("vepu", BIT(2), BIT(9), BIT(9), false),
978978
[RV1126_PD_VI] = DOMAIN_RV1126("vi", BIT(4), BIT(6), BIT(6), false),
979+
[RV1126_PD_VO] = DOMAIN_RV1126("vo", BIT(5), BIT(7), BIT(7), false),
979980
[RV1126_PD_ISPP] = DOMAIN_RV1126("ispp", BIT(1), BIT(8), BIT(8), false),
980981
[RV1126_PD_VDPU] = DOMAIN_RV1126("vdpu", BIT(3), BIT(10), BIT(10), false),
981982
[RV1126_PD_NVM] = DOMAIN_RV1126("nvm", BIT(7), BIT(11), BIT(11), false),

drivers/soc/rockchip/grf.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ static const struct rockchip_grf_info rk3566_pipegrf __initconst = {
121121
.num_values = ARRAY_SIZE(rk3566_defaults),
122122
};
123123

124+
#define RK3588_GRF_SOC_CON6 0x0318
125+
126+
static const struct rockchip_grf_value rk3588_defaults[] __initconst = {
127+
{ "jtag switching", RK3588_GRF_SOC_CON6, HIWORD_UPDATE(0, 1, 14) },
128+
};
129+
130+
static const struct rockchip_grf_info rk3588_sysgrf __initconst = {
131+
.values = rk3588_defaults,
132+
.num_values = ARRAY_SIZE(rk3588_defaults),
133+
};
134+
124135

125136
static const struct of_device_id rockchip_grf_dt_match[] __initconst = {
126137
{
@@ -147,6 +158,9 @@ static const struct of_device_id rockchip_grf_dt_match[] __initconst = {
147158
}, {
148159
.compatible = "rockchip,rk3566-pipe-grf",
149160
.data = (void *)&rk3566_pipegrf,
161+
}, {
162+
.compatible = "rockchip,rk3588-sys-grf",
163+
.data = (void *)&rk3588_sysgrf,
150164
},
151165
{ /* sentinel */ },
152166
};

0 commit comments

Comments
 (0)