diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-11-04 21:58:26 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-11-20 13:20:34 +0100 |
commit | 70505ea6de24093136103cedcf2deeb85891ed6c (patch) | |
tree | 98d64d0788727723327d408b3e4f667aa4b6c1a7 /drivers/platform/x86/x86-android-tablets/x86-android-tablets.h | |
parent | 8d437a0b68c175ed591322e53b7e1f91094abfd5 (diff) | |
download | linux-stable-70505ea6de24093136103cedcf2deeb85891ed6c.tar.gz linux-stable-70505ea6de24093136103cedcf2deeb85891ed6c.tar.bz2 linux-stable-70505ea6de24093136103cedcf2deeb85891ed6c.zip |
platform/x86: x86-android-tablets: Add support for SPI device instantiation
Some x86 Android tablets have SPI devices which are not properly described
in their DSDT. Add support for instantiating SPI devices.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20231104205828.63139-2-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform/x86/x86-android-tablets/x86-android-tablets.h')
-rw-r--r-- | drivers/platform/x86/x86-android-tablets/x86-android-tablets.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h b/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h index 9d2fb7fded6d..49fed9410adb 100644 --- a/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h +++ b/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h @@ -14,6 +14,7 @@ #include <linux/gpio_keys.h> #include <linux/i2c.h> #include <linux/irqdomain_defs.h> +#include <linux/spi/spi.h> struct gpio_desc; struct gpiod_lookup_table; @@ -48,6 +49,12 @@ struct x86_i2c_client_info { struct x86_acpi_irq_data irq_data; }; +struct x86_spi_dev_info { + struct spi_board_info board_info; + char *ctrl_path; + struct x86_acpi_irq_data irq_data; +}; + struct x86_serdev_info { const char *ctrl_hid; const char *ctrl_uid; @@ -72,10 +79,12 @@ struct x86_dev_info { const struct software_node *bat_swnode; struct gpiod_lookup_table * const *gpiod_lookup_tables; const struct x86_i2c_client_info *i2c_client_info; + const struct x86_spi_dev_info *spi_dev_info; const struct platform_device_info *pdev_info; const struct x86_serdev_info *serdev_info; const struct x86_gpio_button *gpio_button; int i2c_client_count; + int spi_dev_count; int pdev_count; int serdev_count; int gpio_button_count; |