Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360358
b: refs/heads/master
c: f722689
h: refs/heads/master
v: v3
  • Loading branch information
Huang Shijie authored and Artem Bityutskiy committed Feb 4, 2013
1 parent 3e039b6 commit b20abeb
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 54cccc70946c7fc15eb9a930935ccba1f7e4599e
refs/heads/master: f722689346afc1a0ed3fec8372c1762b6edc0c72
2 changes: 2 additions & 0 deletions trunk/drivers/mtd/nand/gpmi-nand/bch-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@
? (((v) >> 2) & MX6Q_BM_BCH_FLASH0LAYOUT1_DATAN_SIZE) \
: ((v) & BM_BCH_FLASH0LAYOUT1_DATAN_SIZE) \
)

#define HW_BCH_VERSION 0x00000160
#endif
5 changes: 5 additions & 0 deletions trunk/drivers/mtd/nand/gpmi-nand/gpmi-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ void gpmi_dump_info(struct gpmi_nand_data *this)
}

/* start to print out the BCH info */
pr_err("Show BCH registers :\n");
for (i = 0; i <= HW_BCH_VERSION / 0x10 + 1; i++) {
reg = readl(r->bch_regs + i * 0x10);
pr_err("offset 0x%.3x : 0x%.8x\n", i * 0x10, reg);
}
pr_err("BCH Geometry :\n");
pr_err("GF length : %u\n", geo->gf_len);
pr_err("ECC Strength : %u\n", geo->ecc_strength);
Expand Down

0 comments on commit b20abeb

Please sign in to comment.