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

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

Merge "kernel: driver: Added support msm_smd_pkt driver"

parents 30d73306 393dbf98
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -538,6 +538,27 @@ config DEVPORT

source "drivers/s390/char/Kconfig"

config MSM_SMD_PKT
	bool "Enable device interface for some SMD packet ports"
	default n
	depends on RPMSG_QCOM_SMD
	help
	 smd_pkt driver provides the interface for the userspace clients
	 to communicate over smd via device nodes. This enable the
	 usersapce clients to read and write to some smd packets channel
	 for MSM chipset.

config TILE_SROM
	tristate "Character-device access via hypervisor to the Tilera SPI ROM"
	depends on TILE
	default y
	help
	  This device provides character-level read-write access
	  to the SROM, typically via the "0", "1", and "2" devices
	  in /dev/srom/.  The Tilera hypervisor makes the flash
	  device appear much like a simple EEPROM, and knows
	  how to partition a single ROM for multiple purposes.

source "drivers/char/xillybus/Kconfig"
source "drivers/char/diag/Kconfig"

+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@ obj-$(CONFIG_MSPEC) += mspec.o
obj-$(CONFIG_UV_MMTIMER)	+= uv_mmtimer.o
obj-$(CONFIG_IBM_BSR)		+= bsr.o
obj-$(CONFIG_SGI_MBCS)		+= mbcs.o
obj-$(CONFIG_BFIN_OTP)		+= bfin-otp.o
obj-$(CONFIG_MSM_SMD_PKT)       += msm_smd_pkt.o

obj-$(CONFIG_PRINTER)		+= lp.o

+893 −0

File added.

Preview size limit exceeded, changes collapsed.

+24 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0
 * Copyright (c) 2010,2017,2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#ifndef __LINUX_MSM_SMD_PKT_H
#define __LINUX_MSM_SMD_PKT_H

#include <linux/ioctl.h>

#define SMD_PKT_IOCTL_MAGIC (0xC2)

#define SMD_PKT_IOCTL_BLOCKING_WRITE \
	_IOR(SMD_PKT_IOCTL_MAGIC, 0, unsigned int)

#endif /* __LINUX_MSM_SMD_PKT_H */