bus: mhi: ep: Add support for managing MMIO registers
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 5 Apr 2022 13:57:40 +0000 (19:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 11:17:41 +0000 (13:17 +0200)
commite9e4da23cd65ea76ba658346f5c182791bd1cea9
tree66ceb34aeb81a72c7d29a16655689e7016d81d8f
parent297c77a0f27312b9a04696018c4cbd47926ca92b
bus: mhi: ep: Add support for managing MMIO registers

Add support for managing the Memory Mapped Input Output (MMIO) registers
of the MHI bus. All MHI operations are carried out using the MMIO registers
by both host and the endpoint device.

The MMIO registers reside inside the endpoint device memory (fixed
location based on the platform) and the address is passed by the MHI EP
controller driver during its registration.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20220405135754.6622-5-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/ep/Makefile
drivers/bus/mhi/ep/internal.h
drivers/bus/mhi/ep/main.c
drivers/bus/mhi/ep/mmio.c [new file with mode: 0644]
include/linux/mhi_ep.h