* 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
| 1409 | * 7:0 Reserved |
| 1410 | */ |
| 1411 | static 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 | |
| 1427 | static void lock_descriptor(const char *filename, char *image, int size) |
| 1428 | { |
no outgoing calls
no test coverage detected