UPSTREAM: regulator: fan53555: Add support for FAN53555BUC18X type
authorWadim Egorov <w.egorov@phytec.de>
Wed, 20 Apr 2016 08:01:07 +0000 (10:01 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 20 Apr 2017 00:45:06 +0000 (08:45 +0800)
FAN53555BUC18X has the DIE_ID 8, starts at 600mV and
increments in 10mV steps.

Change-Id: If4f7d2d911748c42e79ad8268b884275d4230aef
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 5e39cf49729b910795daa0b86052463d23c0a18d)
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
drivers/regulator/fan53555.c

index f6ded702419581163d1c989578cc922ad6010d90..f892808d87cf49c950a66d09eedadb60e3351fd6 100644 (file)
@@ -67,6 +67,7 @@ enum {
        FAN53555_CHIP_ID_03,
        FAN53555_CHIP_ID_04,
        FAN53555_CHIP_ID_05,
+       FAN53555_CHIP_ID_08 = 8,
 };
 
 enum {
@@ -278,6 +279,7 @@ static int fan53555_voltages_setup_fairchild(struct fan53555_device_info *di)
        case FAN53555_CHIP_ID_01:
        case FAN53555_CHIP_ID_03:
        case FAN53555_CHIP_ID_05:
+       case FAN53555_CHIP_ID_08:
                di->vsel_min = 600000;
                di->vsel_step = 10000;
                break;