| * Copyright (C) 2015 Samsung Electronics |
| * Przemyslaw Marczak <p.marczak@samsung.com> |
| * SPDX-License-Identifier: GPL-2.0+ |
| #ifndef _DT_BINDINGS_SANDBOX_PMIC_H_ |
| #define _DT_BINDINGS_SANDBOX_PMIC_H_ |
| * Sandbox PMIC - prepare reset values |
| * To provide the default (reset) values as in the real hardware, |
| * the registers are set in i2c pmic emul driver's probe() method. |
| * The default values are defined as below. |
| /* Buck operation mode IDs */ |
| /* Ldo operation mode IDs */ |
| /* [Value uV/uA]/[Mode ID] to register */ |
| #define VAL2REG(min, step, val) (((val) - (min)) / (step)) |