Skip to content

Commit 2cc3716

Browse files
committed
eep9880: RAW OTP reading support
Add support for RAW OTP contents loading if it is requested by the caller. It assumes complete contents ignoring, including decompression (and since known templates) avoidance. The change was runtime tested with QCA9880 based card. Refs: gh-6
1 parent 4261b50 commit 2cc3716

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eep_9880.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ static bool eep_9880_load_otp(struct atheepmgr *aem, bool raw)
133133
}
134134
}
135135

136+
if (raw) { /* Earlier exit on RAW contents loading */
137+
aem->eep_len = QCA9880_OTP_SIZE / sizeof(uint16_t);
138+
goto exit;
139+
}
140+
136141
/**
137142
* Check OTP magic. Do not have macro to work with big-endian values,
138143
* so check byte by byte.
@@ -584,6 +589,7 @@ static void eep_9880_dump_power_info(struct atheepmgr *aem)
584589
const struct eepmap eepmap_9880 = {
585590
.name = "9880",
586591
.desc = "EEPROM map for earlier .11ac chips (QCA9880/QCA9882/QCA9892/etc.)",
592+
.features = EEPMAP_F_RAW_OTP,
587593
.chip_regs = {
588594
.srev = 0x40ec,
589595
},

0 commit comments

Comments
 (0)