init: qcom: Setting Bluetooth soc property.
In case of msm8974-apq, setting Bluetooth property as ath3k Change-Id: I4c9da7fc422d82b97b1dac353c33b1b1913fc826
This commit is contained in:
parent
5d71b32f0c
commit
1c014d50f1
|
@ -35,6 +35,8 @@
|
|||
#define PROP_HWROTATE "ro.sf.hwrotation"
|
||||
#define PROP_LCDDENSITY "ro.sf.lcd_density"
|
||||
#define PROP_QEMU_NAVKEY "qemu.hw.mainkeys"
|
||||
#define PROP_BOOT_BASEBAND "ro.boot.baseband"
|
||||
#define PROP_BLUETOOTH_SOC "qcom.bluetooth.soc"
|
||||
|
||||
#define UNUSED(a) ((void)(a))
|
||||
#define ISMATCH(a,b) (!strncmp(a,b,PROP_VALUE_MAX))
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type)
|
||||
{
|
||||
char platform[PROP_VALUE_MAX];
|
||||
char baseband[PROP_VALUE_MAX];
|
||||
int rc;
|
||||
|
||||
UNUSED(msm_id);
|
||||
|
@ -60,4 +61,9 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
|
|||
else {
|
||||
property_set(PROP_LCDDENSITY, "320");
|
||||
}
|
||||
|
||||
rc = property_get(PROP_BOOT_BASEBAND, baseband);
|
||||
if ((rc != NULL) && ISMATCH(baseband, "apq")) {
|
||||
property_set(PROP_BLUETOOTH_SOC, "ath3k");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue