diff options
| author | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-28 13:46:28 -0400 |
|---|---|---|
| committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-28 14:50:15 -0400 |
| commit | daa22703f14c007e93b464c45fa60019a36f546d (patch) | |
| tree | a1a130b6e128dc9d57c35c026977e1b4953105e1 /include/linux | |
| parent | 5aa287dcf1b5879aa0150b0511833c52885f5b4c (diff) | |
Apply k4412 kernel from HardKernel for ODROID-X.
Diffstat (limited to 'include/linux')
110 files changed, 10369 insertions, 153 deletions
diff --git a/include/linux/akm8975.h b/include/linux/akm8975.h new file mode 100644 index 00000000000..6a7c4326001 --- /dev/null +++ b/include/linux/akm8975.h | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | /* | ||
| 2 | * Definitions for akm8975 compass chip. | ||
| 3 | */ | ||
| 4 | #ifndef AKM8975_H | ||
| 5 | #define AKM8975_H | ||
| 6 | |||
| 7 | #include <linux/ioctl.h> | ||
| 8 | |||
| 9 | /*! \name AK8975 operation mode | ||
| 10 | \anchor AK8975_Mode | ||
| 11 | Defines an operation mode of the AK8975.*/ | ||
| 12 | /*! @{*/ | ||
| 13 | #define AK8975_MODE_SNG_MEASURE 0x01 | ||
| 14 | #define AK8975_MODE_SELF_TEST 0x08 | ||
| 15 | #define AK8975_MODE_FUSE_ACCESS 0x0F | ||
| 16 | #define AK8975_MODE_POWER_DOWN 0x00 | ||
| 17 | /*! @}*/ | ||
| 18 | |||
| 19 | #define RBUFF_SIZE 8 /* Rx buffer size */ | ||
| 20 | |||
| 21 | /*! \name AK8975 register address | ||
| 22 | \anchor AK8975_REG | ||
| 23 | Defines a register address of the AK8975.*/ | ||
| 24 | /*! @{*/ | ||
| 25 | #define AK8975_REG_WIA 0x00 | ||
| 26 | #define AK8975_REG_INFO 0x01 | ||
| 27 | #define AK8975_REG_ST1 0x02 | ||
| 28 | #define AK8975_REG_HXL 0x03 | ||
| 29 | #define AK8975_REG_HXH 0x04 | ||
| 30 | #define AK8975_REG_HYL 0x05 | ||
| 31 | #define AK8975_REG_HYH 0x06 | ||
| 32 | #define AK8975_REG_HZL 0x07 | ||
| 33 | #define AK8975_REG_HZH 0x08 | ||
| 34 | #define AK8975_REG_ST2 0x09 | ||
| 35 | #define AK8975_REG_CNTL 0x0A | ||
| 36 | #define AK8975_REG_RSV 0x0B | ||
| 37 | |||
