summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 12:45:17 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 11:27:19 +0800
commit94c5ad2534248e562abf1b083cc308fc1b3cd1e1 (patch)
tree081f184828da9829a243298bced54f3d1b86888b /arch/x86/include/asm
parent540f0bae9bd0e19d00d11796a62a08f94d895189 (diff)
downloadu-boot-94c5ad2534248e562abf1b083cc308fc1b3cd1e1.tar.gz
u-boot-94c5ad2534248e562abf1b083cc308fc1b3cd1e1.tar.xz
u-boot-94c5ad2534248e562abf1b083cc308fc1b3cd1e1.zip
x86: apl: Allow reading hostbridge base addresses
Add a few functions to permit reading of various useful base addresses provided by the hostbridge. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/arch-apollolake/systemagent.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-apollolake/systemagent.h b/arch/x86/include/asm/arch-apollolake/systemagent.h
index 9e7bd62751..788a63d799 100644
--- a/arch/x86/include/asm/arch-apollolake/systemagent.h
+++ b/arch/x86/include/asm/arch-apollolake/systemagent.h
@@ -35,4 +35,35 @@
*/
void enable_bios_reset_cpl(void);
+/**
+ * sa_get_tolud_base() - Get the TOLUD base address
+ *
+ * This returns the Top Of Low Useable DRAM, marking the top of usable DRAM
+ * below 4GB
+ *
+ * @dev: hostbridge device
+ * @return TOLUD address
+ */
+ulong sa_get_tolud_base(struct udevice *dev);
+
+/**
+ * sa_get_gsm_base() - Get the GSM base address
+ *
+ * This returns the base of GTT Stolen Memory, marking the start of memory used
+ * for Graphics Translation Tables.
+ *
+ * @dev: hostbridge device
+ * @return GSM address
+ */
+ulong sa_get_gsm_base(struct udevice *dev);
+
+/**
+ * sa_get_tseg_base() - Get the TSEG base address
+ *
+ * This returns the top address of DRAM available below 4GB
+ *
+ * @return TSEG base
+ */
+ulong sa_get_tseg_base(struct udevice *dev);
+
#endif