987f78d4b1e3911cc49f9853cc96a73d975406bd
[openwrt.git] / target / linux / kirkwood / patches-3.10 / 0005-clk-mvebu-add-more-PCIe-clocks-for-Armada-XP.patch
1 From 52a1c4e3aa9027040c1adc69303aaffc3c2cbaab Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 16 May 2013 17:55:21 +0200
4 Subject: [PATCH 05/29] clk: mvebu: add more PCIe clocks for Armada XP
5
6 The current revision of the datasheet only mentions the gatable clocks
7 for the PCIe 0.0, 0.1, 0.2 and 0.3 interfaces, and forgot to mention
8 the ones for the PCIe 1.0, 1.1, 1.2, 1.3, 2.0 and 3.0
9 interfaces. After confirmation with Marvell engineers, this patch adds
10 the missing gatable clocks for those PCIe interfaces.
11
12 It also changes the name of the previously existing PCIe gatable
13 clocks, in order to match the naming using the datasheets.
14
15 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 Cc: Mike Turquette <mturquette@linaro.org>
17 Signed-off-by: Jason Cooper <jason@lakedaemon.net>
18 ---
19  drivers/clk/mvebu/clk-gating-ctrl.c | 14 ++++++++++----
20  1 file changed, 10 insertions(+), 4 deletions(-)
21
22 --- a/drivers/clk/mvebu/clk-gating-ctrl.c
23 +++ b/drivers/clk/mvebu/clk-gating-ctrl.c
24 @@ -137,10 +137,14 @@ static const struct mvebu_soc_descr __in
25         { "ge2", NULL,  2 },
26         { "ge1", NULL, 3 },
27         { "ge0", NULL, 4 },
28 -       { "pex0", NULL, 5 },
29 -       { "pex1", NULL, 6 },
30 -       { "pex2", NULL, 7 },
31 -       { "pex3", NULL, 8 },
32 +       { "pex00", NULL, 5 },
33 +       { "pex01", NULL, 6 },
34 +       { "pex02", NULL, 7 },
35 +       { "pex03", NULL, 8 },
36 +       { "pex10", NULL, 9 },
37 +       { "pex11", NULL, 10 },
38 +       { "pex12", NULL, 11 },
39 +       { "pex13", NULL, 12 },
40         { "bp", NULL, 13 },
41         { "sata0lnk", NULL, 14 },
42         { "sata0", "sata0lnk", 15 },
43 @@ -152,6 +156,8 @@ static const struct mvebu_soc_descr __in
44         { "xor0", NULL, 22 },
45         { "crypto", NULL, 23 },
46         { "tdm", NULL, 25 },
47 +       { "pex20", NULL, 26 },
48 +       { "pex30", NULL, 27 },
49         { "xor1", NULL, 28 },
50         { "sata1lnk", NULL, 29 },
51         { "sata1", "sata1lnk", 30 },