[PATCH 1/3] i3c: mipi-i3c-hci: move shared SCL timing register offsets to hci.h

From: Manikandan Muralidharan

Date: Fri Dec 04 2026 - 03:35:20 EST


HCI_SCL_I3C_OD_TIMING and HCI_SCL_I3C_PP_TIMING are vendor-specific
registers that will be programmed by both the AMD and Microchip quirk
code. Move them from hci_quirks.c to hci.h to avoid duplicate
definitions.

No functional change.

Signed-off-by: Manikandan Muralidharan <manikandan.m@xxxxxxxxxxxxx>
---
drivers/i3c/master/mipi-i3c-hci/hci.h | 4 ++++
drivers/i3c/master/mipi-i3c-hci/hci_quirks.c | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/i3c/master/mipi-i3c-hci/hci.h b/drivers/i3c/master/mipi-i3c-hci/hci.h
index 4288a1b5b491..6a5b1f9875e1 100644
--- a/drivers/i3c/master/mipi-i3c-hci/hci.h
+++ b/drivers/i3c/master/mipi-i3c-hci/hci.h
@@ -179,6 +179,10 @@ struct i3c_hci_dev_data {
#define HCI_QUIRK_DMA_ABORT_REQUIRES_PIO_RESET BIT(8) /* Do PIO queue SW resets after DMA abort */
#define HCI_QUIRK_DMA_REQUIRES_HC_ABORT BIT(9) /* Use HC_CONTROL ABORT to abort DMA */

+/* Vendor-specific SCL timing registers shared by the quirk files */
+#define HCI_SCL_I3C_OD_TIMING 0x214
+#define HCI_SCL_I3C_PP_TIMING 0x218
+
/* global functions */
void mipi_i3c_hci_resume(struct i3c_hci *hci);
void mipi_i3c_hci_abort(struct i3c_hci *hci);
diff --git a/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c b/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c
index 3b9c6e76c536..646de0d9f5c5 100644
--- a/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c
+++ b/drivers/i3c/master/mipi-i3c-hci/hci_quirks.c
@@ -11,9 +11,6 @@
#include <linux/i3c/master.h>
#include "hci.h"

-/* Timing registers */
-#define HCI_SCL_I3C_OD_TIMING 0x214
-#define HCI_SCL_I3C_PP_TIMING 0x218
#define HCI_SDA_HOLD_SWITCH_DLY_TIMING 0x230

/* Timing values to configure 9MHz frequency */
--
2.43.0