• Orson Zhai's avatar
    mailbox: sprd: Add supplementary inbox support · 6457f4cd
    Orson Zhai authored
    Some sensors connected to Unisoc mailbox will send data very frequently.
    This makes channel 0 very busy and the messages from other remote cores
    not able to be handled as soon as possible.
    
    It's a trick (un-documented) from Unisoc ASIC designers to resolve this
    special requirement that an inbox assigned to one of the remote cores
    before was modified to be exposed to host cpu core.
    
    Then from host side, a supplementary inbox is added for transferring mass
    but not emergency messages from the remote cores, such as step counting
    sensor, with an independent FIFO and interrupt which is as same as channel
    0. Meanwihle, inbox part of this channel is still kept for original remote
    core to use.
    Signed-off-by: default avatarOrson Zhai <orson.zhai@unisoc.com>
    Reviewed-by: default avatarBaolin Wang <baolin.wang7@gmail.com>
    Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
    6457f4cd
sprd-mailbox.c 11.5 KB