blob: dbc533c96557c2482f897f40ce15a08b3d8bb09f (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* Copyright (C) 2012, Samsung Electronics Co. Ltd. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#include "ssp.h"
#if defined(CONFIG_SENSORS_SSP_DREAM)
#if ANDROID_VERSION < 80000
#define SSP_FIRMWARE_REVISION_BCM 17092800 /*Android N*/
#elif ANDROID_VERSION < 90000
#define SSP_FIRMWARE_REVISION_BCM 18071100 /*Android O*/
#else
#define SSP_FIRMWARE_REVISION_BCM 19101000 /*Android P*/
#endif
#elif defined(CONFIG_SENSORS_SSP_GREAT)
#if ANDROID_VERSION < 80000
#define SSP_FIRMWARE_REVISION_BCM 17101701 /*Android N*/
#elif ANDROID_VERSION < 90000
#define SSP_FIRMWARE_REVISION_BCM 18020700 /*Android O*/
#else
#define SSP_FIRMWARE_REVISION_BCM 19011400 /*Android P*/
#endif
#elif defined(CONFIG_SENSORS_SSP_VLTE)
#define SSP_FIRMWARE_REVISION_BCM 17063000
#elif defined(CONFIG_SENSORS_SSP_LUGE)
#define SSP_FIRMWARE_REVISION_BCM 17102300
#else
#define SSP_FIRMWARE_REVISION_BCM 00000000
#endif
unsigned int get_module_rev(struct ssp_data *data)
{
return SSP_FIRMWARE_REVISION_BCM;
}
|