OSDN Git Service

mailbox: pcc: Add PCC register bundle and associated accessor functions
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 17 Sep 2021 13:33:52 +0000 (14:33 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 03:46:38 +0000 (22:46 -0500)
commit800cda7b63f22be62e67142f1202d2ead2dff2e8
tree5afeebd9515ac4496cd04e040cffda55d23be04d
parentf92ae90e52bb09d6856ef2785773be59dd633f85
mailbox: pcc: Add PCC register bundle and associated accessor functions

Extended PCC subspaces introduces more registers into the PCCT. In order
to consolidate access to these registers and to keep all the details
contained in one place, let us introduce PCC register bundle that holds
the ACPI Generic Address Structure as well as the virtual address for
the same if it is mapped in the OS.

It also contains the various masks used to access the register and
the associated read, write and read-modify-write accessors.

We can also clean up the initialisations by having a helper function
for the same.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c