From 4b54302b0713be2995a33cfa30d1615fc206f1eb Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 20 Dec 2006 15:28:32 +0000 Subject: Combine USB code for all PortalPlayer targets since they most likely all use the same USB hardware. Add register defines for the USB hardware addresses, based off the Freescale i.MX31 datasheet. Use usb_init() from the iPod code, but modified to use the new register defines rather than oul/inl on the hardware addresses. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11823 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/pp5020.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/export/pp5020.h') diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h index 37d8882519..cbae083913 100644 --- a/firmware/export/pp5020.h +++ b/firmware/export/pp5020.h @@ -126,6 +126,11 @@ #define DEV_EN (*(volatile unsigned long *)(0x6000600c)) #define DEV_SYSTEM 0x4 +#define DEV_USB 0x400000 + +#define DEV_INIT (*(volatile unsigned long *)(0x70000020)) + +#define INIT_USB 0x80000000 #define TIMER1_CFG (*(volatile unsigned long *)(0x60005000)) #define TIMER1_VAL (*(volatile unsigned long *)(0x60005004)) @@ -158,9 +163,6 @@ #define SER1_MASK (1 << (SER1_IRQ-32)) #define I2C_MASK (1 << (I2C_IRQ-32)) -#define USB2D_IDENT (*(volatile unsigned long*)(0xc5000000)) -#define USB_STATUS (*(volatile unsigned long*)(0xc50001a4)) - #define IISCONFIG (*(volatile unsigned long*)(0x70002800)) #define IISFIFO_CFG (*(volatile unsigned long*)(0x7000280c)) -- cgit v1.2.3