coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __DRIVERS_I2C_SX9360_CHIP_H__
4
#define __DRIVERS_I2C_SX9360_CHIP_H__
5
6
#include <
acpi/acpi_device.h
>
7
#include <
device/i2c_simple.h
>
8
9
struct
drivers_i2c_sx9360_config
{
10
/* Device Description */
11
const
char
*
desc
;
12
13
/* ACPI _UID */
14
unsigned
int
uid
;
15
16
/* Bus speed in Hz, default is I2C_SPEED_FAST */
17
enum
i2c_speed
speed
;
18
19
/* Use GPIO-based interrupt instead of IO-APIC */
20
struct
acpi_gpio
irq_gpio
;
21
22
/* IO-APIC interrupt */
23
struct
acpi_irq
irq
;
24
25
/*
26
* Registers definition in the kernel source tree at:
27
* Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml
28
*/
29
30
/* Raw Proximity filter strength: When not set, disabled. */
31
uint32_t
proxraw_strength
;
32
33
/* Average Proximity filter strength: When not set, disabled. */
34
uint32_t
avg_pos_strength
;
35
36
/* Capacitance measure resolution. Driver default: 128. */
37
uint32_t
resolution
;
38
};
39
40
#endif
/* __DRIVERS_I2C_SX9360_CHIP_H__ */
acpi_device.h
i2c_simple.h
i2c_speed
i2c_speed
Definition:
i2c.h:43
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
acpi_gpio
Definition:
acpi_device.h:164
acpi_irq
Definition:
acpi_device.h:88
drivers_i2c_sx9360_config
Definition:
chip.h:9
drivers_i2c_sx9360_config::speed
enum i2c_speed speed
Definition:
chip.h:17
drivers_i2c_sx9360_config::resolution
uint32_t resolution
Definition:
chip.h:37
drivers_i2c_sx9360_config::irq_gpio
struct acpi_gpio irq_gpio
Definition:
chip.h:20
drivers_i2c_sx9360_config::uid
unsigned int uid
Definition:
chip.h:14
drivers_i2c_sx9360_config::desc
const char * desc
Definition:
chip.h:11
drivers_i2c_sx9360_config::irq
struct acpi_irq irq
Definition:
chip.h:23
drivers_i2c_sx9360_config::proxraw_strength
uint32_t proxraw_strength
Definition:
chip.h:31
drivers_i2c_sx9360_config::avg_pos_strength
uint32_t avg_pos_strength
Definition:
chip.h:34
src
drivers
i2c
sx9360
chip.h
Generated by
1.9.1