1
0
Fork 0
forked from len0rd/rockbox

imx233: rewrite ocotp using new register headers

Change-Id: I3c622119a1e296ec6b3f35f27e81b5118ab7f6cc
This commit is contained in:
Amaury Pouly 2013-06-16 16:46:12 +02:00
parent d815cf3c79
commit 6f0eaf4827
3 changed files with 22 additions and 43 deletions

View file

@ -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;