summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2015-07-29 15:51:06 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-11 23:00:13 -0700
commitea6c69c8392a3756c4f74ea23ab15db3ad263bbe (patch)
treea4910f16ab65870a40a3cd37a26ed34cc46e0be9 /driver
parenta8fb14fc811ad447c4726a4e6258a89fd73ddc1b (diff)
downloadchrome-ec-ea6c69c8392a3756c4f74ea23ab15db3ad263bbe.tar.gz
Driver: Add TI TPS650830 PMIC driver header file
Added initial TI TPS650830 PMIC driver header file containing the macros for registers & register values. BUG=none TEST=make buildall -j BRANCH=none Change-Id: I936d8263d44e771bc24b3786aedea95feaa2b30c Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/297515 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/pmic_tps650830.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/driver/pmic_tps650830.h b/driver/pmic_tps650830.h
new file mode 100644
index 0000000000..841860dcb5
--- /dev/null
+++ b/driver/pmic_tps650830.h
@@ -0,0 +1,32 @@
+/* Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * TI TPS650830 PMIC driver
+ */
+
+#ifndef __CROS_EC_PMIC_TPS650830_H
+#define __CROS_EC_PMIC_TPS650830_H
+
+/* I2C interface */
+#define TPS650830_I2C_ADDR1 (0x30 << 1)
+#define TPS650830_I2C_ADDR2 (0x32 << 1)
+#define TPS650830_I2C_ADDR3 (0x34 << 1)
+
+/* TPS650830 registers */
+#define TPS650830_REG_VENDORID 0x00
+#define TPS650830_REG_PBCONFIG 0x14
+#define TPS650830_REG_V5ADS3CNT 0x31
+#define TPS650830_REG_V33ADSWCNT 0x32
+#define TPS650830_REG_V18ACNT 0x34
+#define TPS650830_REG_V1P2UCNT 0x36
+#define TPS650830_REG_DISCHCNT1 0x3C
+#define TPS650830_REG_DISCHCNT2 0x3D
+#define TPS650830_REG_DISCHCNT3 0x3E
+#define TPS650830_REG_DISCHCNT4 0x3F
+#define TPS650830_REG_PWFAULT_MASK1 0xE5
+
+/* TPS650830 register values */
+#define TPS650830_VENDOR_ID 0x22
+
+#endif /* __CROS_EC_PMIC_TPS650830_H */