]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath10k: read calibration data from Device Tree
authorToshi Kikuchi <toshik@chromium.org>
Tue, 2 Dec 2014 08:55:54 +0000 (10:55 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 8 Dec 2014 15:33:29 +0000 (17:33 +0200)
commit5aabff05df8e137c6690437f79b05408294fea57
treeae4c334b4d3a2cb032d5844148a56cbabe976466
parent488dad953092427e1ed4340927dda0dc2ae7dd8a
ath10k: read calibration data from Device Tree

This patch adds support for reading calibration data from Device Tree.
It looks for the calibration data in Device Tree if it can't find it
in a file. If there's no node in Device Tree, ath10k will try to find the
calibration data from OTP.

The node for the calibration data should be defined like this:

pci {
        pcie@0 {
                reg = <0 0 0 0 0>;
                #interrupt-cells = <1>;
                #size-cells = <2>;
                #address-cells = <3>;
                device_type = "pci";

                ath10k@0,0 {
                        reg = <0 0 0 0 0>;
                        device_type = "pci";
                        qcom,ath10k-calibration-data = [ 01 02 03 ... ];
                };
        };
};

Signed-off-by: Toshi Kikuchi <toshik@chromium.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h