aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/adis16400.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-01-16 12:48:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-01-26 10:07:51 +0000
commit1db18bb4c25823bfc11f370157f9d23a4d99ea1d (patch)
tree7ca075b04e1aaaa95786f3c48adf58dd53ed14a0 /drivers/iio/imu/adis16400.h
parentiio:adis16400: Add support for the 52.85 Hz base sampling rate (diff)
downloadlinux-dev-1db18bb4c25823bfc11f370157f9d23a4d99ea1d.tar.xz
linux-dev-1db18bb4c25823bfc11f370157f9d23a4d99ea1d.zip
iio:adis16400: Expose some debug information in debugfs
Expose some information useful for debugging a device in debugfs. This includes for now the flash count, the product id and the serial number and raw register access. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/adis16400.h')
-rw-r--r--drivers/iio/imu/adis16400.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/imu/adis16400.h b/drivers/iio/imu/adis16400.h
index a3b9e56c5bd1..627018537aac 100644
--- a/drivers/iio/imu/adis16400.h
+++ b/drivers/iio/imu/adis16400.h
@@ -74,7 +74,10 @@
#define ADIS16400_ALM_CTRL 0x48 /* Alarm control */
#define ADIS16400_AUX_DAC 0x4A /* Auxiliary DAC data */
+#define ADIS16334_LOT_ID1 0x52 /* Lot identification code 1 */
+#define ADIS16334_LOT_ID2 0x54 /* Lot identification code 2 */
#define ADIS16400_PRODUCT_ID 0x56 /* Product identifier */
+#define ADIS16334_SERIAL_NUMBER 0x58 /* Serial number, lot specific */
#define ADIS16400_ERROR_ACTIVE (1<<14)
#define ADIS16400_NEW_DATA (1<<14)
@@ -132,6 +135,7 @@
#define ADIS16400_HAS_PROD_ID BIT(0)
#define ADIS16400_NO_BURST BIT(1)
#define ADIS16400_HAS_SLOW_MODE BIT(2)
+#define ADIS16400_HAS_SERIAL_NUMBER BIT(3)
struct adis16400_state;