From fa8128947880ca3a7a7c749040c3957cd9dd0e1a Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Mon, 9 Mar 2009 22:25:54 +0000 Subject: Move USB_DEVBSS_ATTR & USB_NUM_ENDPOINTS to SoC-specific header. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20270 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-ondavx747.h | 5 ----- firmware/export/config-ondavx767.h | 5 ----- firmware/export/jz4740.h | 4 ++++ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h index 1849064..ecc7994 100644 --- a/firmware/export/config-ondavx747.h +++ b/firmware/export/config-ondavx747.h @@ -179,10 +179,5 @@ #define USE_ROCKBOX_USB #define USB_VENDOR_ID 0x07C4 #define USB_PRODUCT_ID 0xA4A5 -#define USB_NUM_ENDPOINTS 3 -/* This needs to be 2048 byte aligned, but USB_QHARRAY_ATTR should take care - * of that */ -#define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(4))) -#define USB_DEVBSS_ATTR IBSS_ATTR #endif diff --git a/firmware/export/config-ondavx767.h b/firmware/export/config-ondavx767.h index a0500a7..76a4787 100644 --- a/firmware/export/config-ondavx767.h +++ b/firmware/export/config-ondavx767.h @@ -164,10 +164,5 @@ #define USE_ROCKBOX_USB #define USB_VENDOR_ID 0x07C4 #define USB_PRODUCT_ID 0xA4A5 -#define USB_NUM_ENDPOINTS 3 -/* This needs to be 2048 byte aligned, but USB_QHARRAY_ATTR should take care - * of that */ -#define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(4))) -#define USB_DEVBSS_ATTR IBSS_ATTR #endif diff --git a/firmware/export/jz4740.h b/firmware/export/jz4740.h index e4df112..cacdd1e 100644 --- a/firmware/export/jz4740.h +++ b/firmware/export/jz4740.h @@ -5149,4 +5149,8 @@ struct Ration2m #endif /* _IPU_H_ */ +/* Rockbox USB defines */ +#define USB_NUM_ENDPOINTS 3 +#define USB_DEVBSS_ATTR IBSS_ATTR + #endif /* __JZ4740_H__ */ -- cgit v1.1