From: Keerthy <j-keerthy@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 1/6] power: regulator: Add ctrl_reg and volt_reg fields for pmic
Date: Fri, 30 Sep 2016 09:20:42 +0530 [thread overview]
Message-ID: <1475207447-18715-2-git-send-email-j-keerthy@ti.com> (raw)
In-Reply-To: <1475207447-18715-1-git-send-email-j-keerthy@ti.com>
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>
---
include/power/regulator.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/power/regulator.h b/include/power/regulator.h
index 9bcd728..2117f55 100644
--- a/include/power/regulator.h
+++ b/include/power/regulator.h
@@ -152,6 +152,8 @@ enum regulator_flag {
* TODO(sjg at 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.
@@ -171,6 +173,8 @@ struct dm_regulator_uclass_platdata {
bool boot_on;
const char *name;
int flags;
+ u8 ctrl_reg;
+ u8 volt_reg;
};
/* Regulator device operations */
--
1.9.1
next prev parent reply other threads:[~2016-09-30 3:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-30 3:50 [U-Boot] [PATCH v6 0/6] power: pmic: Add support for Palmas family of PMICs Keerthy
2016-09-30 3:50 ` Keerthy [this message]
2016-10-11 0:29 ` [U-Boot] [PATCH v6 1/6] power: regulator: Add ctrl_reg and volt_reg fields for pmic Simon Glass
2016-09-30 3:50 ` [U-Boot] [PATCH v6 2/6] power: pmic: Palmas: Add the base pmic support Keerthy
2016-10-11 0:29 ` Simon Glass
2016-09-30 3:50 ` [U-Boot] [PATCH v6 3/6] power: regulator: palmas: Add regulator support Keerthy
2016-10-11 0:29 ` Simon Glass
2016-09-30 3:50 ` [U-Boot] [PATCH v6 4/6] configs: dra7xx_evm_defconfig: Enable PALMAS options Keerthy
2016-10-11 0:29 ` Simon Glass
2016-09-30 3:50 ` [U-Boot] [PATCH v6 5/6] configs: am57xx_evm_defconfig: " Keerthy
2016-10-11 0:29 ` Simon Glass
2016-09-30 3:50 ` [U-Boot] [PATCH v6 6/6] configs: am57xx_evm_defconfig: Enable CMD_REG option Keerthy
2016-10-01 2:17 ` Tom Rini
2016-10-11 0:29 ` Simon Glass
2016-10-06 17:37 ` [U-Boot] [PATCH v6 0/6] power: pmic: Add support for Palmas family of PMICs Keerthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1475207447-18715-2-git-send-email-j-keerthy@ti.com \
--to=j-keerthy@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox