mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
7d34aec52d
This patch refactors buck modes into a header file so that device trees can make use of these mode constants. The new header filename uses da9063 because DA9063 was the earlier chip and its driver code will want updating at some point in a similar manner. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Link: https://lore.kernel.org/r/1573652416-9848-2-git-send-email-chf.fritz@googlemail.com Signed-off-by: Mark Brown <broonie@kernel.org>
16 lines
439 B
C
16 lines
439 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _DT_BINDINGS_REGULATOR_DLG_DA9063_H
|
|
#define _DT_BINDINGS_REGULATOR_DLG_DA9063_H
|
|
|
|
/*
|
|
* These buck mode constants may be used to specify values in device tree
|
|
* properties (e.g. regulator-initial-mode).
|
|
* A description of the following modes is in the manufacturers datasheet.
|
|
*/
|
|
|
|
#define DA9063_BUCK_MODE_SLEEP 1
|
|
#define DA9063_BUCK_MODE_SYNC 2
|
|
#define DA9063_BUCK_MODE_AUTO 3
|
|
|
|
#endif
|