diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-09-16 11:34:34 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-17 15:07:00 +0900 |
commit | 064a16dc41be879d12bd5de5d2f9d38d890e0ee7 (patch) | |
tree | 09b9e21f909d0b99f6086bdc03dbc646e88811d9 /arch/sh | |
parent | 480c646c32f368dfa2a076f7a120a7795e786e62 (diff) | |
download | linux-3.10-064a16dc41be879d12bd5de5d2f9d38d890e0ee7.tar.gz linux-3.10-064a16dc41be879d12bd5de5d2f9d38d890e0ee7.tar.bz2 linux-3.10-064a16dc41be879d12bd5de5d2f9d38d890e0ee7.zip |
sh: mach-ecovec24: Add user debug switch support
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index bbe601d4209..96bc1698310 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c @@ -638,6 +638,16 @@ static int __init arch_setup(void) gpio_request(GPIO_FN_KEYOUT0, NULL); gpio_request(GPIO_FN_KEYIN0, NULL); + /* enable user debug switch */ + gpio_request(GPIO_PTR0, NULL); + gpio_request(GPIO_PTR4, NULL); + gpio_request(GPIO_PTR5, NULL); + gpio_request(GPIO_PTR6, NULL); + gpio_direction_input(GPIO_PTR0); + gpio_direction_input(GPIO_PTR4); + gpio_direction_input(GPIO_PTR5); + gpio_direction_input(GPIO_PTR6); + /* enable I2C device */ i2c_register_board_info(1, i2c1_devices, ARRAY_SIZE(i2c1_devices)); |