All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Tero Kristo <t-kristo@ti.com>
Cc: Adam Ford <aford173@gmail.com>, Linux-OMAP <linux-omap@vger.kernel.org>
Subject: Re: OMAP36 AES and SHA addresses and hwmods
Date: Mon, 4 May 2020 08:06:49 -0700	[thread overview]
Message-ID: <20200504150649.GI37466@atomide.com> (raw)
In-Reply-To: <7b4ffe96-7d97-81c1-629f-af56018b84ae@ti.com>

* Tero Kristo <t-kristo@ti.com> [200504 06:29]:
> On 03/05/2020 18:48, Adam Ford wrote:
> > According to the dm3730 reference manual, there are supposed to be two
> > AES and SHA engines, but the addresses of their IP doesn't appear in
> > the reference manual.
> > 
> > The AM35xx has references to two memory locations for each:
> > 
> >     AES1 shows it's at 0x480A 6000
> >     AES2 shows is 0x480C 5000 (matches omap3630 entry)
> > 
> >     SHA1MD5 2 shows it's at 480c 3000 (matches omap3630 entry)
> >     SHA2MD5 shows it's at 0x480A 4000
> > 
> > Is it reasonable to think the other IP block addresses for the
> > am3630/dm3730 would match the am35xx?
> > 
> > Currently in the OMAP3630, there are hwmods setup for AES and SHA
> > engines, but the rng uses the newer approach with ti,sysc and
> > sysc-omap2.
> > 
> > I tried to just copy the existing blocks to the other addresses, but I
> > got some errors. I assume it's due to hwmods.  It seems like we should
> > be able to convert the hwmods out, and add the additional addresses
> > for the omap36, but before I go too far, I want to know if it'll even
> > be possible.
> 
> All omap3 family should share identical address space for these IPs.

For configuring the accelerators, the dts entries needed should be
very similar to the other SoCs. AFAIK, there are no "ti,sysc-omap4"
compatible devices for omap3 though, and they should be configured
as "ti,sysc-omap2". I could be wrong though, but this can be seen
from the module revision register.

For omap3, you need to specify both "fck" and "ick" for the ti-sysc
config. Not sure what's up with the multiple addresses or instance,
it's best to check what works.

Regards,

Tony

  reply	other threads:[~2020-05-04 15:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 15:48 OMAP36 AES and SHA addresses and hwmods Adam Ford
2020-05-04  6:28 ` Tero Kristo
2020-05-04 15:06   ` Tony Lindgren [this message]
2020-05-04 23:06     ` Adam Ford
2020-05-05 15:43       ` Tony Lindgren

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=20200504150649.GI37466@atomide.com \
    --to=tony@atomide.com \
    --cc=aford173@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=t-kristo@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.