soc: it8xxx2/linker: Make h2ram_pool behind the CONFIG_ESPI_IT8XXX2 option

The .h2ram_pool linker section was previously always included, even on
platforms that do not enable eSPI. This caused unnecessary memory
reservation in the RAMABLE_REGION for non-eSPI configurations.

Add a CONFIG_ESPI_IT8XXX2 guard around the .h2ram_pool section definition
so that it is only included when eSPI support is enabled.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
1 file changed