Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1299440
| From | Matthias Brugger <matthias.bgg@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/4] soc: mediatek: Add MT2701/MT7623 scpsys driver |
| Date | 2015-12-30 19:00 +0100 |
| Message-ID | <qLtcu-1he-7@gated-at.bofh.it> (permalink) |
| References | <qLiK5-33r-5@gated-at.bofh.it> <qLiK6-33r-13@gated-at.bofh.it> <qLkVA-4DJ-13@gated-at.bofh.it> <qLm1k-5j3-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 30/12/15 11:18, James Liao wrote: > Hi Daniel, > > On Wed, 2015-12-30 at 17:01 +0800, Daniel Kurtz wrote: >> On Wed, Dec 30, 2015 at 2:41 PM, James Liao <jamesjj.liao@mediatek.com> wrote: >>> >>> From: Shunli Wang <shunli.wang@mediatek.com> >>> >>> Add scpsys driver for MT2701 and MT7623. >>> >>> Signed-off-by: Shunli Wang <shunli.wang@mediatek.com> >>> Signed-off-by: James Liao <jamesjj.liao@mediatek.com> >>> --- >>> drivers/soc/mediatek/Kconfig | 11 +++ >>> drivers/soc/mediatek/Makefile | 1 + >>> drivers/soc/mediatek/mtk-scpsys-mt2701.c | 161 +++++++++++++++++++++++++++++++ >>> 3 files changed, 173 insertions(+) >>> create mode 100644 drivers/soc/mediatek/mtk-scpsys-mt2701.c >>> >>> diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig >>> index eca6fb7..92cf838 100644 >>> --- a/drivers/soc/mediatek/Kconfig >>> +++ b/drivers/soc/mediatek/Kconfig >>> @@ -39,3 +39,14 @@ config MTK_SCPSYS_MT8173 >>> driver. >>> The System Control Processor System (SCPSYS) has several power >>> management related tasks in the system. >>> + >>> +config MTK_SCPSYS_MT2701 >>> + bool "SCPSYS Support MediaTek MT2701 and MT7623" >>> + depends on ARCH_MEDIATEK || COMPILE_TEST >>> + select MTK_SCPSYS >>> + default ARCH_MEDIATEK >>> + help >>> + Say yes here to add support for the MT2701/MT7623 SCPSYS power >>> + domain driver. >>> + The System Control Processor System (SCPSYS) has several power >>> + management related tasks in the system. >> >> I don't think we really want different drivers and Kconfig options. >> >> Can we just use different compatibles to select the appropriate scp_domain_data? > > Yes, we can. All scpsys drivers are built-in by default, and they will > be activate by specific compatible string. > > But some projects don't want to build unused drivers into kernel to save > code size. Use different Kconfig options for each SoC so that these > projects can disable unused drivers. > Scpsys is a bool right now, you can disable it if you don't need it for your project. I don't think the impact of adding scp_domain_data justifies adding SoC specific scpsys drivers and bloat the drivers/soc/mediatek folder. Best regards, Matthias -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/4] Mediatek MT2701 SCPSYS power domain support James Liao <jamesjj.liao@mediatek.com> - 2015-12-30 07:50 +0100
[PATCH 3/4] soc: mediatek: Add MT2701 power dt-bindings James Liao <jamesjj.liao@mediatek.com> - 2015-12-30 07:50 +0100
[PATCH 4/4] soc: mediatek: Add MT2701/MT7623 scpsys driver James Liao <jamesjj.liao@mediatek.com> - 2015-12-30 07:50 +0100
Re: [PATCH 4/4] soc: mediatek: Add MT2701/MT7623 scpsys driver Daniel Kurtz <djkurtz@chromium.org> - 2015-12-30 10:10 +0100
Re: [PATCH 4/4] soc: mediatek: Add MT2701/MT7623 scpsys driver James Liao <jamesjj.liao@mediatek.com> - 2015-12-30 11:20 +0100
Re: [PATCH 4/4] soc: mediatek: Add MT2701/MT7623 scpsys driver Matthias Brugger <matthias.bgg@gmail.com> - 2015-12-30 19:00 +0100
csiph-web