public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "carl liao" <carlliao@21cn.com>
To: "linux mtd" <linux-mtd@lists.infradead.org>
Subject: 2.6.10 nand driver -- drivers/mtd/nand/au1550nd.c
Date: Mon, 18 Apr 2005 22:26:04 +0800	[thread overview]
Message-ID: <d3949581777141.19232@send5.inner-21cn.com> (raw)

I am confused by the codes in 2.6.10 nand driver drivers/mtd/nand/au1550nd.c:

407:	au_writel((1<<28) | (NAND_PHYS_ADDR>>4) | 
408:			(((NAND_PHYS_ADDR + 0x1000)-1) & (0x3fff<<18)>>18), 
409:			MEM_STADDR1); 
410:	au_sync();
411:
412:	p_nand = ioremap(NAND_PHYS_ADDR, 0x1000);        

I think it should be like the following assuming 4KB NAND:
		au_writel((1<<28) | (NAND_PHYS_ADDR>>4) | 
				(~(0x1000-1) & (0x3fff<<18) >> 18), 
				MEM_STADDR1); 

Could someone give me a hint? Thanks!

                 reply	other threads:[~2005-04-18 14:27 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=d3949581777141.19232@send5.inner-21cn.com \
    --to=carlliao@21cn.com \
    --cc=linux-mtd@lists.infradead.org \
    /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