OSDN Git Service

Bluetooth: hci_bcm: Add support for regulator supplies
authorChen-Yu Tsai <wens@csie.org>
Mon, 17 Dec 2018 04:04:43 +0000 (12:04 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Dec 2018 23:28:39 +0000 (00:28 +0100)
commit75d11676dccb643de1e850c8a29f5e9aa58157c0
treee2b3e522d4c8505b8a72ffa66c481907a443daca
parent90bc07cc59ac32f37d6de78a501246575c8866bf
Bluetooth: hci_bcm: Add support for regulator supplies

The Broadcom Bluetooth chips have two power inputs, VBAT and VDDIO.
The former provides overall power for the chip, while the latter powers
the I/O pins and buffers.

Model these two as regulator supplies, and let the driver manage them
in the same way as it does the clock supply.

Tested-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c