]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: mediatek: Allow reading firmware-name from DT
authorAllen-KH Cheng <allen-kh.cheng@mediatek.com>
Tue, 19 Apr 2022 12:33:31 +0000 (20:33 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 26 Apr 2022 16:21:37 +0000 (10:21 -0600)
commitc1fb7c49ce36ce1eb2f2f01c6c576a08aa169e7e
tree407d32ab821ee29276d9101468821e7d2184a51f
parent4aabed7faa99e5a6cdfa4527fe59d39297bf4b27
remoteproc: mediatek: Allow reading firmware-name from DT

The SCP firmware blob differs between platforms and SoCs. We add
support in the SCP driver for reading the path of firmware file from
DT in order to allow these files to live in a generic file system
(or linux-firmware).

The firmware-name property is optional and the code falls back to the
old filename if the property isn't present.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220419123331.14377-3-allen-kh.cheng@mediatek.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/mtk_scp.c