diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-11-24 02:41:14 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-25 02:29:03 -0500 |
commit | 696d6e178a95d95dbb222d89e5e91a6fa9911440 (patch) | |
tree | 3654f880ac17534b9685ffd0e1942cb37dea6033 /arch/arm/mach-shmobile/clock-sh73a0.c | |
parent | fd34f85832550d419e8b70f284ad545cdde0664f (diff) |
ARM: mach-shmobile: clock-sh73a0: modify MSTP order
This patch permuted clock arrays in the order of MSTP
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/clock-sh73a0.c')
-rw-r--r-- | arch/arm/mach-shmobile/clock-sh73a0.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c index 6e48aaefbab1..81fd429c3c24 100644 --- a/arch/arm/mach-shmobile/clock-sh73a0.c +++ b/arch/arm/mach-shmobile/clock-sh73a0.c | |||
@@ -51,10 +51,11 @@ static struct clk *main_clks[] = { | |||
51 | &hp_clk, | 51 | &hp_clk, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | enum { MSTP219, | 54 | enum { MSTP001, |
55 | MSTP001, MSTP116, MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, | 55 | MSTP116, |
56 | MSTP201, MSTP200, MSTP323, MSTP331, MSTP329, MSTP312, MSTP411, | 56 | MSTP219, MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, |
57 | MSTP410, MSTP403, | 57 | MSTP331, MSTP329, MSTP323, |
58 | MSTP411, MSTP410, MSTP403, | ||
58 | MSTP_NR }; | 59 | MSTP_NR }; |
59 | 60 | ||
60 | #define MSTP(_parent, _reg, _bit, _flags) \ | 61 | #define MSTP(_parent, _reg, _bit, _flags) \ |
@@ -62,8 +63,8 @@ enum { MSTP219, | |||
62 | 63 | ||
63 | static struct clk mstp_clks[MSTP_NR] = { | 64 | static struct clk mstp_clks[MSTP_NR] = { |
64 | [MSTP001] = MSTP(&hp_clk, SMSTPCR0, 1, 0), /* I2C2 */ | 65 | [MSTP001] = MSTP(&hp_clk, SMSTPCR0, 1, 0), /* I2C2 */ |
65 | [MSTP219] = MSTP(&sub_clk, SMSTPCR2, 19, 0), /* SCIFA7 */ | ||
66 | [MSTP116] = MSTP(&hp_clk, SMSTPCR1, 16, 0), /* I2C0 */ | 66 | [MSTP116] = MSTP(&hp_clk, SMSTPCR1, 16, 0), /* I2C0 */ |
67 | [MSTP219] = MSTP(&sub_clk, SMSTPCR2, 19, 0), /* SCIFA7 */ | ||
67 | [MSTP207] = MSTP(&sub_clk, SMSTPCR2, 7, 0), /* SCIFA5 */ | 68 | [MSTP207] = MSTP(&sub_clk, SMSTPCR2, 7, 0), /* SCIFA5 */ |
68 | [MSTP206] = MSTP(&sub_clk, SMSTPCR2, 6, 0), /* SCIFB */ | 69 | [MSTP206] = MSTP(&sub_clk, SMSTPCR2, 6, 0), /* SCIFB */ |
69 | [MSTP204] = MSTP(&sub_clk, SMSTPCR2, 4, 0), /* SCIFA0 */ | 70 | [MSTP204] = MSTP(&sub_clk, SMSTPCR2, 4, 0), /* SCIFA0 */ |
@@ -74,15 +75,17 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
74 | [MSTP331] = MSTP(&sub_clk, SMSTPCR3, 31, 0), /* SCIFA6 */ | 75 | [MSTP331] = MSTP(&sub_clk, SMSTPCR3, 31, 0), /* SCIFA6 */ |
75 | [MSTP329] = MSTP(&r_clk, SMSTPCR3, 29, 0), /* CMT10 */ | 76 | [MSTP329] = MSTP(&r_clk, SMSTPCR3, 29, 0), /* CMT10 */ |
76 | [MSTP323] = MSTP(&hp_clk, SMSTPCR3, 23, 0), /* I2C1 */ | 77 | [MSTP323] = MSTP(&hp_clk, SMSTPCR3, 23, 0), /* I2C1 */ |
77 | [MSTP403] = MSTP(&r_clk, SMSTPCR4, 0, 0), /* KEYSC0 */ | ||
78 | [MSTP411] = MSTP(&hp_clk, SMSTPCR4, 11, 0), /* I2C3 */ | 78 | [MSTP411] = MSTP(&hp_clk, SMSTPCR4, 11, 0), /* I2C3 */ |
79 | [MSTP410] = MSTP(&hp_clk, SMSTPCR4, 10, 0), /* I2C4 */ | 79 | [MSTP410] = MSTP(&hp_clk, SMSTPCR4, 10, 0), /* I2C4 */ |
80 | [MSTP403] = MSTP(&r_clk, SMSTPCR4, 0, 0), /* KEYSC0 */ | ||
80 | }; | 81 | }; |
81 | 82 | ||
82 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } | 83 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } |
83 | 84 | ||
84 | static struct clk_lookup lookups[] = { | 85 | static struct clk_lookup lookups[] = { |
85 | /* MSTP32 clocks */ | 86 | /* MSTP32 clocks */ |
87 | CLKDEV_DEV_ID("i2c-sh_mobile.2", &mstp_clks[MSTP001]), /* I2C2 */ | ||
88 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP116]), /* I2C0 */ | ||
86 | CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ | 89 | CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP219]), /* SCIFA7 */ |
87 | CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ | 90 | CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), /* SCIFA5 */ |
88 | CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ | 91 | CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), /* SCIFB */ |
@@ -93,12 +96,10 @@ static struct clk_lookup lookups[] = { | |||
93 | CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), /* SCIFA4 */ | 96 | CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), /* SCIFA4 */ |
94 | CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP331]), /* SCIFA6 */ | 97 | CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP331]), /* SCIFA6 */ |
95 | CLKDEV_DEV_ID("sh_cmt.10", &mstp_clks[MSTP329]), /* CMT10 */ | 98 | CLKDEV_DEV_ID("sh_cmt.10", &mstp_clks[MSTP329]), /* CMT10 */ |
96 | CLKDEV_DEV_ID("sh_keysc.0", &mstp_clks[MSTP403]), /* KEYSC0 */ | ||
97 | CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP116]), /* I2C0 */ | ||
98 | CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[MSTP323]), /* I2C1 */ | 99 | CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[MSTP323]), /* I2C1 */ |
99 | CLKDEV_DEV_ID("i2c-sh_mobile.2", &mstp_clks[MSTP001]), /* I2C2 */ | ||
100 | CLKDEV_DEV_ID("i2c-sh_mobile.3", &mstp_clks[MSTP411]), /* I2C3 */ | 100 | CLKDEV_DEV_ID("i2c-sh_mobile.3", &mstp_clks[MSTP411]), /* I2C3 */ |
101 | CLKDEV_DEV_ID("i2c-sh_mobile.4", &mstp_clks[MSTP410]), /* I2C4 */ | 101 | CLKDEV_DEV_ID("i2c-sh_mobile.4", &mstp_clks[MSTP410]), /* I2C4 */ |
102 | CLKDEV_DEV_ID("sh_keysc.0", &mstp_clks[MSTP403]), /* KEYSC0 */ | ||
102 | }; | 103 | }; |
103 | 104 | ||
104 | void __init sh73a0_clock_init(void) | 105 | void __init sh73a0_clock_init(void) |