2 * Copyright (C) 2015 Samsung Electronics
3 * Przemyslaw Marczak <p.marczak@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _DT_BINDINGS_SANDBOX_PMIC_H_
9 #define _DT_BINDINGS_SANDBOX_PMIC_H_
12 * Sandbox PMIC - prepare reset values
13 * To provide the default (reset) values as in the real hardware,
14 * the registers are set in i2c pmic emul driver's probe() method.
15 * The default values are defined as below.
18 /* Buck operation mode IDs */
22 #define BUCK_OM_COUNT 3
24 /* Ldo operation mode IDs */
27 #define LDO_OM_SLEEP 2
28 #define LDO_OM_STANDBY 3
29 #define LDO_OM_COUNT 4
31 /* [Value uV/uA]/[Mode ID] to register */
32 #define VAL2REG(min, step, val) (((val) - (min)) / (step))
33 #define VAL2OMREG(x) (x)