diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-11-01 12:18:48 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-09 02:40:00 -0500 |
commit | 16b259203c513ed28bd31cc9a981e0d3ad517943 (patch) | |
tree | d29600ee92f96a8f9bcf9e3d91e001ea8e09015c /arch/sh/boards | |
parent | a7bcf21e60c73cb7f7c13fad928967d7e47c3cac (diff) |
sh: migrate SH_CLK_MD to mode pin API.
This kills off the hardcoded SH_CLK_MD introduced by the SH-2 boards and
converts over to the mode pin API.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-se/7206/setup.c | 6 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/board-se7619.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7206/setup.c b/arch/sh/boards/mach-se/7206/setup.c index 7f4871c71a0..33039e0dc56 100644 --- a/arch/sh/boards/mach-se/7206/setup.c +++ b/arch/sh/boards/mach-se/7206/setup.c | |||
@@ -79,6 +79,11 @@ static int __init se7206_devices_setup(void) | |||
79 | } | 79 | } |
80 | __initcall(se7206_devices_setup); | 80 | __initcall(se7206_devices_setup); |
81 | 81 | ||
82 | static int se7206_mode_pins(void) | ||
83 | { | ||
84 | return MODE_PIN1 | MODE_PIN2; | ||
85 | } | ||
86 | |||
82 | /* | 87 | /* |
83 | * The Machine Vector | 88 | * The Machine Vector |
84 | */ | 89 | */ |
@@ -87,4 +92,5 @@ static struct sh_machine_vector mv_se __initmv = { | |||
87 | .mv_name = "SolutionEngine", | 92 | .mv_name = "SolutionEngine", |
88 | .mv_nr_irqs = 256, | 93 | .mv_nr_irqs = 256, |
89 | .mv_init_irq = init_se7206_IRQ, | 94 | .mv_init_irq = init_se7206_IRQ, |
95 | .mv_mode_pins = se7206_mode_pins, | ||
90 | }; | 96 | }; |
diff --git a/arch/sh/boards/mach-se/board-se7619.c b/arch/sh/boards/mach-se/board-se7619.c index 1d0ef7faa10..82b6d4a5dc0 100644 --- a/arch/sh/boards/mach-se/board-se7619.c +++ b/arch/sh/boards/mach-se/board-se7619.c | |||
@@ -11,6 +11,11 @@ | |||
11 | #include <asm/io.h> | 11 | #include <asm/io.h> |
12 | #include <asm/machvec.h> | 12 | #include <asm/machvec.h> |
13 | 13 | ||
14 | static int se7619_mode_pins(void) | ||
15 | { | ||
16 | return MODE_PIN2 | MODE_PIN0; | ||
17 | } | ||
18 | |||
14 | /* | 19 | /* |
15 | * The Machine Vector | 20 | * The Machine Vector |
16 | */ | 21 | */ |
@@ -18,4 +23,5 @@ | |||
18 | static struct sh_machine_vector mv_se __initmv = { | 23 | static struct sh_machine_vector mv_se __initmv = { |
19 | .mv_name = "SolutionEngine", | 24 | .mv_name = "SolutionEngine", |
20 | .mv_nr_irqs = 108, | 25 | .mv_nr_irqs = 108, |
26 | .mv_mode_pins = se7619_mode_pins, | ||
21 | }; | 27 | }; |