Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10404900 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Firmware: arm_scmi: Add #ifdef guards for vendor extensions"

parents 74d363db 575809e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ config ARM_SCMI_PROTOCOL
config QTI_SCMI_MEMLAT_PROTOCOL
	tristate "Qualcomm Technologies, Inc. SCMI MEMLAT vendor Protocol"
	depends on ARM || ARM64 || COMPILE_TEST
	depends on ARM_SCMI_PROTOCOL && QCOM_RIMPS
	depends on ARM_SCMI_PROTOCOL && QCOM_RIMPS && QGKI
	help
	  System Control and Management Interface (SCMI) memlat vendor protocol
	  this protocol provides interface to communicate with micro controller
+6 −1
Original line number Diff line number Diff line
@@ -207,6 +207,7 @@ struct scmi_reset_ops {
	int (*deassert)(const struct scmi_handle *handle, u32 domain);
};

#ifdef CONFIG_QTI_SCMI_MEMLAT_PROTOCOL
/**
 * struct scmi_memlat_vendor_ops - represents the various operations provided
 *	by SCMI HW Memlat Protocol
@@ -263,7 +264,7 @@ struct scmi_memlat_vendor_ops {
	int (*set_log_level)(const struct scmi_handle *handle, u32 val);
	int (*get_data)(const struct scmi_handle *handle, u8 *buf);
};

#endif

/**
 * struct scmi_handle - Handle returned to ARM SCMI clients for usage.
@@ -294,7 +295,9 @@ struct scmi_handle {
	struct scmi_power_ops *power_ops;
	struct scmi_sensor_ops *sensor_ops;
	struct scmi_reset_ops *reset_ops;
#ifdef CONFIG_QTI_SCMI_MEMLAT_PROTOCOL
	struct scmi_memlat_vendor_ops *memlat_ops;
#endif
	/* for protocol internal use */
	void *perf_priv;
	void *clk_priv;
@@ -311,7 +314,9 @@ enum scmi_std_protocol {
	SCMI_PROTOCOL_CLOCK = 0x14,
	SCMI_PROTOCOL_SENSOR = 0x15,
	SCMI_PROTOCOL_RESET = 0x16,
#ifdef CONFIG_QTI_SCMI_MEMLAT_PROTOCOL
	SCMI_PROTOCOL_MEMLAT = 0x80,
#endif
};

struct scmi_device {