|
@@ -6,49 +6,6 @@
|
|
|
*/
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
-/*
|
|
|
- * Platform specific compile time options
|
|
|
- */
|
|
|
-#if defined(CONFIG_BLACKFIN)
|
|
|
-
|
|
|
-#include <linux/io.h>
|
|
|
-#define USE_32BIT 0
|
|
|
-#define MAX_ROOT_PORTS 2
|
|
|
-#define USE_PLATFORM_DELAY 0
|
|
|
-#define USE_NDELAY 1
|
|
|
-
|
|
|
-#define DUMMY_DELAY_ACCESS \
|
|
|
- do { \
|
|
|
- bfin_read16(ASYNC_BANK0_BASE); \
|
|
|
- bfin_read16(ASYNC_BANK0_BASE); \
|
|
|
- bfin_read16(ASYNC_BANK0_BASE); \
|
|
|
- } while (0)
|
|
|
-
|
|
|
-#undef insw
|
|
|
-#undef outsw
|
|
|
-
|
|
|
-#define insw delayed_insw
|
|
|
-#define outsw delayed_outsw
|
|
|
-
|
|
|
-static inline void delayed_outsw(unsigned int addr, void *buf, int len)
|
|
|
-{
|
|
|
- unsigned short *bp = (unsigned short *)buf;
|
|
|
- while (len--) {
|
|
|
- DUMMY_DELAY_ACCESS;
|
|
|
- outw(*bp++, addr);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static inline void delayed_insw(unsigned int addr, void *buf, int len)
|
|
|
-{
|
|
|
- unsigned short *bp = (unsigned short *)buf;
|
|
|
- while (len--) {
|
|
|
- DUMMY_DELAY_ACCESS;
|
|
|
- *bp++ = inw(addr);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-#else
|
|
|
|
|
|
#define MAX_ROOT_PORTS 2
|
|
|
|
|
@@ -60,9 +17,6 @@ static inline void delayed_insw(unsigned int addr, void *buf, int len)
|
|
|
|
|
|
#define DUMMY_DELAY_ACCESS do {} while (0)
|
|
|
|
|
|
-#endif
|
|
|
-
|
|
|
-
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|
|
|
|
#define USB_RESET_WIDTH 50
|