From patchwork Tue May 22 16:34:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10419135 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 60AF760224 for ; Tue, 22 May 2018 16:35:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E3FC284D4 for ; Tue, 22 May 2018 16:35:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4023128F2B; Tue, 22 May 2018 16:35:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA8A4284D4 for ; Tue, 22 May 2018 16:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=I2Ydmyu8rEyFN1bWfJwlj7W3yiOdEtambcHqFs3xwpw=; b=KS+H/whdztF439yM0/jhHMgzvb hm+qnu2iI4G317TRyWNHzsEpqRXLoLKIdUGf2SnmuUF5wURh64i+i29rqpLYAhDUMSZlj3JvhZjiP BXNSknque78AO9KYr0HgXWId510PAjGeKqAneTpi/kVebfSf879jjEfb5IStzkFsbYDGKaAc2mleo mqvY5xi0Zta/PoYbv1+9VTQuioRp6uiA4TMMoXGhy+ueIu4wR1PSzjr6Uu1crOoDmtpQbIWC0qu25 j3imiXhsuyimhH+wgJP9PQX5+5vABzNPxd8Ud3Wn37121ZHXgxz2M+zv/4DSj2hqBOykupbHh1wnk DWR53pDA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLAFw-0001hZ-Cv; Tue, 22 May 2018 16:35:24 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLAFn-0000sa-TY for linux-amlogic@lists.infradead.org; Tue, 22 May 2018 16:35:20 +0000 Received: by mail-wr0-x244.google.com with SMTP id k5-v6so9247841wrn.3 for ; Tue, 22 May 2018 09:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Csr+OAI9fWstE4dhd2Fjfc+mlFPfu3HUaFEpI4ql6zg=; b=sKYBJVpMyg4WYawbTs7jtAzIhHEFW3Wlpe5cOiTqOj1lJ8gXeXMHISEsjKbP50fOVA LbIbNXIxbUC4D2pl6RaUjtpKrTISa3bp49fzOYA2gI9UjCoqovyRsnTEF81YG0rYawG3 ETiJJy53fgj8imYJHyIu1RGZfJmP/ukvF/2ny3+feGcRYfo/81xsiASc8VeNx7Uxg8yR MD4SI6R/vjumUzklqNgUYpUtpxg6oA1XeaFiC+dSfl8ICb6PYRHMY37bw6N8xMEwcdEJ 6rYHO09FXvpF/ZJEJPRQJf2kEz275kL+rchjde+r1EgpoqwjUU3YalT22Xvg2FDBBx2j rzaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Csr+OAI9fWstE4dhd2Fjfc+mlFPfu3HUaFEpI4ql6zg=; b=XPHmSZN4dMPN5pStRYqL2rixagdvOyglwe8EBKhEBiFmrTcRbihAFP5Xz3zVOcGfw3 /wnKfC76mUtnPWeRyXroEj84CNbX00Cdr00J2GMzo6hy6KIadMjGwsCJrL+e3pEFSWXc Dp3BCkVmrr/DGMXwyGFj769eN5q+0SeHUH7pgUoLWmMFqXTZ+Bx5vAiWav7yBQaeu6G4 8hWkGKHogSu+QCl/zaotk/72EruBeUow7yWANtsw9edItFCBVwp/NfCTVRCq6feRpKMc sdeRm9wyvzXh5er8y41uXdOYX7tj/i+rWp+0PbIwh5MJZv9Ty3/vrhhy/R83t1yCvzzB aOdQ== X-Gm-Message-State: ALKqPwdhw8yMwfPjFYoQ2P1hb629zKkZPz3dUiyFsNZ/iR8L0CLVOw4I vZ1E9HXHT+o7gkD0q88FMT7y1w== X-Google-Smtp-Source: AB8JxZr4nqOUDP5+m9xkjtZ1wNm1eJ07EaIaKL7QEgnt5xGyXJ2V1R+dZ05v/2GAK4AHCx2Yha/uzQ== X-Received: by 2002:adf:dc8b:: with SMTP id r11-v6mr1993116wrj.263.1527006902818; Tue, 22 May 2018 09:35:02 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id h8-v6sm294062wmc.16.2018.05.22.09.35.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 09:35:02 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong , Carlo Caione , Kevin Hilman Subject: [PATCH v2 1/6] clk: meson: clean-up meson clock configuration Date: Tue, 22 May 2018 18:34:52 +0200 Message-Id: <20180522163457.13834-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180522163457.13834-1-jbrunet@baylibre.com> References: <20180522163457.13834-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180522_093515_970512_BE828EB7 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Stephen Boyd , Michael Turquette , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Clean the dependencies in meson clock Kconfig. CLK_AMLOGIC should actually select CLK_REGMAP_MESON which it uses. Also, each platform should select CLK_AMLOGIC, so everything is properly turned on when the platform Kconfig enable each configuration flag Acked-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/clk/meson/Kconfig | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig index 815659eebea3..9d00809f07fc 100644 --- a/drivers/clk/meson/Kconfig +++ b/drivers/clk/meson/Kconfig @@ -1,13 +1,14 @@ config COMMON_CLK_AMLOGIC bool - depends on OF depends on ARCH_MESON || COMPILE_TEST + select COMMON_CLK_REGMAP_MESON config COMMON_CLK_MESON_AO bool depends on OF depends on ARCH_MESON || COMPILE_TEST select COMMON_CLK_REGMAP_MESON + select RESET_CONTROLLER config COMMON_CLK_REGMAP_MESON bool @@ -15,9 +16,8 @@ config COMMON_CLK_REGMAP_MESON config COMMON_CLK_MESON8B bool - depends on COMMON_CLK_AMLOGIC + select COMMON_CLK_AMLOGIC select RESET_CONTROLLER - select COMMON_CLK_REGMAP_MESON help Support for the clock controller on AmLogic S802 (Meson8), S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you @@ -25,10 +25,8 @@ config COMMON_CLK_MESON8B config COMMON_CLK_GXBB bool - depends on COMMON_CLK_AMLOGIC - select RESET_CONTROLLER + select COMMON_CLK_AMLOGIC select COMMON_CLK_MESON_AO - select COMMON_CLK_REGMAP_MESON select MFD_SYSCON help Support for the clock controller on AmLogic S905 devices, aka gxbb. @@ -36,10 +34,8 @@ config COMMON_CLK_GXBB config COMMON_CLK_AXG bool - depends on COMMON_CLK_AMLOGIC - select RESET_CONTROLLER + select COMMON_CLK_AMLOGIC select COMMON_CLK_MESON_AO - select COMMON_CLK_REGMAP_MESON select MFD_SYSCON help Support for the clock controller on AmLogic A113D devices, aka axg.