mt8183: emi: add bandwidth driver support
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): mt8183 emi driver
PATCH v3 2/2 mt8183: emi: add bandwidth driver support
EMI provides interface for get bandwidth on every 1 miliseconds. Currently, just support GPU bandwidth info.
--- drivers/memory/Kconfig | 9 ++ drivers/memory/Makefile | 1 + drivers/memory/mtk-emi.c | 395 +++++++++++++++++++++++++++++++++++++++++++++ include/soc/mediatek/emi.h | 116 +++++++++++++ 4 files changed, 521 insertions(+) create mode 100644 drivers/memory/mtk-emi.c create mode 100644 include/soc/mediatek/emi.h
drivers/memory/Kconfig +9 -0
@@ -129,6 +129,15 @@ config JZ4780_NEMC the Ingenic JZ4780. This controller is used to handle external memory devices such as NAND and SRAM. +config MTK_EMI_MBW + bool "Mediatek EMI bandwidth driver" + depends on ARCH_MEDIATEK || COMPILE_TEST + help + This driver is for MTK EMI control. + If unsure, use N. + This is the first time emi upstream. + Only support emi bw statistics. + config MTK_SMI bool depends on ARCH_MEDIATEK || COMPILE_TEST
drivers/memory/Makefile +1 -0
@@ -17,6 +17,7 @@ obj-$(CONFIG_FSL_CORENET_CF) += fsl-corenet-cf.o obj-$(CONFIG_FSL_IFC) += fsl_ifc.o obj-$(CONFIG_MVEBU_DEVBUS) += mvebu-devbus.o obj-$(CONFIG_JZ4780_NEMC) += jz4780-nemc.o +obj-$(CONFIG_MTK_EMI_MBW) += mtk-emi.o obj-$(CONFIG_MTK_SMI) += mtk-smi.o obj-$(CONFIG_DA8XX_DDRCTL) += da8xx-ddrctl.o obj-$(CONFIG_PL353_SMC) += pl353-smc.o
drivers/memory/mtk-emi.c new file +395 -0
395 lines not on this page · raw message
include/soc/mediatek/emi.h new file +116 -0
116 lines not on this page · raw message
Signature · 1 line
1.9.1