MLK-16225: clk: imx8qm: Add fsl,lpcg_base_offset property
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 28 Sep 2017 16:24:59 +0000 (19:24 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:43 +0000 (15:38 -0500)
commit997d3fde5a56ce096c078e71513b5a0ef95c1792
tree3c3c109920a19e09c3151361489633617d4194a1
parentf5fa786a36274cd0804a384b7b517a7462ebc74d
MLK-16225: clk: imx8qm: Add fsl,lpcg_base_offset property

Right now the imx8qm clock provider hardcodes physical addresses. In
virtualization scenarios the intermediate physical addresses visible
from a guest can be different. In theory a 1:1 mapping could be done but
that in xen it would overlap with hardcoded guest ram starting at
0x40000000.

Solve this by adding a property with a common offset for all lpcg
areas. This should be set in the guest dts.

In theory each lpcg block could be remapped with it's own offset but
that is not supported.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Ranjani Vaidyanathan <Ranjani.vaidyanathan@nxp.com>
drivers/clk/imx/clk-imx8qm.c