k2_fw_usb_api: fix typo in usb reg address
authorOleksij Rempel <linux@rempel-privat.de>
Fri, 5 Jul 2013 19:33:31 +0000 (21:33 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sun, 7 Jul 2013 13:48:40 +0000 (15:48 +0200)
we was writing to wrond register.
0x100ae = ep3
0x100af = ep4

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c

index 8c1ac84bd967404eea9b6c7968cea1da138ebcc1..b549108c145d496be4808beff89b7031fd5a9012 100755 (executable)
@@ -354,7 +354,7 @@ void _fw_usb_reset_fifo(void)
     volatile uint32_t   *reg_data;
 
     HAL_BYTE_REG_WRITE(0x100ae, (HAL_BYTE_REG_READ(0x100ae)|0x10));
-    HAL_BYTE_REG_WRITE(0x100ae, (HAL_BYTE_REG_READ(0x100af)|0x10));
+    HAL_BYTE_REG_WRITE(0x100af, (HAL_BYTE_REG_READ(0x100af)|0x10));
 
     // disable ep3 int enable, so that resume back won't send wdt magic pattern out!!!
     mUSB_STATUS_IN_INT_DISABLE();