summaryrefstree
path: root/kernel/drivers/sensorhub/brcm_legacy/ssp_firmware.c
blob: 210ae3974692e63849f82ee76cf377d753781b8d (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
/*
*  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_NOBLELTE) || defined(CONFIG_SENSORS_SSP_ZENLTE)
#undef SSP_FIRMWARE_REVISION_BCM
#define SSP_FIRMWARE_REVISION_BCM	15081300
#elif defined (CONFIG_SENSORS_SSP_VLTE_W02)
#undef SSP_FIRMWARE_REVISION_BCM
#define SSP_FIRMWARE_REVISION_BCM	15071700
#elif defined (CONFIG_SENSORS_SSP_VLTE)
#undef SSP_FIRMWARE_REVISION_BCM
#define SSP_FIRMWARE_REVISION_BCM	15071300
#elif defined (CONFIG_SENSORS_SSP_MARINELTE)
#define SSP_FIRMWARE_REVISION_BCM	16041800
#else // ZERO
#if ANDROID_VERSION < 70000			/* M OS*/
#define SSP_FIRMWARE_REVISION_BCM	16110400
#else								/* N OS*/
#define SSP_FIRMWARE_REVISION_BCM	17020600
#endif	
#endif
unsigned int get_module_rev(struct ssp_data *data)
{
	return SSP_FIRMWARE_REVISION_BCM;
}