lkml.org 
[lkml]   [2020]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v11 3/5] clk / soc: mediatek: Move mt8173 MMSYS to platform driver
    From
    Date
    Hi, Enric:

    On Wed, 2020-03-11 at 12:56 +0100, Enric Balletbo i Serra wrote:
    > From: Matthias Brugger <mbrugger@suse.com>
    >
    > There is no strong reason for this to use CLK_OF_DECLARE instead of
    > being a platform driver. Plus, MMSYS provides clocks but also a shared
    > register space for the mediatek-drm and the mediatek-mdp
    > driver. So move the MMSYS clocks to a new platform driver and also
    > create a new MMSYS platform driver in drivers/soc/mediatek that
    > instantiates the clock driver.
    >

    Reviewed-by: CK Hu <ck.hu@mediatek.com>

    > Signed-off-by: Matthias Brugger <mbrugger@suse.com>
    > Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
    > ---
    >
    > Changes in v11:
    > - Leave the clocks part in drivers/clk (clk-mt8173-mm)
    > - Instantiate the clock driver from the mtk-mmsys driver.
    > - Add default config option to not break anything.
    > - Removed the Reviewed-by CK tag as changed the organization.
    >
    > Changes in v10:
    > - Renamed to be generic mtk-mmsys
    > - Add driver data support to be able to support diferent SoCs
    >
    > Changes in v9:
    > - Move mmsys to drivers/soc/mediatek (CK)
    >
    > Changes in v8:
    > - Be a builtin_platform_driver like other mediatek mmsys drivers.
    >
    > Changes in v7:
    > - Free clk_data->clks as well
    > - Get rid of private data structure
    >
    > drivers/clk/mediatek/Kconfig | 7 ++
    > drivers/clk/mediatek/Makefile | 1 +
    > drivers/clk/mediatek/clk-mt8173-mm.c | 146 +++++++++++++++++++++++++++
    > drivers/clk/mediatek/clk-mt8173.c | 104 -------------------
    > drivers/soc/mediatek/Kconfig | 8 ++
    > drivers/soc/mediatek/Makefile | 1 +
    > drivers/soc/mediatek/mtk-mmsys.c | 50 +++++++++
    > 7 files changed, 213 insertions(+), 104 deletions(-)
    > create mode 100644 drivers/clk/mediatek/clk-mt8173-mm.c
    > create mode 100644 drivers/soc/mediatek/mtk-mmsys.c
    >

    > obj-$(CONFIG_COMMON_CLK_MT8183_CAMSYS) += clk-mt8183-cam.o


    \
     
     \ /
      Last update: 2020-03-11 14:07    [W:3.112 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site