blob: 110e8b05aedab63405bf7f4e95592eeb312accd2 (
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
45
46
47
48
49
50
|
/*
* 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_BEYOND)
#if ANDROID_VERSION < 100000 //p_os
#define SSP_FIRMWARE_REVISION_BCM 19071200
#elif ANDROID_VERSION < 110000 //q_os
#define SSP_FIRMWARE_REVISION_BCM 20091700
#else //r_os
#define SSP_FIRMWARE_REVISION_BCM 21041300
#endif
#elif defined(CONFIG_SENSORS_SSP_DAVINCI)
#if ANDROID_VERSION < 100000 //p_os
#define SSP_FIRMWARE_REVISION_BCM 19101700
#elif ANDROID_VERSION < 110000 //q_os
#define SSP_FIRMWARE_REVISION_BCM 20081200
#else //r_os
#define SSP_FIRMWARE_REVISION_BCM 21041300
#endif
#else
#define SSP_FIRMWARE_REVISION_BCM 00000000
#endif
#define SSP_FIRMWARE_REVISION_NEW_OLD_BCM 19102400
unsigned int get_module_rev(struct ssp_data *data)
{
int patch_version = get_patch_version(data->ap_type, data->ap_rev);
if(patch_version == bbd_new_old)
return SSP_FIRMWARE_REVISION_NEW_OLD_BCM;
return SSP_FIRMWARE_REVISION_BCM;
}
|