| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * STMicroelectronics sensors platform-data driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2013 STMicroelectronics Inc. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Denis Ciocca <denis.ciocca@st.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * Licensed under the GPL-2. |
|---|
| 9 | 8 | */ |
|---|
| 10 | 9 | |
|---|
| 11 | 10 | #ifndef ST_SENSORS_PDATA_H |
|---|
| .. | .. |
|---|
| 18 | 17 | * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). |
|---|
| 19 | 18 | * @open_drain: set the interrupt line to be open drain if possible. |
|---|
| 20 | 19 | * @spi_3wire: enable spi-3wire mode. |
|---|
| 20 | + * @pullups: enable/disable i2c controller pullup resistors. |
|---|
| 21 | + * @wakeup_source: enable/disable device as wakeup generator. |
|---|
| 21 | 22 | */ |
|---|
| 22 | 23 | struct st_sensors_platform_data { |
|---|
| 23 | 24 | u8 drdy_int_pin; |
|---|
| 24 | 25 | bool open_drain; |
|---|
| 25 | 26 | bool spi_3wire; |
|---|
| 27 | + bool pullups; |
|---|
| 28 | + bool wakeup_source; |
|---|
| 26 | 29 | }; |
|---|
| 27 | 30 | |
|---|
| 28 | 31 | #endif /* ST_SENSORS_PDATA_H */ |
|---|