| #
21342d4a |
| 08-Feb-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
e160f7d4 |
| 17-Jan-2017 |
Simon Glass <sjg@chromium.org> |
dm: core: Replace of_offset with accessor
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree,
dm: core: Replace of_offset with accessor
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree, which uses a node pointer instead, refactor existing code to access this field through an inline function.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
2d221489 |
| 29-Nov-2016 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
|
| #
8d089854 |
| 26-Nov-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-rockchip
|
| #
5483456e |
| 26-Oct-2016 |
Keerthy <j-keerthy@ti.com> |
power: regulator: Add limits checking while setting current
Currently the specific set ops functions are directly called without any check for min/max current limits for a regulator. Check for them
power: regulator: Add limits checking while setting current
Currently the specific set ops functions are directly called without any check for min/max current limits for a regulator. Check for them and proceed.
Signed-off-by: Keerthy <j-keerthy@ti.com> Fixed checking of current limits: Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
eaadcf38 |
| 26-Oct-2016 |
Keerthy <j-keerthy@ti.com> |
power: regulator: Add limits checking while setting voltage
Currently the specific set ops functions are directly called without any check for voltage limits for a regulator. Check for them and proc
power: regulator: Add limits checking while setting voltage
Currently the specific set ops functions are directly called without any check for voltage limits for a regulator. Check for them and proceed.
Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Fixed checking of voltate limits: Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
2f5d532f |
| 26-Oct-2016 |
Keerthy <j-keerthy@ti.com> |
power: regulator: Introduce regulator_set_value_force function
In case we want to force a particular value on a regulator irrespective of the min/max constraints for testing purposes one can call re
power: regulator: Introduce regulator_set_value_force function
In case we want to force a particular value on a regulator irrespective of the min/max constraints for testing purposes one can call regulator_set_value_force function.
Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
88033d73 |
| 14-Mar-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
3f603cbb |
| 11-Feb-2016 |
Simon Glass <sjg@chromium.org> |
dm: Use uclass_first_device_err() where it is useful
Use this new function in places where it simplifies the code.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
364809de |
| 22-Jan-2016 |
Simon Glass <sjg@chromium.org> |
dm: power: Allow regulators to not implement all operations
Some regulators will not implement any operations (e.g. fixed regulators). This is not an error, so allow the autoset process to continue
dm: power: Allow regulators to not implement all operations
Some regulators will not implement any operations (e.g. fixed regulators). This is not an error, so allow the autoset process to continue when one of these regulators is found.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
7d577999 |
| 22-Jan-2016 |
Simon Glass <sjg@chromium.org> |
dm: power: Tidy up debugging output and return values
The currect PMIC debugging is a little confusing. Adjust it so that it is clear whether the operation succeeded or failed. Also, avoid creating
dm: power: Tidy up debugging output and return values
The currect PMIC debugging is a little confusing. Adjust it so that it is clear whether the operation succeeded or failed. Also, avoid creating a new error return value when a perfectly good one is already available.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
5f5620ab |
| 12-Nov-2015 |
Stefano Babic <sbabic@denx.de> |
Merge git://git.denx.de/u-boot
|
| #
60b25259 |
| 05-Nov-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-samsung
|
| #
7c816e24 |
| 27-Oct-2015 |
Przemyslaw Marczak <p.marczak@samsung.com> |
dm: regulator: add function device_get_supply_regulator()
Some devices are supplied by configurable regulator's output. But there was no function for getting it. This commit adds function, that allo
dm: regulator: add function device_get_supply_regulator()
Some devices are supplied by configurable regulator's output. But there was no function for getting it. This commit adds function, that allows for getting the supply device by it's phandle.
The returned regulator device can be used with regulator uclass's API.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
show more ...
|
| #
cf260011 |
| 07-Aug-2015 |
Peng Fan <Peng.Fan@freescale.com> |
power: regulator use node name when no regulator-name
If there is no property named 'regulator-name' for regulators, choose node name instead, but not directly return failure value.
Signed-off-by:
power: regulator use node name when no regulator-name
If there is no property named 'regulator-name' for regulators, choose node name instead, but not directly return failure value.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Cc: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Simon Glass <sjg@chromium.org>
show more ...
|
| #
ae27120c |
| 06-Aug-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
d08504d1 |
| 03-Jul-2015 |
Simon Glass <sjg@chromium.org> |
dm: power: Don't return an error when regulators are not autoset
Not all regulators can be set up automatically. Adjust the code so that regulators_enable_boot_on() will return success when some are
dm: power: Don't return an error when regulators are not autoset
Not all regulators can be set up automatically. Adjust the code so that regulators_enable_boot_on() will return success when some are skipped. Only genuine errors are reported.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
59c26a9c |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: power: Use debug() for errors in regulator uclass
To reduce unnecessary code size in an uncommon code path, use debug() where possible(). The driver returns an error which indicates failure.
Si
dm: power: Use debug() for errors in regulator uclass
To reduce unnecessary code size in an uncommon code path, use debug() where possible(). The driver returns an error which indicates failure.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
083fc83a |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: power: Add a function to set up all regulators
The device tree provides information about which regulators should be on at boot, or always on. Use this to set them up automatically.
Signed-off-
dm: power: Add a function to set up all regulators
The device tree provides information about which regulators should be on at boot, or always on. Use this to set them up automatically.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
3b55d30f |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: pmic: Split output from function
The regulator_autoset() function mixes printf() output and PMIC adjustment code. It provides a boolean to control the output. It is better to avoid missing logic
dm: pmic: Split output from function
The regulator_autoset() function mixes printf() output and PMIC adjustment code. It provides a boolean to control the output. It is better to avoid missing logic and output, and this permits a smaller SPL code size. So split the output into a separate function.
Also rename the function to have a by_name() suffix, since we would like to be able to pass a device when we know it, and thus avoid the name search.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
7837ceab |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: power: Add regulator flags to centralise auto-set logic
Decide when the regulator is set up whether we want to auto-set the voltage or current. This avoids the complex logic spilling into the pr
dm: power: Add regulator flags to centralise auto-set logic
Decide when the regulator is set up whether we want to auto-set the voltage or current. This avoids the complex logic spilling into the processing code.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
3b880757 |
| 13-May-2015 |
Przemyslaw Marczak <p.marczak@samsung.com> |
dm: regulator: uclass driver code cleanup
This cleanup includes: - remove of the preprocessor macros which pointed to long name functions - update of the names of some regulator uclass driver functi
dm: regulator: uclass driver code cleanup
This cleanup includes: - remove of the preprocessor macros which pointed to long name functions - update of the names of some regulator uclass driver functions - cleanup of the function regulator_autoset() - reword of some comments of regulator uclass header file - regulator_get_by_platname: check error for uclass_find_* function calls - add function: regulator_name_is_unique - regulator post_bind(): check regulator name uniqueness - fix mistakes in: regulator/Kconfig - regulator.h: update comments - odroid u3: cleanup the regulator calls
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Tested on sandbox: Tested-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
af41e8db |
| 20-Apr-2015 |
Przemyslaw Marczak <p.marczak@samsung.com> |
dm: regulator: add implementation of driver model regulator uclass
This commit introduces the implementation of dm regulator API. Device tree support allows for auto binding. And by the basic uclass
dm: regulator: add implementation of driver model regulator uclass
This commit introduces the implementation of dm regulator API. Device tree support allows for auto binding. And by the basic uclass operations, it allows to driving the devices in a common way. For detailed informations, please look into the header file.
Core files: - drivers/power/regulator-uclass.c - provides regulator common functions api - include/power/regulator.h - define all structures required by the regulator
Changes: - new uclass-id: UCLASS_REGULATOR - new config: CONFIG_DM_REGULATOR
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|