Commit 0cbf2608 authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Greg Kroah-Hartman
Browse files

bus: mhi: core: Add support for registering MHI controllers

This commit adds support for registering MHI controller drivers with
the MHI stack. MHI controller drivers manages the interaction with the
MHI client devices such as the external modems and WiFi chipsets. They
are also the MHI bus master in charge of managing the physical link
between the host and client device.

This is based on the patch submitted by Sujeev Dias:
https://lkml.org/lkml/2018/7/9/987



Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
[jhugo: added static config for controllers and fixed several bugs]
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
[mani: removed DT dependency, splitted and cleaned up for upstream]
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200220095854.4804-3-manivannan.sadhasivam@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9435dc3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -201,5 +201,6 @@ config DA8XX_MSTPRI
	  peripherals.

source "drivers/bus/fsl-mc/Kconfig"
source "drivers/bus/mhi/Kconfig"

endmenu
+3 −0
Original line number Diff line number Diff line
@@ -34,3 +34,6 @@ obj-$(CONFIG_UNIPHIER_SYSTEM_BUS) += uniphier-system-bus.o
obj-$(CONFIG_VEXPRESS_CONFIG)	+= vexpress-config.o

obj-$(CONFIG_DA8XX_MSTPRI)	+= da8xx-mstpri.o

# MHI
obj-$(CONFIG_MHI_BUS)		+= mhi/
+14 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
#
# MHI bus
#
# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
#

config MHI_BUS
       tristate "Modem Host Interface (MHI) bus"
       help
	 Bus driver for MHI protocol. Modem Host Interface (MHI) is a
	 communication protocol used by the host processors to control
	 and communicate with modem devices over a high speed peripheral
	 bus or shared memory.
+2 −0
Original line number Diff line number Diff line
# core layer
obj-y += core/
+3 −0
Original line number Diff line number Diff line
obj-$(CONFIG_MHI_BUS) := mhi.o

mhi-y := init.o
Loading