qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Question regarding NAND emulation.
@ 2008-11-22  6:36 Dmitry Baryshkov
  2008-11-22 20:36 ` andrzej zaborowski
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Baryshkov @ 2008-11-22  6:36 UTC (permalink / raw)
  To: qemu-devel

Hi,

I have a question regarding NAND emulation. While simple NAND emulation
is easy, ECC stuff left me in uncertain state. In hw/spitz.c I saw some
balck magic regarding ecc.lp with shifts, ors etc. So, the question is:
if I'd like to implement HW ECC emulation for my NAND device, how should
I return ECC line and col parity bytes?

Thank you


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Question regarding NAND emulation.
  2008-11-22  6:36 [Qemu-devel] Question regarding NAND emulation Dmitry Baryshkov
@ 2008-11-22 20:36 ` andrzej zaborowski
  0 siblings, 0 replies; 2+ messages in thread
From: andrzej zaborowski @ 2008-11-22 20:36 UTC (permalink / raw)
  To: qemu-devel

2008/11/22 Dmitry Baryshkov <dbaryshkov@gmail.com>:
> Hi,
>
> I have a question regarding NAND emulation. While simple NAND emulation
> is easy, ECC stuff left me in uncertain state. In hw/spitz.c I saw some
> balck magic regarding ecc.lp with shifts, ors etc. So, the question is:
> if I'd like to implement HW ECC emulation for my NAND device, how should
> I return ECC line and col parity bytes?

It depends totally on the nand controller you emulate, but it can be
deduced from a linux driver for it.  Basically lp holds line parity
bits and cp the column parity, you'll see different black magic
applied in spitz.c and in onenand.c and in omap2.c and in
https://svn.openmoko.org/trunk/src/host/qemu-neo1973/hw/s3c2410.c

Cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-22 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-22  6:36 [Qemu-devel] Question regarding NAND emulation Dmitry Baryshkov
2008-11-22 20:36 ` andrzej zaborowski

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).