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

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

Merge "mailbox: Add snapshot of MSM QMP driver"

parents aad0de81 9a901072
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -205,4 +205,12 @@ config MTK_CMDQ_MBOX
	  mailbox driver. The CMDQ is used to help read/write registers with
	  mailbox driver. The CMDQ is used to help read/write registers with
	  critical time limitation, such as updating display configuration
	  critical time limitation, such as updating display configuration
	  during the vblank.
	  during the vblank.

config MSM_QMP
	bool "QTI Mailbox Protocol(QMP)"
	help
	  Say yes to add support for the QTI Mailbox Protocol mailbox driver.
	  QMP is a lightweight communication protocol for sending messages to
	  a remote processor. This protocol fits into the Generic Mailbox
	  Framework. QMP uses a mailbox located in shared memory.
endif
endif
+2 −0
Original line number Original line Diff line number Diff line
@@ -44,3 +44,5 @@ obj-$(CONFIG_TEGRA_HSP_MBOX) += tegra-hsp.o
obj-$(CONFIG_STM32_IPCC) 	+= stm32-ipcc.o
obj-$(CONFIG_STM32_IPCC) 	+= stm32-ipcc.o


obj-$(CONFIG_MTK_CMDQ_MBOX)	+= mtk-cmdq-mailbox.o
obj-$(CONFIG_MTK_CMDQ_MBOX)	+= mtk-cmdq-mailbox.o

obj-$(CONFIG_MSM_QMP)   += msm_qmp.o
+984 −0

File added.

Preview size limit exceeded, changes collapsed.

+21 −0
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
 */

#ifndef _QMP_H_
#define _QMP_H_

#include <linux/types.h>

/**
 * struct qmp_pkt - Packet structure to be used for TX and RX with QMP
 * @size	size of data
 * @data	Buffer holding data of this packet
 */
struct qmp_pkt {
	u32 size;
	void *data;
};

#endif /* _QMP_H_ */