summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-04-29 18:41:03 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-05-02 13:56:00 +0000
commit63e7b7064137f1854256f07a8f49b986ea944080 (patch)
treeceab2902c6b0fb3a1f8e66d5b1fa4e8bde4a07ea /src/lib
parent81d0d89613c2eb30763c8cd04b36625b856eef38 (diff)
soc/amd/common/block/psp/psp_gen2: factor out pspv2_mbox_command union
The pspv2_mbox struct contained an unnamed union that covered the 32 bits of the command register of the PSP v2 mailbox. Since the pspv2_mbox struct is mainly used for hardware register accesses and the union part is mostly used to access the different bits before/after writing/reading the command register, split this functionality. For the register access a command field is added to the pspv2_mbox struct instead of the unnamed union and for accessing the separate bits of the command register a new named union is added. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: If3f00b6fd73c3f749154b77b940e6d5aa385ec49 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63963 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions