1
0
Fork 0
forked from len0rd/rockbox

CCU_BASE+0x20 is specific to AMSv2 -> move to as3525v2.h

Rename to simply 'CCU_USB'

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27518 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-07-22 13:07:56 +00:00
parent 2e60587874
commit 7d9cc0e2ce
3 changed files with 4 additions and 3 deletions

View file

@ -109,7 +109,6 @@
#define CCU_VERS (*(volatile unsigned long *)(CCU_BASE + 0x14))
#define CCU_SPARE1 (*(volatile unsigned long *)(CCU_BASE + 0x18))
#define CCU_SPARE2 (*(volatile unsigned long *)(CCU_BASE + 0x1C))
#define CCU_USB_THINGY (*(volatile unsigned long *)(CCU_BASE + 0x20))
/* DBOP */
#define DBOP_TIMPOL_01 (*(volatile unsigned long *)(DBOP_BASE + 0x00))

View file

@ -40,4 +40,6 @@
#define USB_NUM_ENDPOINTS 6
#define CCU_USB (*(volatile unsigned long *)(CCU_BASE + 0x20))
#endif /* __AS3525V2_H__ */

View file

@ -156,9 +156,9 @@ static void as3525v2_connect(void)
GUSBCFG |= GUSBCFG_force_device_mode;
usb_delay();
/* 11) Do something that is probably CCU related but undocumented*/
CCU_USB_THINGY &= ~0x1000;
CCU_USB &= ~0x1000;
usb_delay();
CCU_USB_THINGY &= ~0x300000;
CCU_USB &= ~0x300000;
usb_delay();
/* 12) reset usb core parameters (dev addr, speed, ...) */
DCFG = 0;