From 6f0eaf482714d4a17a6d68abdb83121bbf78f501 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 16 Jun 2013 16:46:12 +0200 Subject: imx233: rewrite ocotp using new register headers Change-Id: I3c622119a1e296ec6b3f35f27e81b5118ab7f6cc --- firmware/usbstack/usb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/usbstack/usb_core.c') 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; -- cgit v1.2.3