mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
45 lines
1.1 KiB
Diff
45 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: ARC-MX <wmx129674@126.com>
|
|
Date: Thu, 25 Jul 2024 17:44:54 +0800
|
|
Subject: drivers:regulator:fan53555:add new device chip id
|
|
|
|
drivers:regulator:fan53555
|
|
|
|
When I use fan53555, I see an error:
|
|
|
|
FAN53555-regulator 0-0060: Chip ID 0 with rev 12 not supported!
|
|
|
|
So I fixed this bug
|
|
|
|
Signed-off-by: ARC-MX <wmx129674@126.com>
|
|
---
|
|
drivers/regulator/fan53555.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c
|
|
index 111111111111..222222222222 100644
|
|
--- a/drivers/regulator/fan53555.c
|
|
+++ b/drivers/regulator/fan53555.c
|
|
@@ -113,6 +113,7 @@ enum {
|
|
enum {
|
|
FAN53555_CHIP_REV_00 = 0x3,
|
|
FAN53555_CHIP_REV_13 = 0xf,
|
|
+ FAN53555_CHIP_REV_23 = 0xc,
|
|
};
|
|
|
|
enum {
|
|
@@ -305,6 +306,10 @@ static int fan53555_voltages_setup_fairchild(struct fan53555_device_info *di)
|
|
di->vsel_step = 10000;
|
|
di->enable_time = 400;
|
|
break;
|
|
+ case FAN53555_CHIP_REV_23:
|
|
+ di->vsel_min = 600000;
|
|
+ di->vsel_step = 12500;
|
|
+ break;
|
|
default:
|
|
dev_err(di->dev,
|
|
"Chip ID %d with rev %d not supported!\n",
|
|
--
|
|
Armbian
|
|
|