MLK-13279 rpmsg: imx: make vring address configurable by dts
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Mon, 26 Sep 2016 21:44:45 +0000 (16:44 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:52:32 +0000 (14:52 -0500)
commit258dac35c7078959db4ed0002a113cbd78636251
treefaead6e338b73eef5478039c9a64c77ad91fbc37
parent51033ebee3caadb4e12a30f32b585f5eb2200d51
MLK-13279 rpmsg: imx: make vring address configurable by dts

vring memory address was hardcoded at the top of the 1GB RAM.
For systems with a memory map with less or different than 1GB,
the hardcoded value might be not correct and cause issues.

This patch add the support to pass the vring address from device
tree configuration on the reg platform argument in the following
format:

    reg = <vring_address vring_size>

For example, for a 512MB system, with the rpmgs vring placed at
top of the memory the configuration will look like below:

    &rpmsg{
           reg = <0x9FFF0000 0x8000>;
    };

Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
arch/arm/mach-imx/imx_rpmsg.c