diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/h1940-bluetooth.c')
-rw-r--r-- | arch/arm/mach-s3c2410/h1940-bluetooth.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/arch/arm/mach-s3c2410/h1940-bluetooth.c b/arch/arm/mach-s3c2410/h1940-bluetooth.c index 5a6bc56f186b..5aabf117cbb0 100644 --- a/arch/arm/mach-s3c2410/h1940-bluetooth.c +++ b/arch/arm/mach-s3c2410/h1940-bluetooth.c | |||
@@ -16,6 +16,8 @@ | |||
16 | #include <linux/string.h> | 16 | #include <linux/string.h> |
17 | #include <linux/ctype.h> | 17 | #include <linux/ctype.h> |
18 | #include <linux/leds.h> | 18 | #include <linux/leds.h> |
19 | #include <linux/gpio.h> | ||
20 | |||
19 | #include <mach/regs-gpio.h> | 21 | #include <mach/regs-gpio.h> |
20 | #include <mach/hardware.h> | 22 | #include <mach/hardware.h> |
21 | #include <mach/h1940-latch.h> | 23 | #include <mach/h1940-latch.h> |
@@ -41,9 +43,9 @@ static void h1940bt_enable(int on) | |||
41 | h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER); | 43 | h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER); |
42 | /* Reset the chip */ | 44 | /* Reset the chip */ |
43 | mdelay(10); | 45 | mdelay(10); |
44 | s3c2410_gpio_setpin(S3C2410_GPH1, 1); | 46 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); |
45 | mdelay(10); | 47 | mdelay(10); |
46 | s3c2410_gpio_setpin(S3C2410_GPH1, 0); | 48 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); |
47 | 49 | ||
48 | state = 1; | 50 | state = 1; |
49 | } | 51 | } |
@@ -52,9 +54,9 @@ static void h1940bt_enable(int on) | |||
52 | led_trigger_event(bt_led_trigger, 0); | 54 | led_trigger_event(bt_led_trigger, 0); |
53 | #endif | 55 | #endif |
54 | 56 | ||
55 | s3c2410_gpio_setpin(S3C2410_GPH1, 1); | 57 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); |
56 | mdelay(10); | 58 | mdelay(10); |
57 | s3c2410_gpio_setpin(S3C2410_GPH1, 0); | 59 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); |
58 | mdelay(10); | 60 | mdelay(10); |
59 | h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0); | 61 | h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0); |
60 | 62 | ||
@@ -87,14 +89,14 @@ static DEVICE_ATTR(enable, 0644, | |||
87 | static int __init h1940bt_probe(struct platform_device *pdev) | 89 | static int __init h1940bt_probe(struct platform_device *pdev) |
88 | { | 90 | { |
89 | /* Configures BT serial port GPIOs */ | 91 | /* Configures BT serial port GPIOs */ |
90 | s3c2410_gpio_cfgpin(S3C2410_GPH0, S3C2410_GPH0_nCTS0); | 92 | s3c2410_gpio_cfgpin(S3C2410_GPH(0), S3C2410_GPH0_nCTS0); |
91 | s3c2410_gpio_pullup(S3C2410_GPH0, 1); | 93 | s3c2410_gpio_pullup(S3C2410_GPH(0), 1); |
92 | s3c2410_gpio_cfgpin(S3C2410_GPH1, S3C2410_GPH1_OUTP); | 94 | s3c2410_gpio_cfgpin(S3C2410_GPH(1), S3C2410_GPIO_OUTPUT); |
93 | s3c2410_gpio_pullup(S3C2410_GPH1, 1); | 95 | s3c2410_gpio_pullup(S3C2410_GPH(1), 1); |
94 | s3c2410_gpio_cfgpin(S3C2410_GPH2, S3C2410_GPH2_TXD0); | 96 | s3c2410_gpio_cfgpin(S3C2410_GPH(2), S3C2410_GPH2_TXD0); |
95 | s3c2410_gpio_pullup(S3C2410_GPH2, 1); | 97 | s3c2410_gpio_pullup(S3C2410_GPH(2), 1); |
96 | s3c2410_gpio_cfgpin(S3C2410_GPH3, S3C2410_GPH3_RXD0); | 98 | s3c2410_gpio_cfgpin(S3C2410_GPH(3), S3C2410_GPH3_RXD0); |
97 | s3c2410_gpio_pullup(S3C2410_GPH3, 1); | 99 | s3c2410_gpio_pullup(S3C2410_GPH(3), 1); |
98 | 100 | ||
99 | #ifdef CONFIG_LEDS_H1940 | 101 | #ifdef CONFIG_LEDS_H1940 |
100 | led_trigger_register_simple("h1940-bluetooth", &bt_led_trigger); | 102 | led_trigger_register_simple("h1940-bluetooth", &bt_led_trigger); |