sata: ahci-da850: un-hardcode the MPY bits
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Jan 2017 10:02:08 +0000 (11:02 +0100)
committerSekhar Nori <nsekhar@ti.com>
Tue, 31 Jan 2017 15:11:52 +0000 (20:41 +0530)
commitcdf0ead3747200d527f37170d3fdd41e368f88b0
tree5d710408ae682c54c8f0a3d04259183ccaddc39b
parentd3d557cf646c52add72d050790bdf41670c96bab
sata: ahci-da850: un-hardcode the MPY bits

All platforms using this driver now register the SATA refclk. Remove
the hardcoded default value from the driver and instead read the rate
of the external clock and calculate the required MPY value from it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Tejun Heo <tj@kernel.org>
[nsekhar@ti.com: fix checkpatch warning about an unneeded else]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/ata/ahci_da850.c