diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2018-11-21 18:40:41 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-11-30 10:00:04 +0100 |
commit | f87d33e663d65d1c8a01585deb69aabb1aad0c6e (patch) | |
tree | eb90e04f679d547165789554681b4479f6c17375 /drivers/clk/qcom | |
parent | Linux 4.20-rc1 (diff) | |
download | linux-f87d33e663d65d1c8a01585deb69aabb1aad0c6e.tar.xz linux-f87d33e663d65d1c8a01585deb69aabb1aad0c6e.zip |
clk: qcom: msm8916: Additional clock rates for spi
Add SPI friendly clock rates to the spi freq table.
Today it's not possible to use SPI at lower than 960Khz.
This patch adds 100/250/500/1000 kHz configs to the table.
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r-- | drivers/clk/qcom/gcc-msm8916.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index ac2b0aa1e8b5..7d9647cc29f9 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -544,7 +544,11 @@ static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src = { }; static const struct freq_tbl ftbl_gcc_blsp1_qup1_6_spi_apps_clk[] = { + F(100000, P_XO, 16, 2, 24), + F(250000, P_XO, 16, 5, 24), + F(500000, P_XO, 8, 5, 24), F(960000, P_XO, 10, 1, 2), + F(1000000, P_XO, 4, 5, 24), F(4800000, P_XO, 4, 0, 0), F(9600000, P_XO, 2, 0, 0), F(16000000, P_GPLL0, 10, 1, 5), |