soc: amlogic: meson-ee-pwrc: add support for Meson8/Meson8b/Meson8m2
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 15 May 2020 20:47:08 +0000 (22:47 +0200)
committerKevin Hilman <khilman@baylibre.com>
Tue, 19 May 2020 23:02:14 +0000 (16:02 -0700)
commit34217df28db7cddb52120da57fd1d469e896af3d
treee98a85c7df4be37ddbd1d971a2b910fb528e1d78
parentcc9ca02a40e549402eebdf151a8f0ca5027e0f7c
soc: amlogic: meson-ee-pwrc: add support for Meson8/Meson8b/Meson8m2

This adds support for the power domains on Meson8/Meson8b/Meson8m2.
Meson8 doesn't use any reset lines while Meson8b and Meson8m2 use the
same set of reset lines (which is different from the newer SoCs).
Add dedicated compatible strings for Meson8, Meson8b and Meson8m2 to
support these differences.

Notable differences between Meson8 and G12A are:
- there is no HHI_VPU_MEM_PD_REG2 on the 32-bit SoCs
- the Meson8b datasheet describes an "audio DSP memory" power domain
  which is used for the hardware audio decoder
- the "amlogic,ao-sysctrl" only includes the power management related
  registers on the 32-bit SoCs, meaning the for example the
  AO_RTI_GEN_PWR_SLEEP0 register is at offset (0x2 << 2) rather than
  (0x3a << 2). As result of this (0x38 << 2) is subtracted from the
  register offsets, which is the start of the power management related
  registers.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20200515204709.1505498-4-martin.blumenstingl@googlemail.com
drivers/soc/amlogic/meson-ee-pwrc.c