]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/dt-bindings/arm/qcom-ids.h
devicetree: bindings: Document qcom,msm-id and qcom,board-id
[karo-tx-linux.git] / include / dt-bindings / arm / qcom-ids.h
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2  *
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License version 2 and
5  * only version 2 as published by the Free Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  */
12 #ifndef __DT_BINDINGS_QCOM_IDS_H
13 #define __DT_BINDINGS_QCOM_IDS_H
14
15 /* qcom,msm-id */
16 #define QCOM_ID_MSM8916         206
17 #define QCOM_ID_APQ8016         247
18 #define QCOM_ID_MSM8216         248
19 #define QCOM_ID_MSM8116         249
20 #define QCOM_ID_MSM8616         250
21
22 /* qcom,board-id */
23 #define QCOM_BRD_ID(a, major, minor) \
24         (((major & 0xff) << 16) | ((minor & 0xff) << 8) | QCOM_BRD_ID_##a)
25
26 #define QCOM_BRD_ID_MTP         8
27 #define QCOM_BRD_ID_DRAGONBRD   10
28 #define QCOM_BRD_ID_SBC         24
29
30 #define QCOM_BRD_SUBTYPE_DEFAULT                0
31 #define QCOM_BRD_SUBTYPE_MTP8916_SMB1360        1
32
33 #endif