MLK-20886-1 misc: MU: Add MU driver to communicate with M4
authorYe Li <ye.li@nxp.com>
Thu, 31 Jan 2019 05:21:35 +0000 (21:21 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:15 +0000 (04:28 -0700)
commit57c95d6476052a052f026f8e4d7c98bd05792a1f
tree5d208c9cacd33687d34d24142667af29783d0a34
parentd9bf3bde0770eddc2a2922f8622433e4eff70ce0
MLK-20886-1 misc: MU: Add MU driver to communicate with M4

Add a common iMX MU driver in misc uclass to communicate with M4.
The MU message format is defined to use 4 words as below, the driver
will use all 4 TR/RR in MU to pass one message

|WORD 0     | WORD 1      | WORD 2          | WORD 3         |
|SEQ        | TYPE        | PAYLOAD ADDRESS | PAYLOAD LENGTH |

 - SEQ:
   A sequence id starts from 0 and increases for each request message

 - TYPE:
   0x1:  Request.  Message sent from AP will set to this value.
   0x2:  Response. Message responded from M4 set to this value.
   0x3:  MU A side is ready.
   0x4:  MU B side is ready.

 - PAYLOAD ADDRESS:
   A pointer to the memory address where the uplayer message is stored

 - PAYLOAD LENGTH:
   The uplayer message length

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit aba0e51cc397e1d98be950f9c15619de06ebf782)
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/imx_m4_mu.c [new file with mode: 0644]
include/imx_m4_mu.h [new file with mode: 0644]