Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39828 )
Change subject: sb/intel/bd82x6x/sata: Add legacy mode support
......................................................................
Patch Set 9:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39828/2/src/southbridge/intel/bd82x...
File src/southbridge/intel/bd82x6x/sata.c:
https://review.coreboot.org/c/coreboot/+/39828/2/src/southbridge/intel/bd82x...
PS2, Line 143: pci_or_config8(dev, 0x09, 0x05);
I can put names to all the registers in a separate patch. […]
Angel, feel free to, but please coordinate with Felix. PCI registers below 0x40
are standard registers. This one is PCI_CLASS_PROG and already defined.
For the bits I'd suggest
#define PI_PRIMARY_MODE_NATIVE (1 << 0)
#define PI_SECONDARY_MODE_NATIVE (1 << 2)
But I have to say, 0x05 seems more readable to me, fits a single line and one
has to look it up in the datasheet anyway to be sure.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/39828
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0e7a4befa02772f620602fa2a92c3583895d4d1c
Gerrit-Change-Number: 39828
Gerrit-PatchSet: 9
Gerrit-Owner: Felix Singer
felixsinger@posteo.net
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Comment-Date: Tue, 07 Apr 2020 11:36:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Rudolph
patrick.rudolph@9elements.com
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Gerrit-MessageType: comment