Module Name: src
Committed By: jakllsch
Date: Tue May 7 01:16:26 UTC 2013
Modified Files:
src/sys/dev/i2c: tps65217pmicreg.h
Log Message:
Add WLED register defines.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/tps65217pmicreg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/i2c/tps65217pmicreg.h
diff -u src/sys/dev/i2c/tps65217pmicreg.h:1.4 src/sys/dev/i2c/tps65217pmicreg.h:1.5
--- src/sys/dev/i2c/tps65217pmicreg.h:1.4 Sun Apr 28 00:47:20 2013
+++ src/sys/dev/i2c/tps65217pmicreg.h Tue May 7 01:16:25 2013
@@ -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)