From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: undisclosed-recipients:;
Cc: Stephen Boyd <sboyd@kernel.org>,
k.konieczny@partner.samsung.com,
linux-samsung-soc@vger.kernel.org,
Chanwoo Choi <cw00.choi@samsung.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Kukjin Kim <kgene@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 5/5] clk: samsung: exynos5433: add imem clocks
Date: Wed, 05 Dec 2018 11:57:32 +0100 [thread overview]
Message-ID: <3bb9f4b5-e069-79fe-6ab3-2750c6191e57@samsung.com> (raw)
In-Reply-To: <154394884525.88331.3007383362383800806@swboyd.mtv.corp.google.com>
On 12/4/18 19:40, Stephen Boyd wrote:
> Quoting Kamil Konieczny (2018-12-04 08:52:48)
>> +
>> +static const unsigned long imem_clk_regs[] __initconst = {
>> + ENABLE_ACLK_IMEM,
>> + ENABLE_ACLK_IMEM_INT_MEM,
>> + ENABLE_ACLK_IMEM_SSS,
>> + ENABLE_ACLK_IMEM_SLIMSSS,
>> + ENABLE_ACLK_IMEM_RTIC,
>> + ENABLE_ACLK_IMEM_SMMU_SSS,
>> + ENABLE_ACLK_IMEM_SMMU_SLIMSSS,
>> + ENABLE_ACLK_IMEM_SMMU_RTIC,
>> + ENABLE_ACLK_IMEM_ARBG_TX,
>> + ENABLE_ACLK_IMEM_SMMU_ARBG_TX,
>> + ENABLE_PCLK_IMEM,
>> + ENABLE_PCLK_IMEM_SSS,
>> + ENABLE_PCLK_IMEM_SLIMSSS,
>> + ENABLE_PCLK_IMEM_RTIC,
>> + ENABLE_PCLK_IMEM_SMMU_SSS,
>> + ENABLE_PCLK_IMEM_SMMU_SLIMSSS,
>> + ENABLE_PCLK_IMEM_SMMU_RTIC,
>> + ENABLE_PCLK_IMEM_SMMU_ARGB_TX,
>> +};
>> +
>> +static const struct samsung_gate_clock imem_gate_clks[] __initconst = {
>> + /* ENABLE_ACLK_IMEM */
>> + GATE(CLK_ACLK_AXI2AHB_IMEMH, "aclk_axi2ahb_imemh", "aclk_imem_200",
>> + ENABLE_ACLK_IMEM, 24, 0, 0),
I don't think that clock will ever need to be disabled/enabled, so I would
drop this definition. The clock will remain in its default state after reset
(enabled).
>> + GATE(CLK_ACLK_AXIDS_SROMC, "aclk_axids_sromc", "aclk_imem_200",
>> + ENABLE_ACLK_IMEM, 23, CLK_IGNORE_UNUSED, 0),
>
> Why is there so much use of CLK_IGNORE_UNUSED in this file?
I suppose CLK_IGNORE_UNUSED is needed because there is no drivers that
would enable required clocks. For some clocks the flag could probably
indeed just be omitted, e.g. SLIMSSS clocks.
I'm inclined to just define clocks that we are confident about and which
are needed now. i.e. the SSS IP block clocks. So in include/dt-bindings/
clock/exynos5433.h we would have something like:
+/* CMU_IMEM */
+#define CLK_ACLK_SSS 1
+#define CLK_PCLK_SSS 40
+#define IMEM_NR_CLK 41
The other clocks could be added later as needed by someone who has
detailed knowledge about respective peripheral blocks.
--
Regards,
Sylwester
next prev parent reply other threads:[~2018-12-05 10:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20181204165248.17572-1-k.konieczny@partner.samsung.com>
[not found] ` <CGME20181204165318eucas1p2dccd5382ee8b9f4da8c3076fb56607ee@eucas1p2.samsung.com>
2018-12-04 16:52 ` Kamil Konieczny
2018-12-04 18:40 ` Stephen Boyd
2018-12-05 10:57 ` Sylwester Nawrocki [this message]
2018-12-05 16:08 ` Stephen Boyd
2018-12-05 17:25 ` Sylwester Nawrocki
2018-12-10 22:33 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3bb9f4b5-e069-79fe-6ab3-2750c6191e57@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=k.konieczny@partner.samsung.com \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®