Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Add WLED register defines.



details:   https://anonhg.NetBSD.org/src/rev/c31e7e568217
branches:  trunk
changeset: 786679:c31e7e568217
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue May 07 01:16:25 2013 +0000

description:
Add WLED register defines.

diffstat:

 sys/dev/i2c/tps65217pmicreg.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r fbd513e0cbb7 -r c31e7e568217 sys/dev/i2c/tps65217pmicreg.h
--- a/sys/dev/i2c/tps65217pmicreg.h     Mon May 06 23:27:06 2013 +0000
+++ b/sys/dev/i2c/tps65217pmicreg.h     Tue May 07 01:16:25 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tps65217pmicreg.h,v 1.4 2013/04/28 00:47:20 jakllsch Exp $ */
+/*     $NetBSD: tps65217pmicreg.h,v 1.5 2013/05/07 01:16:25 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -59,6 +59,18 @@
 #define TPS65217PMIC_PPATH_USB_EN              __BIT(4)
 #define TPS65217PMIC_PPATH_AC_EN               __BIT(5)
 
+#define TPS65217PMIC_WLEDCTRL1         0x07
+#define TPS65217PMIC_WLEDCTRL1_FDIM            __BITS(1,0)
+#define TPS65217PMIC_WLEDCTRL1_FDIM_100Hz              0
+#define TPS65217PMIC_WLEDCTRL1_FDIM_200Hz              1
+#define TPS65217PMIC_WLEDCTRL1_FDIM_500Hz              2
+#define TPS65217PMIC_WLEDCTRL1_FDIM_1000Hz             3
+#define TPS65217PMIC_WLEDCTRL1_ISEL            __BIT(2)
+#define TPS65217PMIC_WLEDCTRL1_ISINK_EN                __BIT(3)
+
+#define TPS65217PMIC_WLEDCTRL2         0x08
+#define TPS65217PMIC_WLEDCTRL2_DUTY            __BITS(6,0)
+
 #define TPS65217PMIC_STATUS            0x0A
 #define TPS65217PMIC_STATUS_USBPWR             __BIT(2)
 #define TPS65217PMIC_STATUS_ACPWR              __BIT(3)



Home | Main Index | Thread Index | Old Index