History

bus: mhi: core: Add support for ringing channel/event ring doorbells

This commit adds support for ringing channel and event ring doorbells by MHI host. The MHI host can use the channel and event ring doorbells for notifying the client device about processing transfer and event rings which it has queued using MMIO registers. This is based on the patch submitted by Sujeev Dias: https://lkml.org/lkml/2018/7/9/989

Manivannan Sadhasivam committed 6 years ago

Commit 6cd330a1 parent da1c4f84 files · +545 −0Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/mhi.h+4−0
@@ -240,6 +240,8 @@ struct mhi_controller_config { · 239 unmodified lines
240240 * controller (required)
241241 * @mhi_dev: MHI device instance for the controller
242242 * @regs: Base address of MHI MMIO register space (required)
243+ * @bhi: Points to base of MHI BHI register space
244+ * @wake_db: MHI WAKE doorbell register address
243245 * @iova_start: IOMMU starting address for data (required)
244246 * @iova_stop: IOMMU stop address for data (required)
245247 * @fw_image: Firmware image name for normal booting (required)
@@ -294,6 +296,8 @@ struct mhi_controller { · 48 unmodified lines
294296 struct device *cntrl_dev;
295297 struct mhi_device *mhi_dev;
296298 void __iomem *regs;
299+ void __iomem *bhi;
300+ void __iomem *wake_db;
297301 dma_addr_t iova_start;
298302 dma_addr_t iova_stop;
299303 const char *fw_image;