diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-06-15 06:02:37 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-15 06:02:37 -0400 |
commit | 5d0e945a249c729caa69b3b0c6f19ba002c433b5 (patch) | |
tree | 4760bff69094838d857503bba6a580d68f208138 /arch/sh | |
parent | 6daa79b3c113bf95793aee95fcfb4008e85614eb (diff) |
sh: urquell: Add system FPGA mode pin support.
Urquell has a system FPGA capable of reading the mode pin states from
software, wire this up in the machvec.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/board-urquell.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/boards/board-urquell.c b/arch/sh/boards/board-urquell.c index beb88c4da2c1..36b8bac9b124 100644 --- a/arch/sh/boards/board-urquell.c +++ b/arch/sh/boards/board-urquell.c | |||
@@ -2,6 +2,7 @@ | |||
2 | * Renesas Technology Corp. SH7786 Urquell Support. | 2 | * Renesas Technology Corp. SH7786 Urquell Support. |
3 | * | 3 | * |
4 | * Copyright (C) 2008 Kuninori Morimoto <morimoto.kuninori@renesas.com> | 4 | * Copyright (C) 2008 Kuninori Morimoto <morimoto.kuninori@renesas.com> |
5 | * Copyright (C) 2009 Paul Mundt | ||
5 | * | 6 | * |
6 | * Based on board-sh7785lcr.c | 7 | * Based on board-sh7785lcr.c |
7 | * Copyright (C) 2008 Yoshihiro Shimoda | 8 | * Copyright (C) 2008 Yoshihiro Shimoda |
@@ -178,6 +179,11 @@ static void __init urquell_init_irq(void) | |||
178 | plat_irq_setup_pins(IRQ_MODE_IRL3210_MASK); | 179 | plat_irq_setup_pins(IRQ_MODE_IRL3210_MASK); |
179 | } | 180 | } |
180 | 181 | ||
182 | static int urquell_mode_pins(void) | ||
183 | { | ||
184 | return __raw_readw(UBOARDREG(MDSWMR)); | ||
185 | } | ||
186 | |||
181 | /* Initialize the board */ | 187 | /* Initialize the board */ |
182 | static void __init urquell_setup(char **cmdline_p) | 188 | static void __init urquell_setup(char **cmdline_p) |
183 | { | 189 | { |
@@ -193,4 +199,5 @@ static struct sh_machine_vector mv_urquell __initmv = { | |||
193 | .mv_name = "Urquell", | 199 | .mv_name = "Urquell", |
194 | .mv_setup = urquell_setup, | 200 | .mv_setup = urquell_setup, |
195 | .mv_init_irq = urquell_init_irq, | 201 | .mv_init_irq = urquell_init_irq, |
202 | .mv_mode_pins = urquell_mode_pins, | ||
196 | }; | 203 | }; |