aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/nxp/uwb/chip.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-08-04 14:49:00 -0700
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-08-14 21:13:33 +0000
commitf48f1fdc84098ab3055d88f79fae7d3f88f13428 (patch)
tree08be440ba6236349c8a00ae9a00a8d9661a5de33 /src/drivers/nxp/uwb/chip.h
parent9e111f285320a5c66bcd0f7a307ea5a25a466571 (diff)
drivers/nxp/uwb: Add new driver for NXP UWB SR1xx chip
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>
Diffstat (limited to 'src/drivers/nxp/uwb/chip.h')
-rw-r--r--src/drivers/nxp/uwb/chip.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/drivers/nxp/uwb/chip.h b/src/drivers/nxp/uwb/chip.h
new file mode 100644
index 0000000000..8233b254b4
--- /dev/null
+++ b/src/drivers/nxp/uwb/chip.h
@@ -0,0 +1,27 @@
+/* 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__ */