Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47483 )
Change subject: [WIP] soc/amd/common: factor out SMU code from Picasso
......................................................................
Patch Set 2:
Patch Set 2:
Patch Set 2: Code-Review-1
The SMU code here may work on Picasso, and may work on Renoir. However, it is not common to the AM4 CPUs. Matisse, for example, has different values for the REG_ADDR_* constants and also supports 8 arguments instead of 6.
Perhaps use Kconfig's to define those values, or have them be in an include file from the picasso soc?
#include <soc/smu_defs.h>
struct smu_payload {
...
I included soc-specific header files in an earlier version of the patch in the common code, but found that to be not very elegant, but it seems that there's not really a way around that
--
To view, visit
https://review.coreboot.org/c/coreboot/+/47483
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibaf5b91ab35428e4c771e7163c6e0c4fc50371e7
Gerrit-Change-Number: 47483
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Jeremy Soller
jeremy@system76.com
Gerrit-Reviewer: Marshall Dawson
marshalldawson3rd@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 12 Nov 2020 17:14:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment