Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp182743pxb; Wed, 3 Feb 2021 02:58:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhzxADPdQPe5WgIWw0e/HV4I0bEMHNK48lJe6nu4krZFOyl69n5gF1X39zfNi961irEfqI X-Received: by 2002:a17:906:d93:: with SMTP id m19mr2546944eji.212.1612349909882; Wed, 03 Feb 2021 02:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612349909; cv=none; d=google.com; s=arc-20160816; b=ED5n54VCQG9sgrPYnaVWKJuKXB3cGoD3M7UMAXGinMZBDtl7GfzP47cy7zdppI5DYM tA/gpGT/S8peWuWZUZjKbVRbok5Dt06TLVizdm99KyRD5x4foxCW/mQECGKLDWJoimMf c7Oec54fvr8L/F25yREXp1JUHyeshEldHNdJzdBvxHr1B5543VsYR7jsDPjML1gagcI5 puEl/ziXYZ6HFq4nGAyaDnmhGv1Cfr5FNL2EW45ZaQ56hWISsrlDbFZxuuDrEK51VrlY vlkuF3T9R7XnfwX161FrKzp+r6n57o18wnR7Dy9GPAsb0TEB2913NNrHiD+svOrpxyvb f8Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0kCcIOAQHAhvH9KAIAFHDOlxA9KHeFrbJT1xTLDPefg=; b=THDIPglb8TfG6TpJM9Sug/qRqmnmF0eZ9eEWzlLGmjNascVwYkXRLi2DAxkE60ktk8 IUtmII0EhrmsO3qsZLLwChhVzzjXDdDBKr5W088sUhDClHsHd/izx4iPQSNdqdyMegUM JTjPLJ7ccCDwRtmbcOV+N3iXCFUj5kwDjn9s9lbhRNKV7m4EVyamsXEsfRnjbAPU4xU4 vzC/fIRXtmGORrPnrd1cf++Lhjh8iZRUaz7SH7NEtqQFiJ1OrtS6vosN3Nc4+Z3YlfZj rByKAUnX71/qjg8nJFFxItUyoPfLJ2nDm9jaVK5X2c0VS7p1qx/8lpQa4Y6qyqK03CQw TcmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si981407edg.20.2021.02.03.02.58.04; Wed, 03 Feb 2021 02:58:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233804AbhBCKzP (ORCPT + 99 others); Wed, 3 Feb 2021 05:55:15 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57944 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233575AbhBCKzO (ORCPT ); Wed, 3 Feb 2021 05:55:14 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id D6EDE1F45484 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, Collabora Kernel ML , Fabien Parent , Mars Cheng , Masahiro Yamada , Michael Turquette , Owen Chen , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH] clk: mediatek: Select all the MT8183 clocks by default Date: Wed, 3 Feb 2021 11:54:23 +0100 Message-Id: <20210203105423.682960-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If MT8183 SoC support is enabled, almost all machines will use topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks, so it feels wrong to require each one to select that symbols manually. Instead, enable it whenever COMMON_CLK_MT8183_* is disabled as a simplification. This would add few KB in the kernel image size but will make the life a bit easier to the users, anyway you'll need to probably enable all of them if you want to have proper support for that SoC. Signed-off-by: Enric Balletbo i Serra --- drivers/clk/mediatek/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index ce8475098b31..886e2d9fced5 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -426,66 +426,77 @@ config COMMON_CLK_MT8183 config COMMON_CLK_MT8183_AUDIOSYS bool "Clock driver for MediaTek MT8183 audiosys" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 audiosys clocks. config COMMON_CLK_MT8183_CAMSYS bool "Clock driver for MediaTek MT8183 camsys" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 camsys clocks. config COMMON_CLK_MT8183_IMGSYS bool "Clock driver for MediaTek MT8183 imgsys" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 imgsys clocks. config COMMON_CLK_MT8183_IPU_CORE0 bool "Clock driver for MediaTek MT8183 ipu_core0" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 ipu_core0 clocks. config COMMON_CLK_MT8183_IPU_CORE1 bool "Clock driver for MediaTek MT8183 ipu_core1" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 ipu_core1 clocks. config COMMON_CLK_MT8183_IPU_ADL bool "Clock driver for MediaTek MT8183 ipu_adl" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 ipu_adl clocks. config COMMON_CLK_MT8183_IPU_CONN bool "Clock driver for MediaTek MT8183 ipu_conn" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 ipu_conn clocks. config COMMON_CLK_MT8183_MFGCFG bool "Clock driver for MediaTek MT8183 mfgcfg" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 mfgcfg clocks. config COMMON_CLK_MT8183_MMSYS bool "Clock driver for MediaTek MT8183 mmsys" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 mmsys clocks. config COMMON_CLK_MT8183_VDECSYS bool "Clock driver for MediaTek MT8183 vdecsys" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 vdecsys clocks. config COMMON_CLK_MT8183_VENCSYS bool "Clock driver for MediaTek MT8183 vencsys" depends on COMMON_CLK_MT8183 + default COMMON_CLK_MT8183 help This driver supports MediaTek MT8183 vencsys clocks. -- 2.30.0