1*caab277bSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2b029ffafSHemanth V /* 3b029ffafSHemanth V * VTI CMA3000_Dxx Accelerometer driver 4b029ffafSHemanth V * 5b029ffafSHemanth V * Copyright (C) 2010 Texas Instruments 6b029ffafSHemanth V * Author: Hemanth V <hemanthv@ti.com> 7b029ffafSHemanth V */ 8b029ffafSHemanth V 9b029ffafSHemanth V #ifndef _LINUX_CMA3000_H 10b029ffafSHemanth V #define _LINUX_CMA3000_H 11b029ffafSHemanth V 12b029ffafSHemanth V #define CMAMODE_DEFAULT 0 13b029ffafSHemanth V #define CMAMODE_MEAS100 1 14b029ffafSHemanth V #define CMAMODE_MEAS400 2 15b029ffafSHemanth V #define CMAMODE_MEAS40 3 16b029ffafSHemanth V #define CMAMODE_MOTDET 4 17b029ffafSHemanth V #define CMAMODE_FF100 5 18b029ffafSHemanth V #define CMAMODE_FF400 6 19b029ffafSHemanth V #define CMAMODE_POFF 7 20b029ffafSHemanth V 21b029ffafSHemanth V #define CMARANGE_2G 2000 22b029ffafSHemanth V #define CMARANGE_8G 8000 23b029ffafSHemanth V 24b029ffafSHemanth V /** 25b029ffafSHemanth V * struct cma3000_i2c_platform_data - CMA3000 Platform data 26b029ffafSHemanth V * @fuzz_x: Noise on X Axis 27b029ffafSHemanth V * @fuzz_y: Noise on Y Axis 28b029ffafSHemanth V * @fuzz_z: Noise on Z Axis 29b029ffafSHemanth V * @g_range: G range in milli g i.e 2000 or 8000 30b029ffafSHemanth V * @mode: Operating mode 31b029ffafSHemanth V * @mdthr: Motion detect threshold value 32b029ffafSHemanth V * @mdfftmr: Motion detect and free fall time value 33b029ffafSHemanth V * @ffthr: Free fall threshold value 34b029ffafSHemanth V */ 35b029ffafSHemanth V 36b029ffafSHemanth V struct cma3000_platform_data { 37b029ffafSHemanth V int fuzz_x; 38b029ffafSHemanth V int fuzz_y; 39b029ffafSHemanth V int fuzz_z; 40b029ffafSHemanth V int g_range; 41b029ffafSHemanth V uint8_t mode; 42b029ffafSHemanth V uint8_t mdthr; 43b029ffafSHemanth V uint8_t mdfftmr; 44b029ffafSHemanth V uint8_t ffthr; 45b029ffafSHemanth V unsigned long irqflags; 46b029ffafSHemanth V }; 47b029ffafSHemanth V 48b029ffafSHemanth V #endif 49