blob: f0cc9417cbe0d67e7797db0f19822cad82b10d36 [file] [log] [blame]
Furquan Shaikh20a91c92017-02-11 11:16:18 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2017 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#ifndef __SPI_ACPI_CHIP_H__
17#define __SPI_ACPI_CHIP_H__
18
19#include <arch/acpi_device.h>
20
21struct drivers_spi_acpi_config {
22 const char *hid; /* ACPI _HID (required) */
23 const char *cid; /* ACPI _CID */
24 const char *name; /* ACPI Device Name */
25 const char *desc; /* Device Description */
26 unsigned uid; /* ACPI _UID */
27 unsigned speed; /* Bus speed in Hz (default 1MHz) */
28 const char *compat_string; /* Compatible string for _HID=PRP0001 */
29 struct acpi_irq irq; /* Interrupt */
30};
31
32#endif /* __SPI_ACPI_CHIP_H__ */