Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44aefe7d authored by pramod kotreshappa's avatar pramod kotreshappa Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Add delay between BT enable line toggle



Add 50msec delay between BT_EN gpio line toggle from 0 to 1
during BT turn on process to allow settling time for the controller
to recongnize the BT_EN pin toggle.

Change-Id: I795ddca18ef91402c3194bedddcf30a713481a59
CRs-fixed: 690360
Signed-off-by: default avatarPramod Kotreshappa <pramodk@codeaurora.org>
parent a2ff6042
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -169,13 +169,13 @@ static int bt_configure_gpios(int on)
			BT_PWR_ERR("Unable to set direction\n");
			return rc;
		}

		msleep(50);
		rc = gpio_direction_output(bt_reset_gpio, 1);
		if (rc) {
			BT_PWR_ERR("Unable to set direction\n");
			return rc;
		}
		msleep(100);
		msleep(50);
	} else {
		gpio_set_value(bt_reset_gpio, 0);
		msleep(100);