From 1e00993cd8087ca0d27232be91fd470cd958083e Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Fri, 8 Aug 2014 13:38:31 +0000 Subject: imx6: drop 3.10 support Signed-off-by: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42075 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...fuze100-Simplify-pfuze100_set_ramp_delay-.patch | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100644 target/linux/imx6/patches-3.10/0027-regulator-pfuze100-Simplify-pfuze100_set_ramp_delay-.patch (limited to 'target/linux/imx6/patches-3.10/0027-regulator-pfuze100-Simplify-pfuze100_set_ramp_delay-.patch') diff --git a/target/linux/imx6/patches-3.10/0027-regulator-pfuze100-Simplify-pfuze100_set_ramp_delay-.patch b/target/linux/imx6/patches-3.10/0027-regulator-pfuze100-Simplify-pfuze100_set_ramp_delay-.patch deleted file mode 100644 index 1089dffba2..0000000000 --- a/target/linux/imx6/patches-3.10/0027-regulator-pfuze100-Simplify-pfuze100_set_ramp_delay-.patch +++ /dev/null @@ -1,56 +0,0 @@ -From: Axel Lin -Subject: [PATCH] regulator: pfuze100: Simplify pfuze100_set_ramp_delay - implementation - -Simplify the equation to calculate ramp_delay. -Below equations are equivalent: - ramp_delay = 25000 / (2 * ramp_delay); - ramp_delay = 50000 / (4 * ramp_delay); - ramp_delay = 25000 / (2 * ramp_delay); - ramp_delay = 12500 / ramp_delay; -So we don't need to read BIT6 of rdev->desc->vsel_reg for applying different -equations. - -Also use rdev->desc->vsel_reg instead of run-time calculate register address. - -Signed-off-by: Axel Lin -Reviewed-by: Robin Gong -Signed-off-by: Mark Brown ---- - drivers/regulator/pfuze100-regulator.c | 21 +++++---------------- - 1 file changed, 5 insertions(+), 16 deletions(-) - ---- a/drivers/regulator/pfuze100-regulator.c -+++ b/drivers/regulator/pfuze100-regulator.c -@@ -93,26 +93,15 @@ static int pfuze100_set_ramp_delay(struc - { - struct pfuze_chip *pfuze100 = rdev_get_drvdata(rdev); - int id = rdev->desc->id; -- unsigned int val, ramp_bits, reg; -+ unsigned int ramp_bits; - int ret; - - if (id < PFUZE100_SWBST) { -- if (id == PFUZE100_SW1AB) -- reg = PFUZE100_SW1ABVOL; -- else -- reg = PFUZE100_SW1CVOL + (id - PFUZE100_SW1C) * 7; -- regmap_read(pfuze100->regmap, reg, &val); -- -- if (id <= PFUZE100_SW1C) -- ramp_delay = 25000 / (2 * ramp_delay); -- else if (val & 0x40) -- ramp_delay = 50000 / (4 * ramp_delay); -- else -- ramp_delay = 25000 / (2 * ramp_delay); -- -+ ramp_delay = 12500 / ramp_delay; - ramp_bits = (ramp_delay >> 1) - (ramp_delay >> 3); -- ret = regmap_update_bits(pfuze100->regmap, reg + 4 , 0xc0, -- ramp_bits << 6); -+ ret = regmap_update_bits(pfuze100->regmap, -+ rdev->desc->vsel_reg + 4, -+ 0xc0, ramp_bits << 6); - if (ret < 0) - dev_err(pfuze100->dev, "ramp failed, err %d\n", ret); - } else -- cgit v1.2.3