summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rockchip
diff options
context:
space:
mode:
authorFrank Wunderlich <frank-w@public-files.de>2022-05-14 17:56:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-05-16 10:28:31 +0200
commitafff835cb96938ee98409a3c9788aa703acaf5d6 (patch)
tree594e5de7a718a707f0faa727b999948c70cc9615 /arch/arm/mach-rockchip
parent0c9bf7cada39c5f41c4f3f32c8262b288173c612 (diff)
downloadbarebox-afff835cb96938ee98409a3c9788aa703acaf5d6.tar.gz
barebox-afff835cb96938ee98409a3c9788aa703acaf5d6.tar.xz
ARM: rockchip: fix iodomain for r2pro V1.0
Current code sets vccio4 and vccio6 both to 1v8. R2Pro v1.0 needs 3v3 setting on vccio4, else gmac0 (switch for lan-ports) will be damaged. IO-domain is per default 3v3 so only vccio6 needs to be set to 1v8 and clear this bit in the 3v3 register. Fixes: 8ba96c5942d6 ("ARM: rockchip: add BPI-R2-Pro V00 board") Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Link: https://lore.barebox.org/20220514155609.8306-1-linux@fw-web.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-rockchip')
-rw-r--r--arch/arm/mach-rockchip/include/mach/rockchip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/include/mach/rockchip.h b/arch/arm/mach-rockchip/include/mach/rockchip.h
index f24db36f01..ff8b1109f8 100644
--- a/arch/arm/mach-rockchip/include/mach/rockchip.h
+++ b/arch/arm/mach-rockchip/include/mach/rockchip.h
@@ -23,6 +23,9 @@ static inline int rk3288_init(void)
#ifdef CONFIG_ARCH_RK3568
int rk3568_init(void);
+#define PMU_GRF 0xfdc20000
+#define PMU_GRF_IO_VSEL0 (PMU_GRF + 0x140)
+#define PMU_GRF_IO_VSEL1 (PMU_GRF + 0x144)
#else
static inline int rk3568_init(void)
{