diff options
author | Yoshii Takashi <takashi.yoshii.zj@renesas.com> | 2010-11-19 08:15:46 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-24 00:54:34 -0500 |
commit | 2d22d486601b2eaedd1c8dd5dc1c4602cab896ef (patch) | |
tree | 3059b1c4ccc01c5bbdef9a0b2e78032abf205707 /arch/arm/mach-shmobile/clock-sh73a0.c | |
parent | 3256c789882281b2eac5978c7d38f6f0bbd16ed6 (diff) |
ARM: mach-shmobile: ag5evm: scan keyboard support
This consists of platform device resources/data for the board, and
simple clvdev entry for MSTP bit for keysc module.
This support only 49 of 80 key-switches on the board.
Signed-off-by: Takashi YOSHII <takashi.yoshii.zj@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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c index f2390aefefe8..82c72512dc91 100644 --- a/arch/arm/mach-shmobile/clock-sh73a0.c +++ b/arch/arm/mach-shmobile/clock-sh73a0.c | |||
@@ -47,7 +47,7 @@ static struct clk *main_clks[] = { | |||
47 | 47 | ||
48 | enum { MSTP219, | 48 | enum { MSTP219, |
49 | MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, | 49 | MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, |
50 | MSTP331, MSTP329, | 50 | MSTP331, MSTP329, MSTP403, |
51 | MSTP_NR }; | 51 | MSTP_NR }; |
52 | 52 | ||
53 | #define MSTP(_parent, _reg, _bit, _flags) \ | 53 | #define MSTP(_parent, _reg, _bit, _flags) \ |
@@ -64,6 +64,7 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
64 | [MSTP200] = MSTP(&sub_clk, SMSTPCR2, 0, 0), /* SCIFA4 */ | 64 | [MSTP200] = MSTP(&sub_clk, SMSTPCR2, 0, 0), /* SCIFA4 */ |
65 | [MSTP331] = MSTP(&sub_clk, SMSTPCR3, 31, 0), /* SCIFA6 */ | 65 | [MSTP331] = MSTP(&sub_clk, SMSTPCR3, 31, 0), /* SCIFA6 */ |
66 | [MSTP329] = MSTP(&r_clk, SMSTPCR3, 29, 0), /* CMT10 */ | 66 | [MSTP329] = MSTP(&r_clk, SMSTPCR3, 29, 0), /* CMT10 */ |
67 | [MSTP403] = MSTP(&r_clk, SMSTPCR4, 0, 0), /* KEYSC0 */ | ||
67 | }; | 68 | }; |
68 | 69 | ||
69 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } | 70 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } |
@@ -80,6 +81,7 @@ static struct clk_lookup lookups[] = { | |||
80 | CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), /* SCIFA4 */ | 81 | CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[MSTP200]), /* SCIFA4 */ |
81 | CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP331]), /* SCIFA6 */ | 82 | CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP331]), /* SCIFA6 */ |
82 | CLKDEV_DEV_ID("sh_cmt.10", &mstp_clks[MSTP329]), /* CMT10 */ | 83 | CLKDEV_DEV_ID("sh_cmt.10", &mstp_clks[MSTP329]), /* CMT10 */ |
84 | CLKDEV_DEV_ID("sh_keysc.0", &mstp_clks[MSTP403]), /* KEYSC0 */ | ||
83 | }; | 85 | }; |
84 | 86 | ||
85 | void __init sh73a0_clock_init(void) | 87 | void __init sh73a0_clock_init(void) |