* 2.6.10 nand driver -- drivers/mtd/nand/au1550nd.c
@ 2005-04-18 14:26 carl liao
0 siblings, 0 replies; only message in thread
From: carl liao @ 2005-04-18 14:26 UTC (permalink / raw)
To: linux mtd
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!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-18 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-18 14:26 2.6.10 nand driver -- drivers/mtd/nand/au1550nd.c carl liao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox