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

Function get_gpr0_offset

util/ifdtool/ifdtool.c:1651–1681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1649}
1650
1651static uint32_t get_gpr0_offset(void)
1652{
1653 /* Offset expressed as number of 32-bit fields from FPSBA */
1654 uint32_t gpr0_offset = 0xffffffff;
1655
1656 switch (platform) {
1657 case PLATFORM_CNL:
1658 gpr0_offset = 0x10;
1659 break;
1660 case PLATFORM_JSL:
1661 gpr0_offset = 0x12;
1662 break;
1663 case PLATFORM_TGL:
1664 case PLATFORM_ADL:
1665 gpr0_offset = 0x15;
1666 break;
1667 case PLATFORM_MTL:
1668 gpr0_offset = 0x40;
1669 break;
1670 case PLATFORM_PTL:
1671 gpr0_offset = 0x76;
1672 break;
1673 case PLATFORM_NVL:
1674 gpr0_offset = 0x3C;
1675 break;
1676 default:
1677 break;
1678 }
1679
1680 return gpr0_offset;
1681}
1682
1683static void disable_gpr0(const char *filename, char *image, int size)
1684{

Callers 3

disable_gpr0Function · 0.85
enable_gpr0Function · 0.85
is_gpr0_protectedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected