aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sensor/ak8963-reg.h
blob: 067c250c5bce7e5b0124f4697b00f46cf4e76633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* linux/drivers/misc/AK8963-reg.h
 *
 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/
#ifndef __AK8963_REG__
#define __AK8963_REG__

/* Compass device dependent definition */
#define AK8963_CNTL1_SNG_MEASURE	0x11
#define	AK8963_CNTL1_SELF_TEST		0x18
#define	AK8963_CNTL1_FUSE_ACCESS	0x1F
#define	AK8963_CNTL1_POWER_DOWN		0x10

/* Rx buffer size. i.e ST,TMPS,H1X,H1Y,H1Z*/
#define SENSOR_DATA_SIZE		8

/* Read/Write buffer size.*/
#define RWBUF_SIZE			16

/* AK8963 register address */
#define AK8963_REG_WIA		0x00
#define AK8963_REG_INFO		0x01
#define AK8963_REG_ST1		0x02
#define AK8963_REG_HXL		0x03
#define AK8963_REG_HXH		0x04
#define AK8963_REG_HYL		0x05
#define AK8963_REG_HYH		0x06
#define AK8963_REG_HZL		0x07
#define AK8963_REG_HZH		0x08
#define AK8963_REG_ST2		0x09
#define AK8963_REG_CNTL1	0x0A
#define AK8963_REG_CNTL2	0x0B
#define AK8963_REG_ASTC		0x0C
#define AK8963_REG_TS1		0x0D
#define AK8963_REG_TS2		0x0E
#define AK8963_REG_I2CDIS	0x0F

/* AK8963 fuse-rom address */
#define AK8963_FUSE_ASAX	0x10
#define AK8963_FUSE_ASAY	0x11
#define AK8963_FUSE_ASAZ	0x12

#endif /* __AK8963_REG__ */