mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Clip+: enable sound on "as3514" (as3543 in fact)
as3525 comes with a as3517, as3525v2 with a as3543, rename specific registers accordingly Existing problems: FM (line out) doesn't work, volume can't go below a certain point git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25260 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0efbe23fe0
commit
7042c96b4a
3 changed files with 28 additions and 5 deletions
|
|
@ -122,7 +122,7 @@ void usb_drv_init(void)
|
|||
endpoints[i].busy = false;
|
||||
|
||||
ascodec_write(AS3514_CVDD_DCDC3, ascodec_read(AS3514_CVDD_DCDC3) | 1<<2);
|
||||
ascodec_write(AS3514_USB_UTIL, ascodec_read(AS3514_USB_UTIL) & ~(1<<4));
|
||||
ascodec_write(AS3517_USB_UTIL, ascodec_read(AS3517_USB_UTIL) & ~(1<<4));
|
||||
|
||||
/* PHY part */
|
||||
CGU_USB = 1<<5 /* enable */
|
||||
|
|
@ -137,7 +137,7 @@ void usb_drv_init(void)
|
|||
USB_DEV_CTRL |= 0x400; /* soft disconnect */
|
||||
|
||||
/* UVDD */
|
||||
ascodec_write(AS3514_USB_UTIL, ascodec_read(AS3514_USB_UTIL) | (1<<4));
|
||||
ascodec_write(AS3517_USB_UTIL, ascodec_read(AS3517_USB_UTIL) | (1<<4));
|
||||
sleep(10); //msleep(100)
|
||||
|
||||
USB_GPIO_CSR = 0x6180000;
|
||||
|
|
@ -199,7 +199,7 @@ void usb_drv_exit(void)
|
|||
VIC_INT_EN_CLEAR = INTERRUPT_USB;
|
||||
CGU_USB &= ~(1<<5);
|
||||
CGU_PERI &= ~CGU_USB_CLOCK_ENABLE;
|
||||
ascodec_write(AS3514_USB_UTIL, ascodec_read(AS3514_USB_UTIL) & ~(1<<4));
|
||||
ascodec_write(AS3517_USB_UTIL, ascodec_read(AS3517_USB_UTIL) & ~(1<<4));
|
||||
}
|
||||
|
||||
int usb_drv_port_speed(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue