mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
ichspi: inform the user about the consequences of the security override strap
Ibex Peak SPI Programming Guide: The PCH has a mechanism to set up to 5 address ranges from HOST access. These are defined in PR0, PR1, PR2, PR3 and PR4 in the PCH EDS. These address ranges are NOT unlocked by assertion of Flash descriptor Override. Also, the datasheets mention the bit in their description of FRAP but not PR[N]. Corresponding to flashrom svn r1449. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
parent
d196e7c138
commit
e3185c0599
6
ichspi.c
6
ichspi.c
@ -1325,6 +1325,12 @@ int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb,
|
|||||||
}
|
}
|
||||||
if (tmp2 & HSFS_FDV)
|
if (tmp2 & HSFS_FDV)
|
||||||
ichspi_desc = 1;
|
ichspi_desc = 1;
|
||||||
|
if (!(tmp2 & HSFS_FDOPSS) && ichspi_desc)
|
||||||
|
msg_pinfo("The Flash Descriptor Security Override "
|
||||||
|
"Strap-Pin is set. Restrictions implied\n"
|
||||||
|
"by the FRAP and FREG registers are NOT in "
|
||||||
|
"effect. Please note that Protected\n"
|
||||||
|
"Range (PR) restrictions still apply.\n");
|
||||||
|
|
||||||
tmp2 = mmio_readw(ich_spibar + ICH9_REG_HSFC);
|
tmp2 = mmio_readw(ich_spibar + ICH9_REG_HSFC);
|
||||||
msg_pdbg("0x06: 0x%04x (HSFC)\n", tmp2);
|
msg_pdbg("0x06: 0x%04x (HSFC)\n", tmp2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user