1 # ====================================================================
5 # MX37 USB OTG Device Mode support.
7 # ====================================================================
8 #####ECOSGPLCOPYRIGHTBEGIN####
9 ## -------------------------------------------
10 # This file is a part of Diagnosis Package based on eCos for Freescale i.MX
11 # Family microprocessor.
12 ## Copyright (C) 2008 Freescale Semiconductor, Inc.
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
37 ## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38 ## at http://sources.redhat.com/ecos/ecos-license/
39 ## -------------------------------------------
40 #####ECOSGPLCOPYRIGHTEND####
41 # ====================================================================
42 ######DESCRIPTIONBEGIN####
45 # Original data: fisherz
48 # Comment: Porting to MX51
50 #####DESCRIPTIONEND####
51 # ====================================================================
52 cdl_package CYGPKG_DEVS_USB_IMX_OTG {
53 display "Freescale i.MX51 or i.MX37 USB OTG Device Driver"
54 include_dir "cyg/io/usb"
56 implements CYGHWR_IO_USB_SLAVE
58 # Make sure that we are running on the right hardware.
59 requires CYGPKG_HAL_ARM
60 # requires CYGPKG_HAL_ARM_MX51
61 # requires CYGPKG_HAL_ARM_MX51_3STACK
62 requires CYGPKG_IO_USB
63 requires CYGPKG_IO_USB_SLAVE
67 The on-chip USB OTG core on the MX51 or MX37 works as a USB
68 device controller, facilitating the use of this processor
69 in USB peripherals. This package provides a suitable eCos
72 cdl_option CYGHWR_USB_DEVS_MX51_OTG {
73 display "i.MX51 USB OTG"
77 i.MX51 is the default OTG device for this package"
80 cdl_option CYGHWR_USB_DEVS_MX37_OTG {
81 display "i.MX37 USB OTG"
85 i.MX37 is not the default OTG device for this package"
88 cdl_option CYGHWR_MXC_USB_BUFFER_USE_IRAM {
89 display "Determine where the USB buffer is"
93 USB buffer is defaultly in the internal RAM for better performance"
96 cdl_option CYGHWR_IMX_USB_DOWNLOAD_SUPPORT {
97 display "USB Download for redboot is supported, i.MX OTG works in poll mode"
101 USB Download function is an add-value function for redboot, and USB OTG will work