Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30608 )
Change subject: drivers/cavium: Add UART PCI driver
......................................................................
Patch Set 2:
On a related topic; I looked at definitions of 'struct cn81xx_uart'
and 'struct pl011_uart'. Since those need to match hardware
register layout, shouldn't they have attribute __packed applied?
Or are we happy with the check_member() asserts here that check
overall size.
As for the bitfields in 'union cn81xx_uart_ctl'; from what I
remember C standard does not dictate if first field occupies MSB or
LSB, and its relevant here as well.
Yes, they should be packed and should work for all endianes.
ATM the Cavium Soc always operate in LE mode.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/30608
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0fa2f086aba9b4f9c6dba7a35a84ea61c5fa64e4
Gerrit-Change-Number: 30608
Gerrit-PatchSet: 2
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Nico Huber
nico.h@gmx.de
Gerrit-Comment-Date: Wed, 23 Jan 2019 12:42:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment