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 __SPI_ACPI_CHIP_H__
4 #define __SPI_ACPI_CHIP_H__
5 
6 #include <acpi/acpi_device.h>
7 
9  const char *hid; /* ACPI _HID (required) */
10  const char *cid; /* ACPI _CID */
11  const char *name; /* ACPI Device Name */
12  const char *desc; /* Device Description */
13  unsigned int uid; /* ACPI _UID */
14  unsigned int speed; /* Bus speed in Hz (default 1MHz) */
15  const char *compat_string; /* Compatible string for _HID=PRP0001 */
16  struct acpi_irq irq; /* Interrupt */
17  unsigned int wake; /* Wake GPE */
18 
19  /* Use GPIO based interrupt instead of PIRQ */
20  struct acpi_gpio irq_gpio;
21 
22  /* Disable reset and enable GPIO export in _CRS */
24 
25  /* Does the device have a power resource? */
27 
28  /* GPIO used to take device out of reset or to put it into reset. */
29  struct acpi_gpio reset_gpio;
30  /* Delay to be inserted after device is taken out of reset. */
31  unsigned int reset_delay_ms;
32  /* Delay to be inserted after device is put into reset. */
33  unsigned int reset_off_delay_ms;
34 
35  /* GPIO used to enable device. */
36  struct acpi_gpio enable_gpio;
37  /* Delay to be inserted after device is enabled. */
38  unsigned int enable_delay_ms;
39  /* Delay to be inserted after device is disabled. */
40  unsigned int enable_off_delay_ms;
41 
42  /* GPIO used to stop operation of device. */
43  struct acpi_gpio stop_gpio;
44  /* Delay to be inserted after disabling stop. */
45  unsigned int stop_delay_ms;
46  /* Delay to be inserted after enabling stop. */
47  unsigned int stop_off_delay_ms;
48 };
49 
50 #endif /* __SPI_ACPI_CHIP_H__ */
unsigned int stop_delay_ms
Definition: chip.h:45
struct acpi_gpio irq_gpio
Definition: chip.h:20
unsigned int wake
Definition: chip.h:17
const char * cid
Definition: chip.h:10
struct acpi_gpio reset_gpio
Definition: chip.h:29
unsigned int speed
Definition: chip.h:14
struct acpi_irq irq
Definition: chip.h:16
unsigned int reset_delay_ms
Definition: chip.h:31
unsigned int uid
Definition: chip.h:13
unsigned int enable_delay_ms
Definition: chip.h:38
unsigned int reset_off_delay_ms
Definition: chip.h:33
const char * name
Definition: chip.h:11
struct acpi_gpio stop_gpio
Definition: chip.h:43
const char * desc
Definition: chip.h:12
bool has_power_resource
Definition: chip.h:26
unsigned int stop_off_delay_ms
Definition: chip.h:47
unsigned int enable_off_delay_ms
Definition: chip.h:40
bool disable_gpio_export_in_crs
Definition: chip.h:23
struct acpi_gpio enable_gpio
Definition: chip.h:36
const char * hid
Definition: chip.h:9
const char * compat_string
Definition: chip.h:15