mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / src / soc / qualcomm / ipq806x / cbmem.c
blob8196416168151b21d3f259b16d195fa1cab39661
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <cbmem.h>
4 #include <soc/soc_services.h>
6 static int cbmem_backing_store_ready;
8 void ipq_cbmem_backing_store_ready(void)
10 cbmem_backing_store_ready = 1;
13 uintptr_t cbmem_top_chipset(void)
16 * In romstage, make sure that cbmem backing store is ready before
17 * returning the pointer to cbmem top. Otherwise, it could lead to
18 * issues with components that utilize cbmem in romstage
19 * (e.g. vboot_locator for loading ipq blobs before DRAM is
20 * initialized).
22 if (cbmem_backing_store_ready == 0)
23 return 0;
25 return (uintptr_t)_memlayout_cbmem_top;