diff options
| author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-02-25 02:39:49 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-10 22:36:29 -0500 |
| commit | 53bc18ef4d8cb287c0667389fa05721aedf54e15 (patch) | |
| tree | 1d5e7f5c51c69a1da0ae597c8ccc692fac0867b2 | |
| parent | ceb7afe270c9a41130ffd3560e284f1ba0b2abe0 (diff) | |
sh: add mmc clock in clock-sh7757
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7757.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7757.c b/arch/sh/kernel/cpu/sh4a/clock-sh7757.c index e073e3eb4c3d..eedddad13835 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7757.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7757.c | |||
| @@ -77,9 +77,10 @@ struct clk div4_clks[DIV4_NR] = { | |||
| 77 | 77 | ||
| 78 | #define MSTPCR0 0xffc80030 | 78 | #define MSTPCR0 0xffc80030 |
| 79 | #define MSTPCR1 0xffc80034 | 79 | #define MSTPCR1 0xffc80034 |
| 80 | #define MSTPCR2 0xffc10028 | ||
| 80 | 81 | ||
| 81 | enum { MSTP004, MSTP000, MSTP114, MSTP113, MSTP112, | 82 | enum { MSTP004, MSTP000, MSTP114, MSTP113, MSTP112, |
| 82 | MSTP111, MSTP110, MSTP103, MSTP102, | 83 | MSTP111, MSTP110, MSTP103, MSTP102, MSTP220, |
| 83 | MSTP_NR }; | 84 | MSTP_NR }; |
| 84 | 85 | ||
| 85 | static struct clk mstp_clks[MSTP_NR] = { | 86 | static struct clk mstp_clks[MSTP_NR] = { |
| @@ -95,6 +96,9 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
| 95 | [MSTP110] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR1, 10, 0), | 96 | [MSTP110] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR1, 10, 0), |
| 96 | [MSTP103] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR1, 3, 0), | 97 | [MSTP103] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR1, 3, 0), |
| 97 | [MSTP102] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR1, 2, 0), | 98 | [MSTP102] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR1, 2, 0), |
| 99 | |||
| 100 | /* MSTPCR2 */ | ||
| 101 | [MSTP220] = SH_CLK_MSTP32(&div4_clks[DIV4_P], MSTPCR2, 20, 0), | ||
| 98 | }; | 102 | }; |
| 99 | 103 | ||
| 100 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | 104 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } |
| @@ -140,6 +144,7 @@ static struct clk_lookup lookups[] = { | |||
| 140 | .clk = &mstp_clks[MSTP110], | 144 | .clk = &mstp_clks[MSTP110], |
| 141 | }, | 145 | }, |
| 142 | CLKDEV_CON_ID("usb0", &mstp_clks[MSTP102]), | 146 | CLKDEV_CON_ID("usb0", &mstp_clks[MSTP102]), |
| 147 | CLKDEV_CON_ID("mmc0", &mstp_clks[MSTP220]), | ||
| 143 | }; | 148 | }; |
| 144 | 149 | ||
| 145 | int __init arch_clk_init(void) | 150 | int __init arch_clk_init(void) |
