From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers/block/systemace: replaced in16/out16 with more common readw/writew macros
Date: Fri, 04 Jan 2013 11:22:18 +0100 [thread overview]
Message-ID: <20130104102218.0993F20008A@gemini.denx.de> (raw)
In-Reply-To: <CAML3pwXy7_FiVqJvgmm4-aHbspdY6BnMsZonYfzcw_hA9Fe_fw@mail.gmail.com>
Dear Alexey,
In message <CAML3pwXy7_FiVqJvgmm4-aHbspdY6BnMsZonYfzcw_hA9Fe_fw@mail.gmail.com> you wrote:
>
> but then do you think if there's any way to use some generic
> read/write routines?
For reference, please see section "KERNEL I/O BARRIER EFFECTS" in the
Linux kernel Documentation/memory-barriers.txt file. According to
that, we should strive to using ioreadX(), iowriteX() (and some kernel
hackers actually support such an oppinion) - however, there is little
support for thjis in existing code.
ARM traditionally tends to be using readX(), writeX(), at least on the
LE implmentamtions (I don't know what the BE variants do). PowerPC
has tradtitionally been using inX(), outX() resp. their explicit
counterparts in_leX() / in_beX() / out_leX() / out_beX(). These
functions are also available in ARM, and have been used for drivers
for IP blocks shared between SoCs of different architectures.
> The problem is we use ml509 board loaded with Synopsys DW ACR700 core
> and we need to access SystemACE CF-card controller (to boot Linux
> kernel mainly).
>
> Or should I just add conditional branch for ARC architecture?
Is there a need to change the driver at all? Can you not just provide
the needed inX(), outX() accessors for your architecture?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Why waste negative entropy on comments, when you could use the same
entropy to create bugs instead?" - Steve Elias
next prev parent reply other threads:[~2013-01-04 10:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-02 15:06 [U-Boot] [PATCH] drivers/block/systemace: replaced in16/out16 with more common readw/writew macros Alexey Brodkin
2013-01-02 15:19 ` Michal Simek
2013-01-02 20:23 ` Wolfgang Denk
2013-01-03 11:35 ` Алексей Бродкин
2013-01-03 12:05 ` Wolfgang Denk
[not found] ` <CAML3pwX=dfC4vfRfg-Rft5Xuem7q4-7VjtmySvitzWzY3z8JBg@mail.gmail.com>
2013-01-03 12:37 ` Wolfgang Denk
2013-01-04 9:29 ` Алексей Бродкин
2013-01-04 10:22 ` Wolfgang Denk [this message]
2013-01-03 13:03 ` Michal Simek
2013-01-03 13:38 ` Wolfgang Denk
2013-01-03 13:53 ` Michal Simek
2013-01-03 14:37 ` Wolfgang Denk
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=20130104102218.0993F20008A@gemini.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.