Home
last modified time | relevance | path

Searched +full:buck +full:- +full:d (Results 1 – 25 of 92) sorted by relevance

1234

/openbmc/openbmc/meta-security/recipes-scanners/buck-security/
H A Dbuck-security_0.7.bb2 DESCRIPTION = "Buck-Security is a security scanner for Debian and Ubuntu Linux. It runs a couple of…
5 LICENSE = "GPL-2.0-only"
6 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
8 SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buck-security_${PV}/${…
19 install -d ${D}${bindir}/buck
20 cp -r ${S}/* ${D}${bindir}/buck
21 cp -r ${S}/buck-security ${D}${bindir}
22 …sed -i 's!use lib "checks"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "bu…
23 …sed -i 's!use lib "checks/lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)),…
24 …sed -i 's!use lib "lib"!use lib File::Spec->catfile(dirname(File::Spec->rel2abs(__FILE__)), "buck/…
[all …]
/openbmc/u-boot/drivers/power/regulator/
H A Ds2mps11_regulator.c1 // SPDX-License-Identifier: GPL-2.0
22 /* BUCK : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 */
44 static int s2mps11_buck_hex2volt(int buck, int hex) in s2mps11_buck_hex2volt() argument
51 switch (buck) { in s2mps11_buck_hex2volt()
66 if (buck == 5 && hex > S2MPS11_BUCK5_VOLT_MAX_HEX) in s2mps11_buck_hex2volt()
68 else if (buck != 5 && hex > S2MPS11_BUCK_VOLT_MAX_HEX) in s2mps11_buck_hex2volt()
77 pr_err("Value: %#x is wrong for BUCK%d", hex, buck); in s2mps11_buck_hex2volt()
78 return -EINVAL; in s2mps11_buck_hex2volt()
81 static int s2mps11_buck_volt2hex(int buck, int uV) in s2mps11_buck_volt2hex() argument
85 switch (buck) { in s2mps11_buck_volt2hex()
[all …]
H A Dmax77686.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2012-2015 Samsung Electronics
40 /* Buck: 1 */
47 /* Buck: 2,3,4 */
55 /* Buck: 5,6,7,8,9 */
69 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument
74 switch (buck) { in max77686_buck_volt2hex()
78 /* hex = (uV - 600000) / 12500; */ in max77686_buck_volt2hex()
79 hex = (uV - MAX77686_BUCK_UV_LMIN) / MAX77686_BUCK_UV_LSTEP; in max77686_buck_volt2hex()
84 * hex = (uV - 750000) / 50000. We assume that dynamic voltage in max77686_buck_volt2hex()
[all …]
/openbmc/linux/drivers/regulator/
H A Dlp8788-buck.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8788 MFD - buck regulator driver
94 /* BUCK 1 ~ 4 voltage ranges */
100 static void lp8788_buck1_set_dvs(struct lp8788_buck *buck) in lp8788_buck1_set_dvs() argument
102 struct lp8788_buck1_dvs *dvs = (struct lp8788_buck1_dvs *)buck->dvs; in lp8788_buck1_set_dvs()
108 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs()
109 if (gpio_is_valid(dvs->gpio)) in lp8788_buck1_set_dvs()
110 gpio_set_value(dvs->gpio, pinstate); in lp8788_buck1_set_dvs()
113 static void lp8788_buck2_set_dvs(struct lp8788_buck *buck) in lp8788_buck2_set_dvs() argument
115 struct lp8788_buck2_dvs *dvs = (struct lp8788_buck2_dvs *)buck->dvs; in lp8788_buck2_set_dvs()
[all …]
H A Drtq2208-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
95 (const struct rtq2208_regulator_desc *)rdev->desc; in rtq2208_set_mode()
106 return -EINVAL; in rtq2208_set_mode()
109 shift = ffs(rdesc->mode_mask) - 1; in rtq2208_set_mode()
110 return regmap_update_bits(rdev->regmap, rdesc->mode_reg, in rtq2208_set_mode()
111 rdesc->mode_mask, val << shift); in rtq2208_set_mode()
117 (const struct rtq2208_regulator_desc *)rdev->desc; in rtq2208_get_mode()
121 ret = regmap_read(rdev->regmap, rdesc->mode_reg, &mode_val); in rtq2208_get_mode()
125 return (mode_val & rdesc->mode_mask) ? REGULATOR_MODE_FAST : REGULATOR_MODE_NORMAL; in rtq2208_get_mode()
130 const struct regulator_desc *desc = rdev->desc; in rtq2208_set_ramp_delay()
[all …]
H A Dlp3972.c1 // SPDX-License-Identifier: GPL-2.0-only
147 LP3972_LDO1 -> 0, LP3972_LDO2 -> 4
148 LP3972_LDO3 -> 0, LP3972_LDO4 -> 4
149 LP3972_LDO5 -> 0
169 return -EIO; in lp3972_i2c_read()
182 return -EIO; in lp3972_i2c_write()
190 mutex_lock(&lp3972->io_lock); in lp3972_reg_read()
192 lp3972_i2c_read(lp3972->i2c, reg, 1, &val); in lp3972_reg_read()
194 dev_dbg(lp3972->dev, "reg read 0x%02x -> 0x%02x\n", (int)reg, in lp3972_reg_read()
197 mutex_unlock(&lp3972->io_lock); in lp3972_reg_read()
[all …]
H A Dlp3971.c1 // SPDX-License-Identifier: GPL-2.0-only
40 LP3971_BUCK1 -> 0
41 LP3971_BUCK2 -> 4
42 LP3971_BUCK3 -> 6
77 LP3971_LDO1 -> LP3971_LDO_VOL_CONTR_BASE + 0
78 LP3971_LDO2 -> LP3971_LDO_VOL_CONTR_BASE + 0
79 LP3971_LDO3 -> LP3971_LDO_VOL_CONTR_BASE + 1
80 LP3971_LDO4 -> LP3971_LDO_VOL_CONTR_BASE + 1
81 LP3971_LDO5 -> LP3971_LDO_VOL_CONTR_BASE + 2
86 LP3971_LDO1 -> 0, LP3971_LDO2 -> 4
[all …]
H A Dmt6397-regulator.c1 // SPDX-License-Identifier: GPL-2.0
14 #include <linux/regulator/mt6397-regulator.h>
16 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
24 * @vselctrl_reg: Register for controlling the buck control mode.
25 * @vselctrl_mask: Mask for query buck's voltage control mode.
48 .n_voltages = (max - min)/step + 1, \
172 ret = -EINVAL; in mt6397_regulator_set_mode()
176 dev_dbg(&rdev->dev, "mt6397 buck set_mode %#x, %#x, %#x\n", in mt6397_regulator_set_mode()
177 info->modeset_reg, info->modeset_mask, val); in mt6397_regulator_set_mode()
179 val <<= ffs(info->modeset_mask) - 1; in mt6397_regulator_set_mode()
[all …]
H A Dmax77802-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77802.c - Regulator driver for the Maxim 77802
5 // Copyright (C) 2013-2014 Google, Inc
24 #include <linux/mfd/max77686-private.h>
25 #include <dt-bindings/regulator/maxim,max77802.h>
83 return -EINVAL; in max77802_get_opmode_shift()
87 * max77802_set_suspend_disable - Disable the regulator during system suspend
100 if (WARN_ON_ONCE(id >= ARRAY_SIZE(max77802->opmode))) in max77802_set_suspend_disable()
101 return -EINVAL; in max77802_set_suspend_disable()
102 max77802->opmode[id] = val; in max77802_set_suspend_disable()
[all …]
H A Dmax77686-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77686.c - Regulator driver for the Maxim 77686
21 #include <linux/mfd/max77686-private.h>
37 * Value for configuring buck[89] and LDO{20,21,22} as GPIO control.
43 * Forcing low power mode: LDO1, 3-5, 9, 13, 17-26
48 * - LDO2, 6-8, 10-12, 14-16
49 * - buck[1234]
54 /* Forcing low power mode: buck[234] */
105 if (test_bit(id, max77686->gpio_enabled)) in max77686_map_normal_mode()
122 ret = regmap_update_bits(rdev->regmap, rdev->desc->enable_reg, in max77686_set_suspend_disable()
[all …]
H A Dda9121-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // DA9121 Single-channel dual-phase 10A buck converter
7 // DA9130 Single-channel dual-phase 10A buck converter (Automotive)
8 // DA9217 Single-channel dual-phase 6A buck converter
9 // DA9122 Dual-channel single-phase 5A buck converter
10 // DA9131 Dual-channel single-phase 5A buck converter (Automotive)
11 // DA9220 Dual-channel single-phase 3A buck converter
12 // DA9132 Dual-channel single-phase 3A buck converter (Automotive)
30 #include "da9121-regulator.h"
136 int buck_id; /* 0=core, 1/2-buck */
[all …]
H A Dmt6332-regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 // Based on mt6323-regulator.c,
18 #include <linux/regulator/mt6332-regulator.h>
30 * @vselctrl_reg: Register for controlling the buck control mode.
31 * @vselctrl_mask: Mask for query buck's voltage control mode.
57 .n_voltages = (max - min)/step + 1, \
83 .n_voltages = (max - min)/step + 1, \
188 if (info->qi > 0) { in mt6332_get_status()
189 reg = info->desc.enable_reg; in mt6332_get_status()
190 en_mask = info->qi; in mt6332_get_status()
[all …]
H A Dmax8893.c1 // SPDX-License-Identifier: GPL-2.0+
20 .name = "BUCK",
21 .supply_name = "in-buck",
22 .of_match = of_match_ptr("buck"),
38 .supply_name = "in-ldo1",
55 .supply_name = "in-ldo2",
72 .supply_name = "in-ldo3",
89 .supply_name = "in-ldo4",
106 .supply_name = "in-ldo5",
131 struct regulator_config config = {.dev = &i2c->dev}; in max8893_probe()
[all …]
H A Dmax8998.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max8998.c - Voltage regulator driver for the Maxim 8998
5 // Copyright (C) 2009-2010 Samsung Electronics
23 #include <linux/mfd/max8998-private.h>
48 *shift = 3 - (ldo - MAX8998_LDO2); in max8998_get_enable_register()
52 *shift = 7 - (ldo - MAX8998_LDO6); in max8998_get_enable_register()
56 *shift = 7 - (ldo - MAX8998_LDO14); in max8998_get_enable_register()
60 *shift = 7 - (ldo - MAX8998_BUCK1); in max8998_get_enable_register()
64 *shift = 7 - (ldo - MAX8998_EN32KHZ_AP); in max8998_get_enable_register()
68 *shift = 7 - (ldo - MAX8998_ESAFEOUT1); in max8998_get_enable_register()
[all …]
H A Dmt6357-regulator.c1 // SPDX-License-Identifier: GPL-2.0
9 // Based on mt6397-regulator.c
20 #include <linux/regulator/mt6357-regulator.h>
27 * @da_vsel_reg: Monitor register for query buck's voltage.
28 * @da_vsel_mask: Mask for query buck's voltage.
47 .n_voltages = ((max) - (min)) / (step) + 1, \
90 .n_voltages = ((max) - (min)) / (step) + 1, \
120 * mt6357_get_buck_voltage_sel - get_voltage_sel for regmap users
133 ret = regmap_read(rdev->regmap, info->da_vsel_reg, &regval); in mt6357_get_buck_voltage_sel()
135 dev_err(&rdev->dev, in mt6357_get_buck_voltage_sel()
[all …]
H A Ds2mps11.c1 // SPDX-License-Identifier: GPL-2.0+
3 // Copyright (c) 2012-2014 Samsung Electronics Co., Ltd
43 * Array (size: number of regulators) with GPIO-s for external
79 ramp_delay = s2mps11->ramp_delay2; in s2mps11_regulator_set_voltage_time_sel()
83 ramp_delay = s2mps11->ramp_delay34; in s2mps11_regulator_set_voltage_time_sel()
86 ramp_delay = s2mps11->ramp_delay5; in s2mps11_regulator_set_voltage_time_sel()
90 ramp_delay = s2mps11->ramp_delay16; in s2mps11_regulator_set_voltage_time_sel()
95 ramp_delay = s2mps11->ramp_delay7810; in s2mps11_regulator_set_voltage_time_sel()
98 ramp_delay = s2mps11->ramp_delay9; in s2mps11_regulator_set_voltage_time_sel()
102 ramp_delay = rdev->desc->ramp_delay; in s2mps11_regulator_set_voltage_time_sel()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
38 managed regulators and simple non-configurable regulators.
65 They provide two I2C-controlled DC/DC step-down converters with
85 tristate "Active-semi act8865 voltage regulator"
90 This driver controls a active-semi act8865 voltage output
94 tristate "Active-semi ACT8945A voltage regulator"
97 This driver controls a active-semi ACT8945A voltage regulator
98 via I2C bus. The ACT8945A features three step-down DC/DC converters
99 and four low-dropout linear regulators, along with a ActivePath
110 tristate "Freescale i.MX on-chip ANATOP LDO regulators"
[all …]
H A Dmt6331-regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 // Based on mt6323-regulator.c,
18 #include <linux/regulator/mt6331-regulator.h>
30 * @vselctrl_reg: Register for controlling the buck control mode.
31 * @vselctrl_mask: Mask for query buck's voltage control mode.
57 .n_voltages = (max - min)/step + 1, \
212 ret = regmap_read(rdev->regmap, info->desc.enable_reg, &regval); in mt6331_get_status()
214 dev_err(&rdev->dev, "Failed to get enable reg: %d\n", ret); in mt6331_get_status()
218 return (regval & info->qi) ? REGULATOR_STATUS_ON : REGULATOR_STATUS_OFF; in mt6331_get_status()
234 return -EINVAL; in mt6331_ldo_set_mode()
[all …]
H A Dlp872x.c1 // SPDX-License-Identifier: GPL-2.0-only
92 /* dump registers in regmap-debugfs */
133 /* LP8720 BUCK voltage table */
142 /* LP8725 BUCK voltage table */
150 /* LP8725 BUCK current limit */
160 ret = regmap_read(lp->regmap, addr, &val); in lp872x_read_byte()
162 dev_err(lp->dev, "failed to read 0x%.2x\n", addr); in lp872x_read_byte()
172 return regmap_write(lp->regmap, addr, data); in lp872x_write_byte()
178 return regmap_update_bits(lp->regmap, addr, mask, data); in lp872x_update_bits()
183 enum lp872x_id chip = lp->chipid; in lp872x_get_timestep_usec()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Drichtek,rtq2208.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alina Yu <alina_yu@richtek.com>
14 multi-configurable synchronous buck converters and two LDOs.
16 Bucks support "regulator-allowed-modes" and "regulator-mode". The former defines the permitted
20 operation modes for all buck rails, automatic power saving mode (Auto mode) and forced continuous
25 0 - Auto mode for power saving, which reducing the switching frequency at light load condition
27 …1 - FCCM to meet the strict voltage regulation accuracy, which keeping constant switching frequenc…
35 - richtek,rtq2208
[all …]
H A Dmediatek,mt6331-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6331-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
13 The MT6331 PMIC provides 6 BUCK and 21 LDO (Low Dropout) regulators
15 buck-<name> and ldo-<name>.
19 "^buck-v(core2|io18|dvfs11|dvfs12|dvfs13|dvfs14)$":
24 regulator-name:
29 "^ldo-v(avdd32aud|auxa32)$":
[all …]
/openbmc/linux/drivers/mfd/
H A Dlp8788.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8788 MFD - core interface
72 MFD_DEV_WITH_ID(BUCK, 1),
73 MFD_DEV_WITH_ID(BUCK, 2),
74 MFD_DEV_WITH_ID(BUCK, 3),
75 MFD_DEV_WITH_ID(BUCK, 4),
127 ret = regmap_read(lp->regmap, reg, &val); in lp8788_read_byte()
129 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp8788_read_byte()
140 return regmap_bulk_read(lp->regmap, reg, data, count); in lp8788_read_multi_bytes()
146 return regmap_write(lp->regmap, reg, data); in lp8788_write_byte()
[all …]
H A Dmt6358-irq.c1 // SPDX-License-Identifier: GPL-2.0
22 MT6357_TOP_GEN(BUCK),
33 MT6358_TOP_GEN(BUCK),
44 MT6359_TOP_GEN(BUCK),
79 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_enable()
81 irqd->enable_hwirq[hwirq] = true; in pmic_irq_enable()
88 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_disable()
90 irqd->enable_hwirq[hwirq] = false; in pmic_irq_disable()
97 mutex_lock(&chip->irqlock); in pmic_irq_lock()
104 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_sync_unlock()
[all …]
/openbmc/linux/drivers/input/misc/
H A Dpmic8xxx-pwrkey.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
45 /* Buck CTRL register */
52 /* Buck TEST2 registers for shutdown/reset */
62 /* Buck TEST2 register bank 1 */
65 /* Buck TEST2 register bank 7 */
71 * struct pmic8xxx_pwrkey - pmic8xxx pwrkey information
107 enable_irq_wake(pwrkey->key_press_irq); in pmic8xxx_pwrkey_suspend()
117 disable_irq_wake(pwrkey->key_press_irq); in pmic8xxx_pwrkey_resume()
132 if (pwrkey->shutdown_fn) { in pmic8xxx_pwrkey_shutdown()
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dwcd-clsh-v2.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
3 // Copyright (c) 2017-2018, Linaro Limited
10 #include "wcd-clsh-v2.h"
22 /* Class-H registers for codecs from and above WCD9335 */
122 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block()
124 if ((enable && ++ctrl->clsh_users == 1) || in wcd_enable_clsh_block()
125 (!enable && --ctrl->clsh_users == 0)) in wcd_enable_clsh_block()
129 if (ctrl->clsh_users < 0) in wcd_enable_clsh_block()
130 ctrl->clsh_users = 0; in wcd_enable_clsh_block()
[all …]

1234