OSDN Git Service

memory/mediatek: add support for mt2701
authorHonghui Zhang <honghui.zhang@mediatek.com>
Wed, 8 Jun 2016 09:50:59 +0000 (17:50 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 21 Jun 2016 09:36:19 +0000 (11:36 +0200)
commit3c8f4ad85c4b61fcf2c56e1d281d691ac595243a
treef60034edaa42624c7f3d6329798e390d9654ff18
parent9ca340c98c0dc6cb60b5ebd7847302f57648f0ba
memory/mediatek: add support for mt2701

Mediatek SMI has two generations of HW architecture, mt8173 uses the
second generation of SMI HW while mt2701 uses the first generation
HW of SMI.

There's slight differences between the two generations, for generation 2,
the register which control the iommu port access PA or IOVA is at each
larb's register base. But for generation 1, the register is at smi ao
base(smi always on register base).
Besides that, the smi async clock should be prepared and enabled for SMI
generation 1 HW to transform the smi clock into emi clock domain, but is
not needed for SMI generation 2.

This patch add SMI driver for mt2701 which use generation 1 SMI HW.

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