diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-08-21 14:50:36 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-27 08:03:28 +0100 |
commit | 65c5b9d4310302c327231f8ba2bc54d034b34276 (patch) | |
tree | c754b7f3b5b57110f448d79a68607a26e47e01dc /src/soc/nvidia | |
parent | 913067d44f4daa2d58aacac0c33cb2938a0b3740 (diff) | |
download | coreboot-65c5b9d4310302c327231f8ba2bc54d034b34276.tar.xz |
tegra132: add enums for bus names
Instead of requiring the mainboards to know the magic
literals for the bus numbers provide an easier name to
number to handle all the weird ordering.
BUG=chrome-os-partner:31106
BRANCH=None
TEST=Built and booted on ryu.
Change-Id: I4a90f5f5f3ed1d936e2eee23f4726069adc49cc7
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b028e90650384c947a3d0ee84c6d1346a22b22b9
Original-Change-Id: Id4d773d3049a43b186711900c61935ba7f3562ce
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/213491
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8996
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/nvidia')
-rw-r--r-- | src/soc/nvidia/tegra132/include/soc/funitcfg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/soc/nvidia/tegra132/include/soc/funitcfg.h b/src/soc/nvidia/tegra132/include/soc/funitcfg.h index 9c7dd9bee2..516bc65445 100644 --- a/src/soc/nvidia/tegra132/include/soc/funitcfg.h +++ b/src/soc/nvidia/tegra132/include/soc/funitcfg.h @@ -42,6 +42,22 @@ enum { FUNIT_INDEX_MAX, }; +/* + * Note: these bus numbers are dependent on the driver implementations, and + * currently the I2C is 0-based and SPI is 1-based in its indexing. + */ +enum { + + I2C2_BUS = 1, + I2C3_BUS = 2, + I2C5_BUS = 4, + I2CPWR_BUS = I2C5_BUS, + I2C6_BUS = 5, + + SPI1_BUS = 1, + SPI4_BUS = 4, +}; + struct funit_cfg { uint32_t funit_index; uint32_t clk_src_id; |