Subrata Banik has posted comments on this change. ( https://review.coreboot.org/18669 )
Change subject: soc/intel/common/block: Add Intel common PCR support ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/#/c/18669/4/src/soc/intel/common/block/pcr/pcr.c File src/soc/intel/common/block/pcr/pcr.c:
PS4, Line 117: int pcr_write32(uint8_t pid, uint16_t offset, uint32_t indata) : { : return pch_pcr_write(pid, offset, sizeof(indata), indata); : } : : int pcr_write16(uint8_t pid, uint16_t offset, uint16_t indata) : { : return pch_pcr_write(pid, offset, sizeof(indata), indata); : } : : int pcr_write8(uint8_t pid, uint16_t offset, uint8_t indata) : { : return pch_pcr_write(pid, offset, sizeof(indata), indata); : } : : /* : * Write PCR register. (This is internal function) : * It programs PCR register and size in 1/2/4 bytes. : * The offset should not exceed 0xFFFF and must be aligned with size : * : * u8 defines as 8 bit Port ID that will be used when sending : * transaction to sideband. : */ : static int pcr_and_then_or(uint8_t pid, uint16_t offset, size_t size, : uint32_t anddata, uint32_t ordata) : { : uint32_t data32; : : if (pch_pcr_read(pid, offset, size, &data32) != 0) : return -1; : : data32 &= anddata; : data32 |= ordata; : : return pch_pcr_write(pid, offset, size, data32); : } : : int pcr_andthenor32(uint8_t pid, uint16_t offset, uint32_t anddata, : uint32_t ordata) : { : return pcr_and_then_or(pid, offset, sizeof(anddata), anddata, ordata); : } : : int pcr_andthenor16(uint8_t pid, uint16_t offset, uint16_t anddata, : uint16_t ordata) : { : return pcr_and_then_or(pid, offset, sizeof(anddata), anddata, ordata); : } : : int pcr_andthenor8(uint8_t pid, uint16_t offset, uint8_t anddata, :
i'm in a process to fix this as well
Done