Home
last modified time | relevance | path

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

12

/openbmc/u-boot/drivers/power/regulator/
H A Drk8xx.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Google, Inc
6 * Based on Rockchip's drivers/power/pmic/pmic_rk808.c:
7 * Copyright (C) 2012 rockchips
8 * zyw <zyw@rock-chips.com>
46 { 712500, 12500, -1, RK808_BUCK_VSEL_MASK, },
53 { 712500, 12500, -1, RK818_BUCK_VSEL_MASK, },
93 switch (priv->variant) { in get_buck_reg()
101 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
103 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck - 1); in _buck_set_value()
[all …]
H A Ds2mps11_regulator.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Samsung Electronics
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
[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 …]
H A Ds5m8767.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Google, Inc
47 * | voltage ----| | enable -| voltage
102 ret = pmic_reg_read(dev->parent, param->vol_addr); in reg_get_value()
106 desc = param->vol; in reg_get_value()
107 val = (ret >> param->vol_bitpos) & param->vol_bitmask; in reg_get_value()
108 uv = desc->min + val * desc->step; in reg_get_value()
119 desc = param->vol; in reg_set_value()
120 if (uv < desc->min || uv > desc->max) in reg_set_value()
121 return -EINVAL; in reg_set_value()
[all …]
H A Dstpmu1.c1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
50 for (i = 0, range = output_range->ranges; in stpmu1_output_find_uv()
51 i < output_range->nbranges; i++, range++) { in stpmu1_output_find_uv()
52 if (sel >= range->min_sel && sel <= range->max_sel) in stpmu1_output_find_uv()
53 return range->min_uv + in stpmu1_output_find_uv()
54 (sel - range->min_sel) * range->step; in stpmu1_output_find_uv()
57 return -EINVAL; in stpmu1_output_find_uv()
66 for (i = 0, range = output_range->ranges; in stpmu1_output_find_sel()
67 i < output_range->nbranges; i++, range++) { in stpmu1_output_find_sel()
[all …]
H A DKconfig4 ---help---
6 UCLASS_REGULATOR - designed to provide a common API for basic regulator's
10 - 'include/power/pmic.h'
11 - 'include/power/regulator.h'
12 - 'drivers/power/pmic/pmic-uclass.c'
13 - 'drivers/power/pmic/regulator-uclass.c'
22 ---help---
31 ---help---
42 driver implements enable/disable for step-down bucks and LDOs,
49 ---help---
[all …]
H A Dsandbox.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Samsung Electronics
29 * struct output_range - helper structure type to define the range of output
32 * @min - minimum value
33 * @max - maximum value
34 * @step - step value
42 /* BUCK: 1,2 - voltage range */
48 /* BUCK: 1 - current range */
53 /* BUCK operating modes */
60 /* LDO: 1,2 - voltage range */
[all …]
/openbmc/u-boot/include/power/
H A Ds5m8767.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2015 Google, Inc
59 * struct s5m8767_para - s5m8767 register parameters
60 * @param vol_addr i2c address of the given buck/ldo register
64 * given buck/ldo.
65 * @param reg_enbiton value to be written to buck/ldo to make it ON
H A Dsandbox_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Samsung Electronics
13 #define SANDBOX_OF_BUCK_PREFIX "buck"
50 /* Buck operation modes */
97 /* register <-> value conversion */
99 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
101 /* Operation mode id -> register value conversion */
104 /* Test data for: test/dm/power.c */
106 /* BUCK names */
122 * - regulator_autoset_by_name()
[all …]
H A Dmax77686_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2012 Samsung Electronics
160 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV);
161 int max77686_set_buck_mode(struct pmic *p, int buck, char opmode);
184 /* For regulator hex<->volt conversion */
188 #define MAX77686_BUCK_UV_LMIN 600000 /* Lower minimun BUCK value */
189 #define MAX77686_BUCK_UV_HMIN 750000 /* Higher minimun BUCK value */
H A Dstpmu1.h1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
10 #define STPMU1_BUCKX_CTRL_REG(buck) (0x20 + (buck)) argument
H A Drk8xx_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Google, Inc
190 int rk8xx_spl_configure_buck(struct udevice *pmic, int buck, int uvolt);
H A Dpmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2014-2015 Samsung Electronics
6 * Copyright (C) 2011-2012 Samsung Electronics
89 * U-Boot PMIC Framework
92 * UCLASS_PMIC - This is designed to provide an I/O interface for PMIC devices.
94 * For the multi-function PMIC devices, this can be used as parent I/O device
100 * |_ BUS 0 device (e.g. I2C0) - UCLASS_I2C/SPI/...
101 * | |_ PMIC device (READ/WRITE ops) - UCLASS_PMIC
102 * | |_ REGULATOR device (ldo/buck/... ops) - UCLASS_REGULATOR
103 * | |_ CHARGER device (charger ops) - UCLASS_CHARGER (in the future)
[all …]
H A Dpfuze100_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2014 Gateworks Corporation
72 * Buck Regulators
75 #define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250)
77 /* SW1A/B/C Output Voltage Configuration */
/openbmc/u-boot/drivers/power/pmic/
H A DKconfig4 ---help---
5 This config enables the driver-model PMIC support.
6 UCLASS_PMIC - designed to provide an I/O interface for PMIC devices.
7 For the multi-function PMIC devices, this can be used as parent I/O
10 - 'drivers/power/pmic/pmic-uclass.c'
11 - 'include/power/pmic.h'
17 ---help---
21 U-Boot proper.
27 ---help---
31 to call your regulator code (e.g. see rk8xx.c for direct functions
[all …]
H A Dmax77686.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2014-2015 Samsung Electronics
18 { .prefix = "BUCK", .driver = MAX77686_BUCK_DRIVER },
32 return -EIO; in max77686_write()
42 return -EIO; in max77686_read()
53 regulators_node = dev_read_subnode(dev, "voltage-regulators"); in max77686_bind()
56 dev->name); in max77686_bind()
57 return -ENXIO; in max77686_bind()
60 debug("%s: '%s' - found regulators subnode\n", __func__, dev->name); in max77686_bind()
64 debug("%s: %s - no child found\n", __func__, dev->name); in max77686_bind()
H A Dlp87565.c1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2017 Texas Instruments Incorporated, <www.ti.com>
4 * Keerthy <j-keerthy@ti.com>
18 { .prefix = "buck", .driver = LP87565_BUCK_DRIVER },
53 dev->name); in lp87565_bind()
54 return -ENXIO; in lp87565_bind()
57 debug("%s: '%s' - found regulators subnode\n", __func__, dev->name); in lp87565_bind()
61 printf("%s: %s - no child found\n", __func__, dev->name); in lp87565_bind()
74 { .compatible = "ti,lp87565-q1", .data = LP87565_Q1 },
H A Dlp873x.c1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2016 Texas Instruments Incorporated, <www.ti.com>
4 * Keerthy <j-keerthy@ti.com>
19 { .prefix = "buck", .driver = LP873X_BUCK_DRIVER },
28 return -EIO; in lp873x_write()
38 return -EIO; in lp873x_read()
52 dev->name); in lp873x_bind()
53 return -ENXIO; in lp873x_bind()
58 printf("%s: %s - no child found\n", __func__, dev->name); in lp873x_bind()
H A Dstpmu1.c1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
18 { .prefix = "buck", .driver = "stpmu1_buck" },
65 return -ENXIO; in stpmu1_bind()
H A Ds5m8767.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Google, Inc
17 { .prefix = "BUCK", .driver = S5M8767_BUCK_DRIVER },
31 return -EIO; in s5m8767_write()
41 return -EIO; in s5m8767_read()
60 dev->name); in s5m8767_bind()
61 return -ENXIO; in s5m8767_bind()
64 debug("%s: '%s' - found regulators subnode\n", __func__, dev->name); in s5m8767_bind()
68 debug("%s: %s - no child found\n", __func__, dev->name); in s5m8767_bind()
81 { .compatible = "samsung,s5m8767-pmic" },
/openbmc/openbmc/meta-security/docs/
H A Doverview.txt1 Meta-security Docs
17 bastille -c --os Yocto
27 bastille -l lists the configuration files that Bastille
41 Alternatives to Bastille include buck-security and checksecurity,
45 == redhat-security ==
51- rpm-chksec.sh : This will take an rpm name as input and verify each ELF file to see if its compi…
53 … It has a mode --all that is the equivalent of using rpm -qa and feeding the packages to it.
55 re-run using just the package name.
57 …!!! WARNING !!! - in order to use this script you need to add to your conf/local.conf file the fol…
58 IMAGE_ROOTFS_EXTRA_SPACE = "" - specifying the extra space of the image
[all …]
/openbmc/u-boot/doc/device-tree-bindings/pmic/
H A Dsandbox.txt4 - drivers/power/pmic/sandbox.c (for parent device)
5 - drivers/power/regulator/sandbox.c (for child regulators)
10 - doc/device-tree-bindings/regulator/sandbox.txt
13 - compatible: "sandbox,pmic"
14 - reg = 0x40
17 - compatible: "sandbox,i2c-pmic"
23 - ldo/buck subnodes of each device's regulator (see regulator binding info)
33 compatible = "sandbox,i2c-pmic";
/openbmc/u-boot/doc/driver-model/
H A Dpmic-framework.txt2 # (C) Copyright 2014-2015 Samsung Electronics
5 # SPDX-License-Identifier: GPL-2.0+
18 This is an introduction to driver-model multi uclass PMIC IC's support.
20 - UCLASS_PMIC - basic uclass type for PMIC I/O, which provides common
22 - UCLASS_REGULATOR - additional uclass type for specific PMIC features,
27 - drivers/power/pmic/pmic-uclass.c
28 - include/power/pmic.h
30 - drivers/power/regulator/regulator-uclass.c
31 - include/power/regulator.h
34 - common/cmd_pmic.c
[all …]
/openbmc/u-boot/include/dt-bindings/pmic/
H A Dsandbox_pmic.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Samsung Electronics
11 * Sandbox PMIC - prepare reset values
17 /* Buck operation mode IDs */
31 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
/openbmc/u-boot/doc/
H A DREADME.power-framework2 # (C) Copyright 2014 Samsung Electronics
5 # SPDX-License-Identifier: GPL-2.0+
9 ------------
11 This document describes the second version of the u-boot's PMIC (Power
16 ----------
18 Boards supported by u-boot are getting increasingly complex. Developers and
20 devices are now available on the board - namely power managers (PMIC), fuel
21 gauges (FG), micro USB interface controllers (MUIC), batteries, multi-function
25 -----------------------------------
28 The same device - e.g. MAX8997 uses two different I2C busses and addresses.
[all …]

12