30 Aug, 2019

2 commits

  • Remove the "struct mtk_smi_iommu" to simplify the code since it has only
    one item in it right now.

    Signed-off-by: Yong Wu
    Reviewed-by: Matthias Brugger
    Signed-off-by: Joerg Roedel

    Yong Wu
     
  • The "mediatek,larb-id" has already been parsed in MTK IOMMU driver.
    It's no need to parse it again in SMI driver. Only clean some codes.
    This patch is fit for all the current mt2701, mt2712, mt7623, mt8173
    and mt8183.

    After this patch, the "mediatek,larb-id" only be needed for mt2712
    which have 2 M4Us. In the other SoCs, we can get the larb-id from M4U
    in which the larbs in the "mediatek,larbs" always are ordered.

    Correspondingly, the larb_nr in the "struct mtk_smi_iommu" could also
    be deleted.

    CC: Matthias Brugger
    Signed-off-by: Yong Wu
    Reviewed-by: Evan Green
    Reviewed-by: Matthias Brugger
    Signed-off-by: Joerg Roedel

    Yong Wu
     

31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation this program is
    distributed in the hope that it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 655 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

22 Aug, 2017

1 commit

  • The M4U IP blocks in mt2712 is MTK's generation2 M4U which use the
    ARM Short-descriptor like mt8173, and most of the HW registers are
    the same.

    The difference is that there are 2 M4U HWs in mt2712 while there's
    only one in mt8173. The purpose of 2 M4U HWs is for balance the
    bandwidth.

    Normally if there are 2 M4U HWs, there should be 2 iommu domains,
    each M4U has a iommu domain.

    Signed-off-by: Yong Wu
    Signed-off-by: Joerg Roedel

    Yong Wu
     

25 Feb, 2016

1 commit

  • This patch add SMI(Smart Multimedia Interface) driver. This driver
    is responsible to enable/disable iommu and control the power domain
    and clocks of each local arbiter.

    Signed-off-by: Yong Wu
    Tested-by: Philipp Zabel
    Reviewed-by: Daniel Kurtz
    Tested-by: Daniel Kurtz
    Signed-off-by: Matthias Brugger
    Signed-off-by: Joerg Roedel

    Yong Wu