diff options
author | CK Hu <ck.hu@mediatek.com> | 2020-05-13 10:21:02 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2020-08-13 05:33:45 +0000 |
commit | ad700565efe2edfb1d4ca812e00e941d16a5b5ba (patch) | |
tree | 25968809fa807ca510387e0fc7b9a5e37b9af8f3 /src/soc/mediatek | |
parent | a396c0a7ee5081ca88acf451fd85ef5efb7bf3e7 (diff) |
soc/mediatek/mt8192: Add a placeholder for the EMI driver
Add minimal function to report SDRAM size.
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Change-Id: If74b6b52dd6e91d1ff40cf8460b6a03b2f3bb6f6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43961
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r-- | src/soc/mediatek/mt8192/emi.c | 10 | ||||
-rw-r--r-- | src/soc/mediatek/mt8192/include/soc/emi.h | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8192/emi.c b/src/soc/mediatek/mt8192/emi.c new file mode 100644 index 0000000000..7b1d3c2113 --- /dev/null +++ b/src/soc/mediatek/mt8192/emi.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <soc/emi.h> + +size_t sdram_size(void) +{ + size_t dram_size = 0x100000000; + + return dram_size; +} diff --git a/src/soc/mediatek/mt8192/include/soc/emi.h b/src/soc/mediatek/mt8192/include/soc/emi.h new file mode 100644 index 0000000000..0348573bd0 --- /dev/null +++ b/src/soc/mediatek/mt8192/include/soc/emi.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef SOC_MEDIATEK_MT8192_EMI_H +#define SOC_MEDIATEK_MT8192_EMI_H + +#include <types.h> + +size_t sdram_size(void); + +#endif /* SOC_MEDIATEK_MT8192_EMI_H */ |