Merge "i3c: i3c-master-qcom-geni: Add I3C GENI driver snapshot"

This commit is contained in:
qctecmdr 2022-09-15 19:02:02 -07:00 committed by Gerrit - the friendly Code Review server
commit 1f0605da88
4 changed files with 2648 additions and 0 deletions

View File

@ -43,3 +43,17 @@ config MIPI_I3C_HCI
This driver can also be built as a module. If so, the module will be
called mipi-i3c-hci.
config I3C_MASTER_MSM_GENI
tristate "Qualcomm Technologies Inc.'s GENI based I3C controller"
depends on ARCH_QCOM
depends on I3C
depends on QCOM_GENI_SE
help
If you say yes to this option, support will be included for the
built-in I3C interface on the Qualcomm Technologies Inc SoCs.
This driver can also be built as a module. If so, the module
will be called i3c-master-msm-geni.

View File

@ -3,3 +3,4 @@ obj-$(CONFIG_CDNS_I3C_MASTER) += i3c-master-cdns.o
obj-$(CONFIG_DW_I3C_MASTER) += dw-i3c-master.o
obj-$(CONFIG_SVC_I3C_MASTER) += svc-i3c-master.o
obj-$(CONFIG_MIPI_I3C_HCI) += mipi-i3c-hci/
obj-$(CONFIG_I3C_MASTER_MSM_GENI) += i3c-master-msm-geni.o

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,46 @@
/* SPDX-License-Identifier: GPL-2.0-only
*
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM qup_i3c_trace
#if !defined(_TRACE_I3C_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_I3C_TRACE_H
#include <linux/ktime.h>
#include <linux/tracepoint.h>
#define MAX_MSG_LEN 256
TRACE_EVENT(i3c_log_info,
TP_PROTO(const char *name, struct va_format *vaf),
TP_ARGS(name, vaf),
TP_STRUCT__entry(
__string(name, name)
__dynamic_array(char, msg, MAX_MSG_LEN)
),
TP_fast_assign(
__assign_str(name, name);
WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
MAX_MSG_LEN, vaf->fmt,
*vaf->va) >= MAX_MSG_LEN);
),
TP_printk("%s: %s", __get_str(name), __get_str(msg))
);
#endif /* _TRACE_I3C_TRACE_H */
/* This part must be outside protection */
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#define TRACE_INCLUDE_FILE i3c-qup-trace
#include <trace/define_trace.h>