![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
#include <device/spi.h>
#include <spi-generic.h>
#include <string.h>
#include "chip.h"
Go to the source code of this file.
Functions | |
static int | spi_acpi_get_bus (const struct device *dev) |
static bool | spi_acpi_add_gpios_to_crs (struct drivers_spi_acpi_config *config) |
static int | spi_acpi_write_gpio (struct acpi_gpio *gpio, int *curr_index) |
static void | spi_acpi_fill_ssdt_generator (const struct device *dev) |
static const char * | spi_acpi_name (const struct device *dev) |
static void | spi_acpi_enable (struct device *dev) |
Variables | |
static struct device_operations | spi_acpi_ops |
struct chip_operations | drivers_spi_acpi_ops |
|
static |
Definition at line 31 of file acpi.c.
References config.
Referenced by spi_acpi_fill_ssdt_generator().
Definition at line 60 of file acpi.c.
References acpi_device_add_power_res(), acpi_device_name(), acpi_device_path(), acpi_device_scope(), ACPI_DEVICE_SLEEP_D3_HOT, acpi_device_status(), acpi_device_write_interrupt(), acpi_device_write_spi(), acpi_dp_add_gpio(), acpi_dp_add_string(), acpi_dp_new_table(), acpi_dp_write(), acpigen_pop_len(), acpigen_write_device(), acpigen_write_name(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_PRW(), acpigen_write_resourcetemplate_footer(), acpigen_write_resourcetemplate_header(), acpigen_write_scope(), acpigen_write_STA(), BIOS_ERR, BIOS_INFO, device::chip_info, device::chip_ops, config, spi_path::cs, dev_path(), acpi_spi::device_select, MHz, chip_operations::name, device::path, printk, device_path::spi, SPI_4_WIRE_MODE, spi_acpi_add_gpios_to_crs(), spi_acpi_get_bus(), spi_acpi_write_gpio(), SPI_CLOCK_PHASE_FIRST, and SPI_POLARITY_LOW.
|
static |
Definition at line 13 of file acpi.c.
References device::bus, bus::dev, spi_bus_operations::dev_to_bus, ops, device::ops, and device_operations::ops_spi_bus.
Referenced by spi_acpi_fill_ssdt_generator(), and spi_acpi_name().
|
static |
Definition at line 177 of file acpi.c.
References device::chip_info, config, name, snprintf(), and spi_acpi_get_bus().
|
static |
Definition at line 46 of file acpi.c.
References acpi_device_write_gpio().
Referenced by spi_acpi_fill_ssdt_generator().
struct chip_operations drivers_spi_acpi_ops |
|
static |