accel/qaic: Add MHI controller
authorJeffrey Hugo <quic_jhugo@quicinc.com>
Mon, 27 Mar 2023 15:54:52 +0000 (09:54 -0600)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Thu, 6 Apr 2023 06:23:03 +0000 (08:23 +0200)
commita36bf7af868b4b84f026a752671df66f0809bd3d
treeea7a691f0929dea9d6f9e0d1f77ac807f63d1be0
parentc501ca23a6a306a7c11631e02a26c8e0a768d64b
accel/qaic: Add MHI controller

An AIC100 device contains a MHI interface with a number of different
channels for controlling different aspects of the device. The MHI
controller works with the MHI bus to enable and drive that interface.

AIC100 uses the BHI protocol in PBL to load SBL. The MHI controller
expects the SBL to be located at /lib/firmware/qcom/aic100/sbl.bin and
expects the MHI bus to manage the process of loading and sending SBL to
the device.

Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Acked-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1679932497-30277-4-git-send-email-quic_jhugo@quicinc.com
drivers/accel/qaic/mhi_controller.c [new file with mode: 0644]
drivers/accel/qaic/mhi_controller.h [new file with mode: 0644]