summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-04-10 22:28:18 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-04-10 22:28:18 +0000
commit879c074656983784ba76d22c4e7663c42374194c (patch)
tree9588e1a074e9e178a6fd38b3efa9d12b51041334 /firmware/target/arm
parent10080b842067a53731b10951da6a0b1c33689e68 (diff)
downloadrockbox-879c074656983784ba76d22c4e7663c42374194c.tar.gz
rockbox-879c074656983784ba76d22c4e7663c42374194c.zip
Properly clear clear-on-write bits in the PP502x USB controller
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17066 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/usb-drv-pp502x.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/usb-drv-pp502x.c b/firmware/target/arm/usb-drv-pp502x.c
index 62addc164e..af7628f992 100644
--- a/firmware/target/arm/usb-drv-pp502x.c
+++ b/firmware/target/arm/usb-drv-pp502x.c
@@ -428,7 +428,7 @@ void usb_drv_int(void)
/* usb transaction interrupt */
if (status & USBSTS_INT) {
- REG_USBSTS |= USBSTS_INT;
+ REG_USBSTS = USBSTS_INT;
/* a control packet? */
if (REG_ENDPTSETUPSTAT & EPSETUP_STATUS_EP0) {
@@ -441,20 +441,20 @@ void usb_drv_int(void)
/* error interrupt */
if (status & USBSTS_ERR) {
- REG_USBSTS |= USBSTS_ERR;
+ REG_USBSTS = USBSTS_ERR;
logf("usb error int");
}
/* reset interrupt */
if (status & USBSTS_RESET) {
- REG_USBSTS |= USBSTS_RESET;
+ REG_USBSTS = USBSTS_RESET;
bus_reset();
usb_core_bus_reset(); /* tell mom */
}
/* port change */
if (status & USBSTS_PORT_CHANGE) {
- REG_USBSTS |= USBSTS_PORT_CHANGE;
+ REG_USBSTS = USBSTS_PORT_CHANGE;
}
}
@@ -688,7 +688,7 @@ static void control_received(void)
tmp[1] = qh_array[0].setup_buffer[1];
/* acknowledge packet recieved */
- REG_ENDPTSETUPSTAT |= EPSETUP_STATUS_EP0;
+ REG_ENDPTSETUPSTAT = EPSETUP_STATUS_EP0;
/* Stop pending control transfers */
for(i=0;i<2;i++) {
@@ -706,7 +706,7 @@ static void transfer_completed(void)
{
int ep;
unsigned int mask = REG_ENDPTCOMPLETE;
- REG_ENDPTCOMPLETE |= mask;
+ REG_ENDPTCOMPLETE = mask;
for (ep=0; ep<NUM_ENDPOINTS; ep++) {
int dir;