[PATCH v2 2/8] ARM: boards: protonic-rk356x: Remove VIN measurement
Robin van der Gracht
robin.van.der.gracht at protonic.nl
Tue Mar 10 08:24:27 PDT 2026
The VIN measurement is inaccurate and requires storing channel and
multiplier information in the board code. This becomes cumbersome
when more boards are added.
Signed-off-by: Robin van der Gracht <robin.van.der.gracht at protonic.nl>
---
arch/arm/boards/protonic-rk356x/board.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/arm/boards/protonic-rk356x/board.c b/arch/arm/boards/protonic-rk356x/board.c
index 51d08b6705..c01438847a 100644
--- a/arch/arm/boards/protonic-rk356x/board.c
+++ b/arch/arm/boards/protonic-rk356x/board.c
@@ -38,11 +38,6 @@ static int saradc_get_value(const char *chan)
return voltage;
}
-static int prt_rk356x_get_vin_mv(void)
-{
- return saradc_get_value("aiodev0.in_value2_mV") * 22;
-}
-
static bool prt_rk356x_get_usb_boot(void)
{
return saradc_get_value("aiodev0.in_value0_mV") < 74;
@@ -87,7 +82,6 @@ static void prt_rk356x_process_adc(struct device *dev)
}
pr_info("Board id: %d, revision %d\n", prt_priv.hw_id, prt_priv.hw_rev);
- pr_info("VIN = %d V\n", prt_rk356x_get_vin_mv() / 1000);
}
static int mecsbc_sd_of_fixup(struct device_node *root, void *context)
--
2.43.0
More information about the barebox
mailing list