remoteproc: pru: Fix loading of GNU Binutils ELF
authorDimitar Dimitrov <dimitar@dinux.eu>
Wed, 30 Dec 2020 10:50:05 +0000 (12:50 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 8 Mar 2021 16:49:37 +0000 (10:49 -0600)
commite6d9423d31b2f9bdd0220fd0584e3bb6ed2c4e52
tree3202d3467ffbe9241a09dd3682452208ad8a84e8
parent5f140174988edc739530ed9f2220e458a488b10a
remoteproc: pru: Fix loading of GNU Binutils ELF

PRU port of GNU Binutils lacks support for separate address spaces.
PRU IRAM addresses are marked with artificial offset to differentiate
them from DRAM addresses. Hence remoteproc must mask IRAM addresses
coming from GNU ELF in order to get the true hardware address.

PRU firmware used for testing was the example in:
  https://github.com/dinuxbg/pru-gcc-examples/tree/master/blinking-led/pru

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Link: https://lore.kernel.org/r/20201230105005.30492-1-dimitar@dinux.eu
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/pru_rproc.c