Martin Roth has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43307 )
Change subject: soc/amd/common: Refactor and consolidate code for spi base
......................................................................
Patch Set 8:
(3 comments)
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/in...
File src/soc/amd/common/block/include/amdblocks/spi.h:
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/in...
PS6, Line 8: extern uintptr_t spi_base;
I agree. I'll revert back to the old code, then look at reorganizing things in a follow-on patch.
Done
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/sp...
File src/soc/amd/common/block/spi/fch_spi_ctrl.c:
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/sp...
PS6, Line 35: spi_base
Good point. I'd prefer encapsulation.
encapsulated in a single file in a follow-on patch. cb:43772
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/sp...
PS6, Line 35: return read8((void *)(spi_base + reg));
I would not call it slower. For some compilation units, it may double the .text section size.
Addressed in the commit message in a follow-on patch. cb:43772
--
To view, visit
https://review.coreboot.org/c/coreboot/+/43307
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I50d9de269bcb88fbf510056a6216e22a050cae6b
Gerrit-Change-Number: 43307
Gerrit-PatchSet: 8
Gerrit-Owner: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Eric Peers
epeers@google.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: Rob Barnes
robbarnes@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 23 Jul 2020 22:36:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel
rrangel@chromium.org
Comment-In-Reply-To: Martin Roth
martinroth@google.com
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Kyösti Mälkki
kyosti.malkki@gmail.com
Comment-In-Reply-To: Aaron Durbin
adurbin@chromium.org
Comment-In-Reply-To: Felix Held
felix-coreboot@felixheld.de
Gerrit-MessageType: comment