MCPcopy Create free account
hub / github.com/coreboot/coreboot / platform_has_extended_regions

Function platform_has_extended_regions

util/ifdtool/ifdtool.c:1411–1425  ·  view source on GitHub ↗

* Platforms from CNL onwards support up to 16 flash regions, not 12. The * permissions for regions [15:12] are stored in extended region read/write * access fields in the FLMSTR registers. * * FLMSTR with extended regions: * 31:20 Region Write Access * 19:8 Region Read Access * 7:4 Extended Region Write Access * 3:0 Extended Region Read Access * * FLMSTR without extended reg

Source from the content-addressed store, hash-verified

1409 * 7:0 Reserved
1410 */
1411static bool platform_has_extended_regions(void)
1412{
1413 switch (platform) {
1414 case PLATFORM_CNL:
1415 case PLATFORM_JSL:
1416 case PLATFORM_TGL:
1417 case PLATFORM_ADL:
1418 case PLATFORM_MTL:
1419 case PLATFORM_PTL:
1420 case PLATFORM_NVL:
1421 return true;
1422 default:
1423 return false;
1424 }
1425}
1426
1427static void lock_descriptor(const char *filename, char *image, int size)
1428{

Callers 2

lock_descriptorFunction · 0.85
unlock_descriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected