]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc3c7c914ba13093d06cbe2d3b60c231a1563c95
treee98a85c7df4be37ddbd1d971a2b910fb528e1d78
parent4b2bf75d5cf8c5db68cb600e4807b6d3a029927e
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