From: "Cousson, Benoit" <b-cousson@ti.com>
To: Afzal Mohammed <afzal@ti.com>
Cc: linux-omap@vger.kernel.org, hvaibhav@ti.com, nsekhar@ti.com
Subject: Re: GPMC in HWMOD (and a related AM335X issue)
Date: Fri, 10 Feb 2012 03:51:32 +0100 [thread overview]
Message-ID: <4F348634.8040909@ti.com> (raw)
In-Reply-To: <1328790544-4423-1-git-send-email-afzal@ti.com>
Hi Mohammed,
On 2/9/2012 1:29 PM, Afzal Mohammed wrote:
> Hi,
>
> OMAP HWMOD currently does not have GPMC adapted to it.
>
> We are facing a problem indirectly related to it in the case of
> AM335X SoC. It can reuse GPMC code of OMAP except that base address
> & IRQ# is different. But we get a kernel crash without
> (at least) following change
>
> -------------------------------------------------------------------
> arm:omap:gpmc: am33xx base address
>
> GPMC base address of AM335X SoC is same as that of OMAP44XX,
> update it (eventhough AM33XX is a member of OMAP34XX family)
> Without this change, Kernel would crash for AM335X
>
> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> index dfffbbf..4ee2e90 100644
> --- a/arch/arm/mach-omap2/gpmc.c
> +++ b/arch/arm/mach-omap2/gpmc.c
> @@ -711,7 +711,10 @@ static int __init gpmc_init(void)
> gpmc_irq = INT_34XX_GPMC_IRQ;
> } else if (cpu_is_omap34xx()) {
> ck = "gpmc_fck";
> - l = OMAP34XX_GPMC_BASE;
> + if (cpu_is_am33xx())
> + l = OMAP44XX_GPMC_BASE;
> + else
> + l = OMAP34XX_GPMC_BASE;
> gpmc_irq = INT_34XX_GPMC_IRQ;
> } else if (cpu_is_omap44xx()) {
> ck = "gpmc_ck";
> -------------------------------------------------------------------
>
> But the above is not sufficient, even the IRQ # has to be changed
> And for that we need to feed the proper IRQ # too. Now if it was a
> HWMOD device, we could have passed it in HWMOD database& it would
> have been taken care. Other option is to have a new AM335X specific
> IRQ header file (which, if my understanding is correct, we can't get
> into mainline as HWMOD is present for OMAP& due to DT things)
>
> HWMOD entries currently does contain GPMC, is it due to the reason that
> GPMC is not yet adapted to omap_device / omap_hwmod or is there any
> other reason for not having it in HWMOD (as GPMC not yet a driver?)
Yes, that's the reason.
Nobody had the time to update that driver yet to omap_device and thus we
did not create the hwmod entry for it.
And since we do not use the GPMC on OMAP4 boards, we did not have some
good way to test any change on this driver.
Do not hesitate to update that driver and add the DT support if you want:-)
Regards,
Benoit
next prev parent reply other threads:[~2012-02-10 2:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 12:29 GPMC in HWMOD (and a related AM335X issue) Afzal Mohammed
2012-02-10 2:51 ` Cousson, Benoit [this message]
2012-02-10 15:42 ` Mohammed, Afzal
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=4F348634.8040909@ti.com \
--to=b-cousson@ti.com \
--cc=afzal@ti.com \
--cc=hvaibhav@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=nsekhar@ti.com \
/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;
as well as URLs for NNTP newsgroup(s).