Signed-off-by: Samuel Holland <email address hidden>
(cherry-pick from https://github.com/smaeul/linux.git riscv/d1-wip)
Signed-off-by: Emil Renner Berthing <email address hidden>
a0a408e...
by
Samuel Holland <email address hidden>
As Icenowy pointed out, newer manuals (starting with H6) actually
document the register block at offset 0x800 as "HCI controller and PHY
interface", also describe the bits in our "PMU_UNK1" register.
Let's put proper names to those "unknown" variables and symbols.
While we are at it, generalise the existing code by allowing a bitmap
of bits to clear and set, to cover newer SoCs: The A100 and H616 use a
different bit for the SIDDQ control.
Signed-off-by: Andre Przywara <email address hidden>
Signed-off-by: Samuel Holland <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Vinod Koul <email address hidden>
(backported from commit 1743dea7f06b939f67ba258bab993fa5ff6e43fb)
Signed-off-by: Emil Renner Berthing <email address hidden>