sync hh.org
[hh.org.git] / arch / arm / mach-pxa / himalaya / himalaya_usb.c
blob152e5c2d376cef60075c374c107da893757802c2
1 /*
2 * USB initialisation for Himalaya, the HTC PocketPC.
4 * License: GPL
6 * Author: Luke Kenneth Casson Leighton, Copyright(C) 2004
8 * Copyright(C) 2004, Luke Kenneth Casson Leighton.
10 * History:
12 * 2004-02-19 Luke Kenneth Casson Leighton created.
15 #include <linux/module.h>
16 #include <linux/init.h>
17 #include <linux/kernel.h>
18 #include <linux/tty.h>
19 #include <linux/sched.h>
20 #include <linux/delay.h>
21 #include <linux/device.h>
22 #include <linux/pm.h>
24 #include <asm/hardware.h>
25 #include <asm/setup.h>
27 #include <asm/mach/arch.h>
28 #include <asm/mach-types.h>
29 #include <asm/arch/ipaq.h>
30 #include <asm/arch/himalaya-gpio.h>
32 #include <linux/soc/asic3_base.h>
34 extern struct platform_device himalaya_asic3;
36 static void himalaya_init_usb (void)
39 * thought to be a power-up sequence for the output.
40 GPSR(GPIO_NR_HIMALAYA_UART_POWER) = GPIO_bit(GPIO_NR_HIMALAYA_UART_POWER);
41 asic3_set_gpio_dir_b(&himalaya_asic3.dev, 2, 2);
42 asic3_set_gpio_out_b(&himalaya_asic3.dev, 2, 2);
47 int __init
48 himalaya_usb_init (void)
50 int rc = 0;
52 if (! machine_is_himalaya() )
53 return -ENODEV;
55 himalaya_init_usb();
57 return rc;
60 void __exit
61 himalaya_usb_exit (void)
63 /* power down usb? */
66 module_init (himalaya_usb_init);
67 module_exit (himalaya_usb_exit);