-
-
Save carlocaione/45bfdab9228fc0983e39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 582eb1754ef73cb741c821ba5cb88fae53392d6e | |
Author: Carlo Caione <carlo@endlessm.com> | |
Date: Fri Feb 19 07:51:08 2016 +0100 | |
wip | |
This reverts commit 8f5cd6ee410562fcdf5d1eb13894dad1bfe9ca24. | |
diff --git a/arch/arm/boot/dts/meson8b-atv185.dts b/arch/arm/boot/dts/meson8b-atv185.dts | |
index 933bdde..000e2e4 100755 | |
--- a/arch/arm/boot/dts/meson8b-atv185.dts | |
+++ b/arch/arm/boot/dts/meson8b-atv185.dts | |
@@ -146,6 +146,13 @@ | |
dev_name = "uart_3"; | |
}; | |
+ bt-dev { | |
+ compatible = "amlogic,bt-dev"; | |
+ dev_name = "bt-dev"; | |
+ status = "ok"; | |
+ gpio_reset = "GPIOX_20"; | |
+ }; | |
+ | |
wifi { | |
compatible = "amlogic,aml_broadcm_wifi"; | |
dev_name = "aml_broadcm_wifi"; | |
@@ -475,6 +482,12 @@ | |
status = "okay"; | |
}; | |
+ audio_pcm2BT_codec { | |
+ compatible = "amlogic,pcm2BT-codec"; | |
+ dev_name = "pcm2bt.0"; | |
+ status = "okay"; | |
+ }; | |
+ | |
audio_pcm_dai { | |
compatible = "amlogic,aml-pcm-dai"; | |
dev_name = "aml-pcm-dai.0"; | |
diff --git a/drivers/amlogic/bluetooth/bt_device.c b/drivers/amlogic/bluetooth/bt_device.c | |
index 8338024..833d671 100755 | |
--- a/drivers/amlogic/bluetooth/bt_device.c | |
+++ b/drivers/amlogic/bluetooth/bt_device.c | |
@@ -53,9 +53,11 @@ static void bt_device_init(struct bt_dev_data *pdata) | |
} | |
if(pdata->gpio_reset > 0 ) { | |
- amlogic_gpio_direction_output(pdata->gpio_reset, 1, BT_RFKILL); | |
- msleep(50); | |
amlogic_gpio_direction_output(pdata->gpio_reset, 0, BT_RFKILL); | |
+ printk(KERN_EMERG " ============> gpio_reset LOW\n"); | |
+ msleep(50); | |
+ amlogic_gpio_direction_output(pdata->gpio_reset, 1, BT_RFKILL); | |
+ printk(KERN_EMERG " ============> gpio_reset HIGH\n"); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment