From 616c98b38f6ddac0ac3dde8ec0fa248f835717e2 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 19 Jan 2009 13:41:25 +0000 Subject: USB detection changes. c200/e200: Consider USB to be powered when charger is plugged but detect USB connection by bus reset. When received, disconnect and restart the driver fully enabled. imx31: Fix hack used to make initial connect succeeded-- set PHY type before initial reset. General: Move some target code out of usb-drv-arc.c and implement it in respective usb sources and CPU headers so things stay clean. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19797 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/imx31l.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/export/imx31l.h') diff --git a/firmware/export/imx31l.h b/firmware/export/imx31l.h index b572c788a9..b55a56b105 100755 --- a/firmware/export/imx31l.h +++ b/firmware/export/imx31l.h @@ -36,7 +36,11 @@ #define FRAME_SIZE (240*320*2) #define DEVBSS_ATTR __attribute__((section(".devbss"),nocommon)) -#define QHARRAY_ATTR __attribute__((section(".qharray"),nocommon)) +/* USBOTG */ +#define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(2048))) +#define USB_NUM_ENDPOINTS 8 +#define USB_DEVBSS_ATTR DEVBSS_ATTR +#define USB_BASE OTG_BASE_ADDR /* * AIPS 1 @@ -1580,6 +1584,4 @@ #define UART_FIFO_CTRL 0x881 #define TIMEOUT 1000 -#define USB_BASE OTG_BASE_ADDR - #endif /* __IMX31L_H__ */ -- cgit v1.2.3