diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h b/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h index 12210dfbaa..392de9d1f0 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/usb-target.h | |||
@@ -1,42 +1,2 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 by Maurus Cuelenaere | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef __USB_TARGET_H | ||
23 | #define __USB_TARGET_H | ||
24 | |||
25 | #include "config.h" | ||
26 | |||
27 | #define GPIO_UDC_DETE (32 * 3 + 28) /* A18 = ADP_CHK */ | ||
28 | #define IRQ_GPIO_UDC_DETE (IRQ_GPIO_0 + GPIO_UDC_DETE) | ||
29 | #define USB_GPIO_IRQ GPIO124 | ||
30 | |||
31 | #define USB_INIT_GPIO() \ | ||
32 | { \ | ||
33 | REG_GPIO_PXPES(3) = 0x10000000; \ | ||
34 | __gpio_as_irq_rise_edge(GPIO_UDC_DETE); \ | ||
35 | } | ||
36 | |||
37 | #define USB_DRV_CONNECTED() (__gpio_get_pin(GPIO_UDC_DETE) == 1) | ||
38 | |||
39 | /* Connect by events, not by tick polling */ | 1 | /* Connect by events, not by tick polling */ |
40 | #define USB_STATUS_BY_EVENT | 2 | #define USB_STATUS_BY_EVENT |
41 | |||
42 | #endif | ||