From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: Paul Walmsley <paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org>
Cc: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>,
Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
Linux OMAP Mailing List
<linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Linux ARM Kernel Mailing List
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/4] arm: omap: hwmod: 43xx: add DebugSS hwmod data
Date: Mon, 26 Jan 2015 10:56:40 -0600 [thread overview]
Message-ID: <20150126165640.GA10679@saruman.tx.rr.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1501260142590.5450-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3088 bytes --]
Hi,
On Mon, Jan 26, 2015 at 02:04:35AM +0000, Paul Walmsley wrote:
> Hi
>
> the references below are from SPRUHL7
>
> On Fri, 23 Jan 2015, Felipe Balbi wrote:
>
> > Without hwmod data for DebugSS, performance monitors
> > have no chance of running on AM43xx devices.
> >
> > Signed-off-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
> > ---
> > arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 40 ++++++++++++++++++++++++++++++
> > arch/arm/mach-omap2/prcm43xx.h | 1 +
> > 2 files changed, 41 insertions(+)
> >
> > diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> > index 5c6c8410160e..6709704dd5b5 100644
> > --- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> > +++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
> > @@ -19,6 +19,7 @@
> > #include "omap_hwmod.h"
> > #include "omap_hwmod_33xx_43xx_common_data.h"
> > #include "prcm43xx.h"
> > +#include "prm44xx.h"
> > #include "omap_hwmod_common_data.h"
> >
> >
> > @@ -60,6 +61,44 @@ static struct omap_hwmod am43xx_wkup_m3_hwmod = {
> > .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets),
> > };
> >
> > +/*
> > + * 'debugss' class
> > + * debug and emulation sub system
> > + */
> > +static struct omap_hwmod_opt_clk am43xx_debugss_opt_clks[] = {
> > + { .role = "dbg_sysclk", .clk = "dbg_sysclk_ck" },
> > + { .role = "dbg_clka", .clk = "dbg_clka_ck", },
> > + { .role = "dbg_clkb", .clk = "dbg_clkb_ck", },
> > + { .role = "dbg_clkc", .clk = "dbg_clkc_ck", },
> > +};
> > +
> > +static struct omap_hwmod_class am43xx_debugss_hwmod_class = {
> > + .name = "debugss",
> > +};
> > +
> > +/* debugss */
> > +static struct omap_hwmod am43xx_debugss_hwmod = {
> > + .name = "debugss",
> > + .class = &am43xx_debugss_hwmod_class,
> > + .clkdm_name = "l3_aon_clkdm",
> > + .main_clk = "trace_clk_div_ck",
> > + .prcm = {
> > + .omap4 = {
> > + .clkctrl_offs = AM43XX_CM_WKUP_DBGSS_CLKCTRL_OFFSET,
>
> According to Table 6-275 "PRCM_CM_WKUP_DBGSS_CLKCTRL Register Field
> Descriptions" this should have a
>
> .modulemode = MODULEMODE_SWCTRL,
hm... modulemode SWCTRL causes wait_target_ready to fail. Any hints ?
> > + },
> > + },
> > + .opt_clks = am43xx_debugss_opt_clks,
> > + .opt_clks_cnt = ARRAY_SIZE(am43xx_debugss_opt_clks),
> > +};
> > +
> > +/* debugss -> l3_main_2 */
> > +static struct omap_hwmod_ocp_if am43xx_debugss__l3_main = {
> > + .master = &am43xx_debugss_hwmod,
> > + .slave = &am33xx_l3_main_hwmod,
> > + .clk = "sys_clkin_ck",
> > + .user = OCP_USER_MPU | OCP_USER_SDMA,
> > +};
> > +
>
> According to Table 31-25 "Debug Modules Memory Mapping" there are a few
> initiator ports on the DEBUGSS that are connected to various slave ports
> on various chip-wide interconnects: L3_EMU, L4_PER, L4_WAKEUP, L4_CFG. I
> would suggest starting by adding at least one of them as a struct
> omap_hwmod_ocp_if record. The one attached to L3_EMU would seem like a
> good one to start with.
I'll have a look.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-01-26 16:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 23:11 [PATCH 0/4] arm: am43xx: add PMU support Felipe Balbi
2015-01-23 23:11 ` [PATCH 1/4] arm: omap: hwmod: 43xx: add DebugSS hwmod data Felipe Balbi
[not found] ` <1422054704-14915-2-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2015-01-26 2:04 ` Paul Walmsley
[not found] ` <alpine.DEB.2.02.1501260142590.5450-rwI8Ez+7Ko+d5PgPZx9QOdBPR1lH4CV8@public.gmane.org>
2015-01-26 16:56 ` Felipe Balbi [this message]
2015-01-26 19:49 ` Felipe Balbi
2015-01-27 16:01 ` Felipe Balbi
2015-01-27 17:12 ` Paul Walmsley
2015-01-27 17:15 ` Felipe Balbi
[not found] ` <20150127171532.GC14878-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-01-27 17:18 ` Felipe Balbi
[not found] ` <20150127171843.GD14878-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-01-27 17:55 ` Paul Walmsley
2015-02-10 23:12 ` Paul Walmsley
2015-02-10 23:56 ` Felipe Balbi
2015-02-11 0:38 ` Paul Walmsley
2015-01-23 23:11 ` [PATCH 2/4] arm: dts: am4372: add missing debugss clocks Felipe Balbi
2015-01-23 23:11 ` [PATCH 3/4] clk: ti: 43xx: add debugss clocks to DT_CLK() table Felipe Balbi
2015-01-24 2:25 ` Felipe Balbi
[not found] ` <1422054704-14915-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2015-01-23 23:11 ` [PATCH 4/4] arm: dts: am4372: add pmu DT data Felipe Balbi
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=20150126165640.GA10679@saruman.tx.rr.com \
--to=balbi-l0cymroini0@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.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