Loading...
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | # Kconfig - LSM9DS0 accelerometer, magnetometer and temperature # configuration options # # Copyright (c) 2016 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # menuconfig LSM9DS0_MFD bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip" depends on SENSOR && I2C default n help Enable driver for LSM9DS0 I2C-based MFD sensor. config LSM9DS0_MFD_DEV_NAME string "LSM9DS0_MFD device name" depends on LSM9DS0_MFD default "lsm9ds0_mfd" config LSM9DS0_MFD_I2C_ADDR hex "LSM9DS0_MFD I2C slave address" default 0x1E depends on LSM9DS0_MFD help Specify the I2C slave address for the LSM9DS0_MFD. 0x1E: GND 0x1F: VCC config LSM9DS0_MFD_I2C_MASTER_DEV_NAME string "I2C master where LSM9DS0 gyroscope is connected" depends on LSM9DS0_MFD default "I2C_0" help Specify the device name of the I2C master device to which LSM9DS0_MFD is connected. config LSM9DS0_MFD_ACCEL_ENABLE bool "Enable accelerometer" depends on LSM9DS0_MFD default y help Enable/disable accelerometer totally by stripping everything related in driver. config LSM9DS0_MFD_MAGN_ENABLE bool "Enable magnetometer" depends on LSM9DS0_MFD default y help Enable/disable magnetometer totally by stripping everything related in driver. config LSM9DS0_MFD_TEMP_ENABLE bool "Enable temperature sensor" depends on LSM9DS0_MFD default n help Enable/disable temperature sensor totally by stripping everything related in driver. menu "Attributes" depends on LSM9DS0_MFD choice prompt "Accelerometer sampling rate" default LSM9DS0_MFD_ACCEL_SAMPLING_RATE_25 depends on LSM9DS0_MFD_ACCEL_ENABLE help Specify the default sampling rate frequency for accelerometer. config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_0 bool prompt "0 Hz (power down)" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_3_125 bool prompt "3.125 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_6_25 bool prompt "6.25 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_12_5 bool prompt "12.5 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_25 bool prompt "25 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_50 bool prompt "50 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_100 bool prompt "100 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_200 bool prompt "200 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_400 bool prompt "400 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_800 bool prompt "800 Hz" config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_1600 bool prompt "1600 Hz" endchoice config LSM9DS0_MFD_ACCEL_SAMPLING_RATE_RUNTIME bool "Enable dynamic sampling rate for accelerometer" depends on LSM9DS0_MFD_ACCEL_ENABLE default n help Enable alteration of accelerometer sampling rate attribute at runtime. choice prompt "Accelerometer full-scale" default LSM9DS0_MFD_ACCEL_FULL_SCALE_2 depends on LSM9DS0_MFD_ACCEL_ENABLE help Specify the default full-scale for accelerometer. config LSM9DS0_MFD_ACCEL_FULL_SCALE_2 bool prompt "2G" config LSM9DS0_MFD_ACCEL_FULL_SCALE_4 bool prompt "4G" config LSM9DS0_MFD_ACCEL_FULL_SCALE_6 bool prompt "6G" config LSM9DS0_MFD_ACCEL_FULL_SCALE_8 bool prompt "8G" config LSM9DS0_MFD_ACCEL_FULL_SCALE_16 bool prompt "16G" endchoice config LSM9DS0_MFD_ACCEL_FULL_SCALE_RUNTIME bool "Enable dynamic full-scale for accelerometer" depends on LSM9DS0_MFD_ACCEL_ENABLE default n help Enable alteration of accelerometer full-scale attribute at runtime. config LSM9DS0_MFD_ACCEL_ENABLE_X bool "Enable accelerometer X axis" depends on LSM9DS0_MFD_ACCEL_ENABLE default y config LSM9DS0_MFD_ACCEL_ENABLE_Y bool "Enable accelerometer Y axis" depends on LSM9DS0_MFD_ACCEL_ENABLE default y config LSM9DS0_MFD_ACCEL_ENABLE_Z bool "Enable accelerometer Z axis" depends on LSM9DS0_MFD_ACCEL_ENABLE default y choice prompt "Magnetometer sampling rate" default LSM9DS0_MFD_MAGN_SAMPLING_RATE_25 depends on LSM9DS0_MFD_MAGN_ENABLE help Specify the default sampling rate frequency for magnetometer. config LSM9DS0_MFD_MAGN_SAMPLING_RATE_3_125 bool prompt "3.125 Hz" config LSM9DS0_MFD_MAGN_SAMPLING_RATE_6_25 bool prompt "6.25 Hz" config LSM9DS0_MFD_MAGN_SAMPLING_RATE_12_5 bool prompt "12.5 Hz" config LSM9DS0_MFD_MAGN_SAMPLING_RATE_25 bool prompt "25 Hz" config LSM9DS0_MFD_MAGN_SAMPLING_RATE_50 bool prompt "50 Hz" config LSM9DS0_MFD_MAGN_SAMPLING_RATE_100 bool prompt "100 Hz" endchoice config LSM9DS0_MFD_MAGN_SAMPLING_RATE_RUNTIME bool "Enable dynamic sampling rate for magnetometer" depends on LSM9DS0_MFD_MAGN_ENABLE default n help Enable alteration of magnetometer sampling rate attribute at runtime. choice prompt "Magnetometer full-scale" default LSM9DS0_MFD_MAGN_FULL_SCALE_2 depends on LSM9DS0_MFD_MAGN_ENABLE help Specify the default full-scale for magnetometer. config LSM9DS0_MFD_MAGN_FULL_SCALE_2 bool prompt "2 Gauss" config LSM9DS0_MFD_MAGN_FULL_SCALE_4 bool prompt "4 Gauss" config LSM9DS0_MFD_MAGN_FULL_SCALE_8 bool prompt "8 Gauss" config LSM9DS0_MFD_MAGN_FULL_SCALE_12 bool prompt "12 Gauss" endchoice config LSM9DS0_MFD_MAGN_FULL_SCALE_RUNTIME bool "Enable dynamic full-scale for magnetometer" depends on LSM9DS0_MFD_MAGN_ENABLE default n help Enable alteration of magnetometer full-scale attribute at runtime. endmenu |