linux/include/linux/platform_data/st_sensors_pdata.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-only */
   2/*
   3 * STMicroelectronics sensors platform-data driver
   4 *
   5 * Copyright 2013 STMicroelectronics Inc.
   6 *
   7 * Denis Ciocca <denis.ciocca@st.com>
   8 */
   9
  10#ifndef ST_SENSORS_PDATA_H
  11#define ST_SENSORS_PDATA_H
  12
  13/**
  14 * struct st_sensors_platform_data - Platform data for the ST sensors
  15 * @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
  16 *      Available only for accelerometer, magnetometer and pressure sensors.
  17 *      Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
  18 *      Magnetometer DRDY is supported only on LSM9DS0.
  19 * @open_drain: set the interrupt line to be open drain if possible.
  20 * @spi_3wire: enable spi-3wire mode.
  21 * @pullups: enable/disable i2c controller pullup resistors.
  22 * @wakeup_source: enable/disable device as wakeup generator.
  23 */
  24struct st_sensors_platform_data {
  25        u8 drdy_int_pin;
  26        bool open_drain;
  27        bool spi_3wire;
  28        bool pullups;
  29        bool wakeup_source;
  30};
  31
  32#endif /* ST_SENSORS_PDATA_H */
  33