summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-18 14:19:47 -0700
committerSimon Glass <sjg@chromium.org>2011-10-20 16:07:12 -0700
commit1a0c981683db4a38e685e11eaf233ceabf6ea66a (patch)
treefa3d26088b9c1dff3927c571175aac74a23cdced /board
parent88c96779f8429c9d2e934a33407e4d3d937b5002 (diff)
tegra: Check for I2C support when using clock scaling
It is not possible to enable CONFIG_TEGRA_CLOCK_SCALING without I2C and the current error message is not friendly. Add an explicit message to the board file. BUG=chromium-os:19004 TEST=build for Seaboard with and without I2C and see that it gives an error in the second case but not the first Change-Id: I65b7f379c48ee5f737ea5a473954cfc69f457021 Reviewed-on: http://gerrit.chromium.org/gerrit/10248 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/nvidia/common/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 34945a5457..bff7da55fd 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -68,6 +68,10 @@
DECLARE_GLOBAL_DATA_PTR;
+#if defined(CONFIG_TEGRA_CLOCK_SCALING) && !defined(CONFIG_TEGRA_I2C)
+#error "tegra: We need CONFIG_TEGRA_I2C to support CONFIG_TEGRA_CLOCK_SCALING"
+#endif
+
enum {
/* UARTs which we can enable */
UARTA = 1 << 0,