diff options
author | Ionela Voinescu <ionela.voinescu@imgtec.com> | 2015-03-09 15:31:38 +0000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-22 08:50:10 +0200 |
commit | 2fdc61af6eea14450054cb0135bb6ad3f6a14831 (patch) | |
tree | 9dbc282650196fff5230d2bc89b931fed5cbf3a1 /src/include/boardid.h | |
parent | 97ab4250e778d195eba8874f3e9bcbdc830f4dbc (diff) | |
download | coreboot-2fdc61af6eea14450054cb0135bb6ad3f6a14831.tar.xz |
google/urara: use board ID information to set up hardware
The hardware initialization is now split in basic
initialization (MIPS and system PLL, system clock,
SPIM, UART), and initialization of other hardware
blocks (USB, I2C, ETH). The second part uses board ID
information to select setup that is board specific
(currently only I2C interface is selected through
board ID).
BRANCH=none
BUG=chrome-os-partner:37593
TEST=tested on bring up board for both Urara and Concerto;
to simulate the use of Concerto (I2C3) DIP SW17 was
set to 0.
it works with default settings on Urara
Change-Id: Ic5bbf28ab42545a4fb2aa6fd30592a02ecc15cb5
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: f2b3db2e7f9fa898214f974ca34ea427196d2e4e
Original-Change-Id: Iac9a082ad84444af1d9d9785a2d0cc3205140d15
Original-Signed-off-by: Ionela Voinescu <ionela.voinescu@imgtec.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/257401
Original-Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/9888
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/include/boardid.h')
-rw-r--r-- | src/include/boardid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/boardid.h b/src/include/boardid.h index 41c21d6e31..ce8dc6c19c 100644 --- a/src/include/boardid.h +++ b/src/include/boardid.h @@ -22,6 +22,11 @@ #include <stdint.h> +struct board_hw { + uint8_t i2c_interface; +}; + +const struct board_hw *board_get_hw(void); uint8_t board_id(void); uint32_t ram_code(void); |