123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*
- * Copyright (C) 2010, Samsung Electronics Co. Ltd. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
- #ifndef __AK8963C_REG__
- #define __AK8963C_REG__
- /* Compass device dependent definition */
- #define AK8963C_CNTL1_SNG_MEASURE 0x11
- #define AK8963C_CNTL1_SELF_TEST 0x18
- #define AK8963C_CNTL1_FUSE_ACCESS 0x1F
- #define AK8963C_CNTL1_POWER_DOWN 0x10
- /* AK8963 register address */
- #define AK8963C_REG_WIA 0x00
- #define AK8963C_REG_INFO 0x01
- #define AK8963C_REG_ST1 0x02
- #define AK8963C_REG_HXL 0x03
- #define AK8963C_REG_HXH 0x04
- #define AK8963C_REG_HYL 0x05
- #define AK8963C_REG_HYH 0x06
- #define AK8963C_REG_HZL 0x07
- #define AK8963C_REG_HZH 0x08
- #define AK8963C_REG_ST2 0x09
- #define AK8963C_REG_CNTL1 0x0A
- #define AK8963C_REG_CNTL2 0x0B
- #define AK8963C_REG_ASTC 0x0C
- #define AK8963C_REG_TS1 0x0D
- #define AK8963C_REG_TS2 0x0E
- #define AK8963C_REG_I2CDIS 0x0F
- /* AK8963 fuse-rom address */
- #define AK8963C_FUSE_ASAX 0x10
- #define AK8963C_FUSE_ASAY 0x11
- #define AK8963C_FUSE_ASAZ 0x12
- #endif /* __AK8963C_REG__ */
|