]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: btmrvl: use cal-data from device-tree instead of conf file
authorBing Zhao <bzhao@marvell.com>
Fri, 1 Nov 2013 22:28:24 +0000 (15:28 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 1 Nov 2013 22:37:27 +0000 (15:37 -0700)
commit6857c04c22317671889271248d54f71be2f9af5a
tree2b04929aa9d78ff7e54df7aa8209f63259025992
parent9111c17ae937d5871c8696451515934e6190d769
Bluetooth: btmrvl: use cal-data from device-tree instead of conf file

Some ARM versions of Chromebook need to download a new calibration
data from host driver to firmware. They do have EEPROM but still
need a piece of new calibration data in test mode.

The cal-data is platform dependent. It's simpler and more feasible
to use device tree based cal-data instead of configuration file
based cal-data.

This patch remove configuration file based cal-data downloading
and replace it using cal-data from device tree.

When CONFIG_OF is not selected, or the specific property is not
present in the device tree, the calibration downloading will not
happen.

Cc: Mike Frysinger <vapier@chromium.org>
Cc: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Hyuckjoo Lee <hyuckjoo.lee@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_drv.h
drivers/bluetooth/btmrvl_main.c
drivers/bluetooth/btmrvl_sdio.c
drivers/bluetooth/btmrvl_sdio.h