summaryrefstree
path: root/kernel/drivers/sensorhub/brcm/ssp_firmware.c
blob: 26cf0a21f523ea7f7c9f4f5cc862c2aa379d6b3d (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
/*
*  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
#if ANDROID_VERSION < 70000			/* M OS*/
#define SSP_FIRMWARE_REVISION_BCM	16060900
#else								/* N OS*/
#define SSP_FIRMWARE_REVISION_BCM	17020600
#endif	
#elif defined (CONFIG_SENSORS_SSP_VLTE)
#undef SSP_FIRMWARE_REVISION_BCM
#define SSP_FIRMWARE_REVISION_BCM	15103000
#elif defined (CONFIG_SENSORS_SSP_MARINELTE)
#define SSP_FIRMWARE_REVISION_BCM	15081200
#else // ZERO
#define SSP_FIRMWARE_REVISION_BCM	15102600
#endif

unsigned int get_module_rev(struct ssp_data *data)
{
	return SSP_FIRMWARE_REVISION_BCM;
}