f48f1fdc84
Add a new driver for NXP UWB SR1xx (e.g., SR150) device. The driver was originally written by Tim Wawrzynczak as a WIP in CL:3503703, and was based on drivers/spi/acpi. BUG=b:240607130 BRANCH=firmware-brya-14505.B TEST=On ghost (with follow-up CL), patch linux with NXP's pending drivers -> UWB device is probed and can respond to a simple hello packet Co-authored-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I5b1b0a5c1b48d0b09e7ab5f2ea6b6bc2fba2a7d8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66466 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
27 lines
516 B
C
27 lines
516 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef __NXP_UWB_CHIP_H__
|
|
#define __NXP_UWB_CHIP_H__
|
|
|
|
#include <acpi/acpi_device.h>
|
|
|
|
struct drivers_nxp_uwb_config {
|
|
/* ACPI Device Name */
|
|
const char *name;
|
|
|
|
/* Device Description */
|
|
const char *desc;
|
|
|
|
/* ACPI _UID */
|
|
unsigned int uid;
|
|
|
|
/* Bus speed in Hz (default 1MHz) */
|
|
unsigned int speed;
|
|
|
|
/* Use GPIO based interrupt instead of PIRQ */
|
|
struct acpi_gpio irq_gpio;
|
|
struct acpi_gpio ce_gpio;
|
|
struct acpi_gpio ri_gpio;
|
|
};
|
|
|
|
#endif /* __NXP_UWB_CHIP_H__ */
|