init: qcom: Setting Bluetooth soc property.

In case of msm8974-apq, setting Bluetooth property as ath3k

Change-Id: I4c9da7fc422d82b97b1dac353c33b1b1913fc826
This commit is contained in:
Pradeep Panigrahi 2014-01-11 12:50:53 +05:30
parent 5d71b32f0c
commit 1c014d50f1
2 changed files with 8 additions and 0 deletions

View File

@ -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))

View File

@ -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");
}
}