From: Peter Graf <p.graf@itknet.de>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] SH7709A frequency control register
Date: Fri, 20 Apr 2001 07:13:00 -0000 [thread overview]
Message-ID: <3.0.5.32.20010420161734.00908b60@128.128.128.220> (raw)
Hi,
found a bug in the calculation of the value for the SH3 (SH7709A) FRQCR
register in
packages\hal\sh\sh3\current\include\mod_regs_cpg.h
#elif (CYGARC_SH_MOD_CPG == 3) // ---------------------------- V3
...
#elif (CYGHWR_HAL_SH_OOC_DIVIDER_2 == 6)
# define CYGARC_REG_FRQCR_INIT_DIVIDER2 0x2002
Should be 0x2001, at least for my configuration, which is
SH clock crystal: 11000000
SH clock PLL circuit 1: 3
SH clock PLL circuit 2: 4
SH clock divider 1: 1
SH clock divider 2: 6
SH clock mode: 1
Otherwise I get a crash, as soon as the code from platform.inc (derived
from the Hitachi SH7708 board) is executed.
BTW, setting the FRQCR out of the table just like all the other registers
(BCR2, BCR1, ...) might not be a very good idea. Hitachi demands special
treatment after changing this register. (eg. 20 uncached NOPs immediately
after the register write, or access to a peripheral module.)
Peter
reply other threads:[~2001-04-20 7:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3.0.5.32.20010420161734.00908b60@128.128.128.220 \
--to=p.graf@itknet.de \
--cc=ecos-discuss@sources.redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).