google/oak: Add derivative board Elm

Hardware / Coreboot - Julius Werner [chromium.org] - 9 May 2016 01:32 UTC

This patch adds a new mainboard Google/Elm as a derivative of Google/Oak, using the same code sharing technique for derivative boards that was pioneered with Google/Veyron*. For now, there are no firmware-relevant fundamental differences between the two boards.

In addition, introduce a board-specific Kconfig for the "board ID adjustment" to represent the fact that the Elm board ID space mirrors the Oak board ID space with an offset of 6, meaning Elm rev0 is equivalent to Oak rev6, and future board changes will be made on both boards to maintain this stride (at least virtually... not all of those revisions will necessarily get built). This should make it much easier to keep the code that handles revision differences somewhat clean. (That's the theory, anyway... whether it will work out remains to be seen.)

BRANCH=None BUG=None TEST=Booted Elm image with hardcoded board ID 0 on Oak rev6.

Change-Id: If540aea862b746cf4986a74482ae1764c104fb73

9a57095 google/oak: Add derivative board Elm
src/mainboard/google/oak/Kconfig | 18 ++++++++++++++++--
src/mainboard/google/oak/Kconfig.name | 5 +++++
src/mainboard/google/oak/bootblock.c | 4 ++--
src/mainboard/google/oak/chromeos.c | 2 +-
src/mainboard/google/oak/mainboard.c | 30 ++++++++++++++++++------------
src/mainboard/google/oak/romstage.c | 2 +-
6 files changed, 43 insertions(+), 18 deletions(-)

Upstream: review.coreboot.org


  • Share