device/pci_ids: Add Panther Lake Intel Touch Controller PCI IDs
[coreboot2.git] / src / security / memory / memory.c
blobc4f3bdd68f5e0e6c1e07406343269f96d7bf5a10
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <security/intel/txt/txt.h>
4 #include <stdbool.h>
6 #include "memory.h"
8 /**
9 * To be called after DRAM init.
10 * Tells the caller if DRAM must be cleared as requested by the user,
11 * firmware or security framework.
13 bool security_clear_dram_request(void)
15 if (CONFIG(SECURITY_CLEAR_DRAM_ON_REGULAR_BOOT))
16 return true;
18 if (CONFIG(INTEL_TXT) && intel_txt_memory_has_secrets())
19 return true;
21 /* TODO: Add TEE environments here */
23 return false;