summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8183/include/soc/emi.h
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2019-10-03 08:49:23 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-10-18 12:21:56 +0000
commit4d4ccced31f87fd98f1b0783438dbc5480b355f5 (patch)
tree2144e037b45d9846c8d8261bf8b78ac38b380fe3 /src/soc/mediatek/mt8183/include/soc/emi.h
parentcea735cf127e090fbb5fa588bd5d7bd3c959e49f (diff)
downloadcoreboot-4d4ccced31f87fd98f1b0783438dbc5480b355f5.tar.gz
coreboot-4d4ccced31f87fd98f1b0783438dbc5480b355f5.tar.bz2
coreboot-4d4ccced31f87fd98f1b0783438dbc5480b355f5.zip
soc/mediatek/mt8183: Pass impedance data as a function argument
To make data flow more explicit, global variable 'impedance' is replaced with a local variable, which is passed as a function argument. BUG=none BRANCH=kukui TEST=Krane boots correctly Change-Id: I0f6dacc33fda013a3476a10d9899821b7297e770 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35766 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8183/include/soc/emi.h')
-rw-r--r--src/soc/mediatek/mt8183/include/soc/emi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8183/include/soc/emi.h b/src/soc/mediatek/mt8183/include/soc/emi.h
index 1a364fb7a6ac..1b894803bd8a 100644
--- a/src/soc/mediatek/mt8183/include/soc/emi.h
+++ b/src/soc/mediatek/mt8183/include/soc/emi.h
@@ -82,6 +82,10 @@ enum {
LP4X_DDRFREQ_MAX,
};
+struct dram_impedance {
+ u32 data[ODT_MAX][4];
+};
+
extern const u8 phy_mapping[CHANNEL_MAX][16];
int complex_mem_test(u8 *start, unsigned int len);