diff options
author | Keerthy <j-keerthy@ti.com> | 2016-09-30 09:20:42 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-11 10:17:04 -0600 |
commit | 34514b8b9ce287e2b8e90c77974889d8c53656fe (patch) | |
tree | 4425aed5ab580cce59ba279a70475b8600eeecd3 /include | |
parent | 477dfe2ffc45720462ff0baca82076d704b785df (diff) | |
download | u-boot-imx-34514b8b9ce287e2b8e90c77974889d8c53656fe.zip u-boot-imx-34514b8b9ce287e2b8e90c77974889d8c53656fe.tar.gz u-boot-imx-34514b8b9ce287e2b8e90c77974889d8c53656fe.tar.bz2 |
power: regulator: Add ctrl_reg and volt_reg fields for pmic
The ctrl reg contains bit fields to enable and disable regulators,
and volt_reg has the bit fields to configure the voltage values.
The registers are frequently accessed hence make them part
of dm_regulator_uclass_platdata structure.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/regulator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/power/regulator.h b/include/power/regulator.h index 911956c..f47ab67 100644 --- a/include/power/regulator.h +++ b/include/power/regulator.h @@ -153,6 +153,8 @@ enum regulator_flag { * TODO(sjg@chromium.org): Consider putting the above two into @flags * @flags: - flags value (see REGULATOR_FLAG_...) * @name** - fdt regulator name - should be taken from the device tree + * ctrl_reg: - Control register offset used to enable/disable regulator + * volt_reg: - register offset for writing voltage vsel values * * Note: * * - set automatically on device probe by the uclass's '.pre_probe' method. @@ -172,6 +174,8 @@ struct dm_regulator_uclass_platdata { bool boot_on; const char *name; int flags; + u8 ctrl_reg; + u8 volt_reg; }; /* Regulator device operations */ |