Skip to content

Commit fb74064

Browse files
GTLin08kartben
authored andcommitted
soc: it51xxx/linker: Make h2ram_pool behind the CONFIG_ESPI_IT8XXX2 option
Apply the same CONFIG_ESPI_IT8XXX2 guard to the .h2ram_pool section in the IT51XXX linker script, since the eSPI driver is compatible with IT8XXX2. This keeps linker behavior consistent and avoids unused memory allocation on non-eSPI platforms. Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
1 parent 74c57ce commit fb74064

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/ite/ec/it51xxx/linker.ld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ SECTIONS
377377

378378
__data_region_end = .;
379379

380+
#ifdef CONFIG_ESPI_IT8XXX2
380381
SECTION_DATA_PROLOGUE(.h2ram_pool,(NOLOAD),)
381382
{
382383
/*
@@ -389,6 +390,7 @@ SECTIONS
389390
_h2ram_pool_end = .;
390391
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
391392
_h2ram_pool_size = ABSOLUTE(_h2ram_pool_end - _h2ram_pool_start);
393+
#endif
392394

393395
__kernel_ram_end = .;
394396
__kernel_ram_size = __kernel_ram_end - __kernel_ram_start;

0 commit comments

Comments
 (0)