summaryrefslogtreecommitdiff
path: root/board/oak/board_revs.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/oak/board_revs.h')
-rw-r--r--board/oak/board_revs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/board/oak/board_revs.h b/board/oak/board_revs.h
new file mode 100644
index 0000000000..ef25751b16
--- /dev/null
+++ b/board/oak/board_revs.h
@@ -0,0 +1,25 @@
+/* Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_BOARD_REVS_H
+#define __CROS_EC_BOARD_REVS_H
+
+#define OAK_REV0 0
+#define OAK_REV1 1
+#define OAK_REV2 2
+#define OAK_REV3 3
+#define OAK_REV4 4
+#define OAK_REV_LAST OAK_REV4
+#define OAK_REV_DEFAULT OAK_REV3
+
+#if !defined(BOARD_REV)
+#define BOARD_REV OAK_REV_DEFAULT
+#endif
+
+#if BOARD_REV < OAK_REV1 || BOARD_REV > OAK_REV_LAST
+#error "Board revision out of range"
+#endif
+
+#endif /* __CROS_EC_BOARD_REVS_H */