From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] questions regarding support for new command (getspr/setspr)
Date: Wed, 28 Jan 2004 10:20:09 +0100 [thread overview]
Message-ID: <20040128092015.05E2DC108D@atlas.denx.de> (raw)
In-Reply-To: Your message of "Tue, 27 Jan 2004 23:43:06 CST." <D8A54727-5154-11D8-A361-000393DBC2E8@motorola.com>
In message <D8A54727-5154-11D8-A361-000393DBC2E8@motorola.com> you wrote:
> I was wondering if it was considered useful to extend the
> CFG_CMD_SETGETDCR done by Erik Theisen for DCR registers on the 4xx
> family to all PowerPC products for SPRs (CFG_CMD_SETGETSPR).
That would be useful.
> 1. Is it ok that the command does not do any checking on the SPR
> number. This is quick difficult and would have to be done per
> processor since what SPRs exists is implementation specific. If the
> user gives the commands an SPR that does not exist the result is going
> to be some exception (is this ok)
IMHO only valid SPRs should be accepted. Yes, this requires processor
specific code.
> 2. What numerical format should the spr number for the command be taken
> in? My think is decimal
The format should be string (i. e. register NAME). For SPRs without a
name and/or alternatively a decimal number is ok. Without a register
name/number the "get" command should print all known SPR's on that
processor.
> 3. For setspr what numerical format should the spr value be taken in?
> My thinking is hex
Hex like all standard input data in U-Boot.
> 4. For getspr what numerical format should the spr be printed in? My
> thinking is hex
The register name should be string plus decimal number; the value
should be hex.
> If so, I will fixup my working patch and submit it once I get answers
> to the questions.
Thanks in advance.
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Ernest asks Frank how long he has been working for the company.
"Ever since they threatened to fire me."
prev parent reply other threads:[~2004-01-28 9:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-28 5:43 [U-Boot-Users] questions regarding support for new command (getspr/setspr) Kumar Gala
2004-01-28 9:20 ` Wolfgang Denk [this message]
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=20040128092015.05E2DC108D@atlas.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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.