summaryrefslogtreecommitdiff
path: root/board/oak/board_revs.h
blob: 6220a05fb0ad068c35b7181f810656c95c8d5f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright 2015 The ChromiumOS Authors
 * 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_REV5 5
#define OAK_REV_LAST OAK_REV5
#define OAK_REV_DEFAULT OAK_REV5

#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 */