]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
memory: mtk-smi: add larbid handle routine
authorHonghui Zhang <honghui.zhang@mediatek.com>
Fri, 4 Aug 2017 01:32:26 +0000 (09:32 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Aug 2017 10:04:58 +0000 (12:04 +0200)
commit363932cdef4ba4e359ffd544d5b31d3eb31b358a
treeb81589bdfc23e478d538150ce52d34ddb9ee329e
parent75487860a874a79aaa286c600989249aa9fe8fdc
memory: mtk-smi: add larbid handle routine

In the commit 3c8f4ad85c4b ("memory/mediatek: add support for mt2701"),
the larb->larbid was added but not initialized.
Mediatek's gen1 smi need this hardware larbid information to get the
register offset which controls whether enable iommu for this larb.
This patch add the initialize routine for larbid.

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/memory/mtk-smi.c