From patchwork Sat Jul 21 19:13:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10538971 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 91BFFA663 for ; Sun, 22 Jul 2018 00:57:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D957028BAA for ; Sat, 21 Jul 2018 19:14:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB9F428BC5; Sat, 21 Jul 2018 19:14:22 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 86CD228BAA for ; Sat, 21 Jul 2018 19:14:22 +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: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:In-Reply-To: References:List-Owner; bh=dpJpLGO9TLqBh5AjHRJUJKf53UU2uw8nyuACXwukISw=; b=rmE 5pwlOjzAx1euxVTTcDZxZZZKRwbFsai045dUkt+ktCQtkdAV3+63pF+wDvbR0AnuQCKfyaEgNMiAH STO+mHTbClXtJNUfTHeWPDPPDCQ6F1bbO5SlQ3StSQysvoGaVVwXZMOSFhJbXT5FlAeJtRRsjBTc/ vRXECujhuITE9wBSvMz2Td9Dozhtn+VKPN91ZVdzevHIaF2dyLQHPBEeMh+D/+JBMKGiCBn+YY+ZP H/D0j6AMsgOkVrkUnKyDpJZX2632RYxw+5GTmM0kke1sOrNct/21qPx20S3p1dfSEDWKAh6jU3CFE jvrWPSuPEpllxJ2un+sgp9/TQp96iwQ==; 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 1fgxKe-0007ok-UU; Sat, 21 Jul 2018 19:14:20 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fgxKc-0007np-Q4 for linux-amlogic@lists.infradead.org; Sat, 21 Jul 2018 19:14:20 +0000 Received: by mail-wr1-x444.google.com with SMTP id r16-v6so14102375wrt.11 for ; Sat, 21 Jul 2018 12:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=u9393tJIeZS2G3XnLyHcLnlotyGIM+L9E2gZK6Feer0=; b=K6rr0oIedZYDyjeyQac+yaAsIlwdC06mnUYdPGOPBWxLOMSXNDIRPzmMronHhTCSTF 3T7qjg36oY25zfW5A5PxvpIetCZeO/7YOQL1IreW8VJMggrEhv26WZJYuK4jQJ7nYFlq YjmyQ9faQxdL0+OuSf21XPqbth+pgK7nIwe0Vv3CG7AuYqdvPV0JsVKbmdZqrE6Ajomf bgCh46JYBlqWyrL9hh2Gn0UpSW99c+7dEwVNgxoSrkyN24YSNknV4JGULTNh11z4r6p1 39HzLk6KP4wwW4BEL/lugq323Nj/qqbz/MYb6C3cIldmbmu8/7nZj4IDrY49BhvGT7F+ 8x/A== 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; bh=u9393tJIeZS2G3XnLyHcLnlotyGIM+L9E2gZK6Feer0=; b=PMghV8Q6f2Q8teje92BUWoBzgvpdAwdYZvQ0pmKsVc7PDzEJjn7Fuu7Oms+HrIzChx WF2hMXaEHTmBhNOTrtE9wGkNYDSQxtHntKM0vf6uawXuR3YHqHmYp2iWX8o5B+1hhXtV cKnEQxkPwe0bGHzpHtJAEhGYAuBg+snwj14ndTkMr4tE5jptAoGx3QTZAywYxpNHae4f 1mP6U5LHGuMYidlbNFlRdAjWs5wMC8ulr6MgQg66GN4pBt6RwHBjRl0tPquXbAQZ4dGL aod6QDHUYoU6MtkP2CavC1gLk9sXyE0aFkUFVllLFxRI7LYNEDoeoCcciTx1vgxcho+V JQPw== X-Gm-Message-State: AOUpUlFnWVUO8WWhnczSuNyQaGEoNKBjl092HRm2cFkmxyb/iZKOIE/f ZqEqvLqZcQv4XClMTAMP8iiEh4gh X-Google-Smtp-Source: AAOMgpfgFD+heHntpMYlkvwmRaRrYp3+YhZ9RS0qM4yHSs15uHh9CGBz8ifAqtelxRzm5tMyESM5AQ== X-Received: by 2002:adf:bc03:: with SMTP id s3-v6mr4764357wrg.211.1532200446919; Sat, 21 Jul 2018 12:14:06 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD732620055BA2447D3F43559.dip0.t-ipconnect.de. [2003:dc:d732:6200:55ba:2447:d3f4:3559]) by smtp.googlemail.com with ESMTPSA id o13-v6sm4014413wmc.33.2018.07.21.12.14.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jul 2018 12:14:06 -0700 (PDT) From: Martin Blumenstingl To: narmstrong@baylibre.com, jbrunet@baylibre.com, linux-amlogic@lists.infradead.org Subject: [PATCH 0/2] meson8b: register the clock controller early Date: Sat, 21 Jul 2018 21:13:58 +0200 Message-Id: <20180721191400.15558-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180721_121418_856406_8261B4FA X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. 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: sboyd@kernel.org, khilman@baylibre.com, mturquette@baylibre.com, Martin Blumenstingl , carlo@caione.org, linux-clk@vger.kernel.org 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 Some parts of the SoC are initialized early in the boot process, such as the SRAM and the TWD timer. This means that the corresponding drivers need to access the clock controller early as well. Before this series the clock controller was registered as platform driver, which is too late for the TWD timer (just as an example). The reset controller (built into the clock controller driver) was already registered early, basically for the same reason (the reset lines are used to start the secondary CPUs, which is done very early in the boot process). Register the clock controller early enough so we're able to use the TWD timer (as we need to pass a clock which is provided by this clock controller) in a second step. The second patch simplifies the reset controller (built into the clock controller driver) because the regmap is already available early and thus can be used by the reset controller driver as well. Martin Blumenstingl (2): clk: meson: meson8b: register the clock controller early clk: meson: meson8b: use the regmap in the internal reset controller drivers/clk/meson/meson8b.c | 107 ++++++++++++++---------------------- 1 file changed, 40 insertions(+), 67 deletions(-)