Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360346
b: refs/heads/master
c: a8459f2
h: refs/heads/master
v: v3
  • Loading branch information
Roman Schneider authored and Artem Bityutskiy committed Feb 4, 2013
1 parent e2f56f2 commit e4dd30a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 972e1b7b450a93589b2a4c709e68f68da059aa5c
refs/heads/master: a8459f21ed48fc366ad49ce9828f6bbb1cfac9a9
11 changes: 11 additions & 0 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,23 @@ static void send_page_v1(struct mtd_info *mtd, unsigned int ops)

static void send_read_id_v3(struct mxc_nand_host *host)
{
struct nand_chip *this = &host->nand;

/* Read ID into main buffer */
writel(NFC_ID, NFC_V3_LAUNCH);

wait_op_done(host, true);

memcpy32_fromio(host->data_buf, host->main_area0, 16);

if (this->options & NAND_BUSWIDTH_16) {
/* compress the ID info */
host->data_buf[1] = host->data_buf[2];
host->data_buf[2] = host->data_buf[4];
host->data_buf[3] = host->data_buf[6];
host->data_buf[4] = host->data_buf[8];
host->data_buf[5] = host->data_buf[10];
}
}

/* Request the NANDFC to perform a read of the NAND device ID. */
Expand Down

0 comments on commit e4dd30a

Please sign in to comment.