kirkwood: add linux 3.10 support
[openwrt/staging/dedeckeh.git] / target / linux / kirkwood / patches-3.10 / 0005-clk-mvebu-add-more-PCIe-clocks-for-Armada-XP.patch
1 From 7bda5e7704872a2f01a6c980bb7616d689520ea5 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Fri, 18 Jan 2013 16:42:01 +0100
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 ---
18 drivers/clk/mvebu/clk-gating-ctrl.c | 14 ++++++++++----
19 1 file changed, 10 insertions(+), 4 deletions(-)
20
21 diff --git a/drivers/clk/mvebu/clk-gating-ctrl.c b/drivers/clk/mvebu/clk-gating-ctrl.c
22 index b35785a..2f03723 100644
23 --- a/drivers/clk/mvebu/clk-gating-ctrl.c
24 +++ b/drivers/clk/mvebu/clk-gating-ctrl.c
25 @@ -137,10 +137,14 @@ static const struct mvebu_soc_descr __initconst armada_xp_gating_descr[] = {
26 { "ge2", NULL, 2 },
27 { "ge1", NULL, 3 },
28 { "ge0", NULL, 4 },
29 - { "pex0", NULL, 5 },
30 - { "pex1", NULL, 6 },
31 - { "pex2", NULL, 7 },
32 - { "pex3", NULL, 8 },
33 + { "pex00", NULL, 5 },
34 + { "pex01", NULL, 6 },
35 + { "pex02", NULL, 7 },
36 + { "pex03", NULL, 8 },
37 + { "pex10", NULL, 9 },
38 + { "pex11", NULL, 10 },
39 + { "pex12", NULL, 11 },
40 + { "pex13", NULL, 12 },
41 { "bp", NULL, 13 },
42 { "sata0lnk", NULL, 14 },
43 { "sata0", "sata0lnk", 15 },
44 @@ -152,6 +156,8 @@ static const struct mvebu_soc_descr __initconst armada_xp_gating_descr[] = {
45 { "xor0", NULL, 22 },
46 { "crypto", NULL, 23 },
47 { "tdm", NULL, 25 },
48 + { "pex20", NULL, 26 },
49 + { "pex30", NULL, 27 },
50 { "xor1", NULL, 28 },
51 { "sata1lnk", NULL, 29 },
52 { "sata1", "sata1lnk", 30 },
53 --
54 1.8.4.rc1
55