summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 16:46:12 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 16:58:00 +0200
commit6f0eaf482714d4a17a6d68abdb83121bbf78f501 (patch)
tree039ee4039619bfb1cd1f40d0123a13e21832d9a8 /firmware/usbstack
parentd815cf3c79321eb5db66cd18a77e3713943560a8 (diff)
downloadrockbox-6f0eaf482714d4a17a6d68abdb83121bbf78f501.tar.gz
rockbox-6f0eaf482714d4a17a6d68abdb83121bbf78f501.tar.bz2
rockbox-6f0eaf482714d4a17a6d68abdb83121bbf78f501.zip
imx233: rewrite ocotp using new register headers
Change-Id: I3c622119a1e296ec6b3f35f27e81b5118ab7f6cc
Diffstat (limited to 'firmware/usbstack')
-rw-r--r--firmware/usbstack/usb_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c
index 2a3cc1c525..dbc9367dfb 100644
--- a/firmware/usbstack/usb_core.c
+++ b/firmware/usbstack/usb_core.c
@@ -338,7 +338,7 @@ static void set_serial_descriptor(void)
{
short* p = &usb_string_iSerial.wString[1];
for(int i = 0; i < IMX233_NUM_OCOTP_OPS; i++) {
- uint32_t ops = imx233_ocotp_read(&HW_OCOTP_OPSx(i));
+ uint32_t ops = imx233_ocotp_read(&HW_OCOTP_OPSn(i));
for(int j = 0; j < 8; j++) {
*p++ = hex[(ops >> 28) & 0xF];
ops <<= 4;