diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-09-16 07:34:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-09-17 02:07:00 -0400 |
commit | 064a16dc41be879d12bd5de5d2f9d38d890e0ee7 (patch) | |
tree | 09b9e21f909d0b99f6086bdc03dbc646e88811d9 /arch/sh | |
parent | 480c646c32f368dfa2a076f7a120a7795e786e62 (diff) |
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 bbe601d4209f..96bc1698310f 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) | |||
638 | gpio_request(GPIO_FN_KEYOUT0, NULL); | 638 | gpio_request(GPIO_FN_KEYOUT0, NULL); |
639 | gpio_request(GPIO_FN_KEYIN0, NULL); | 639 | gpio_request(GPIO_FN_KEYIN0, NULL); |
640 | 640 | ||
641 | /* enable user debug switch */ | ||
642 | gpio_request(GPIO_PTR0, NULL); | ||
643 | gpio_request(GPIO_PTR4, NULL); | ||
644 | gpio_request(GPIO_PTR5, NULL); | ||
645 | gpio_request(GPIO_PTR6, NULL); | ||
646 | gpio_direction_input(GPIO_PTR0); | ||
647 | gpio_direction_input(GPIO_PTR4); | ||
648 | gpio_direction_input(GPIO_PTR5); | ||
649 | gpio_direction_input(GPIO_PTR6); | ||
650 | |||
641 | /* enable I2C device */ | 651 | /* enable I2C device */ |
642 | i2c_register_board_info(1, i2c1_devices, | 652 | i2c_register_board_info(1, i2c1_devices, |
643 | ARRAY_SIZE(i2c1_devices)); | 653 | ARRAY_SIZE(i2c1_devices)); |