Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332669
b: refs/heads/master
c: c50c694
h: refs/heads/master
i:
  332667: 35caa26
v: v3
  • Loading branch information
Huang Shijie authored and David Woodhouse committed Jul 16, 2012
1 parent 7d0c4fe commit eeebf86
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: 44ed0ffdbc0e7ce2bd8954b79626df45d679d189
refs/heads/master: c50c69402ac24641da38c146796c199387b97f8d
4 changes: 4 additions & 0 deletions trunk/Documentation/devicetree/bindings/mtd/gpmi-nand.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Required properties:
- interrupt-names : The interrupt names "gpmi-dma", "bch";
- fsl,gpmi-dma-channel : Should contain the dma channel it uses.

Optional properties:
- nand-on-flash-bbt: boolean to enable on flash bbt option if not
present false

The device tree may optionally contain sub-nodes describing partitions of the
address space. See partition.txt for more detail.

Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/pinctrl/consumer.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_mtd.h>
#include "gpmi-nand.h"

/* add our owner bbt descriptor */
Expand Down Expand Up @@ -1502,6 +1503,8 @@ static int __devinit gpmi_nfc_init(struct gpmi_nand_data *this)
chip->ecc.size = 1;
chip->ecc.strength = 8;
chip->ecc.layout = &gpmi_hw_ecclayout;
if (of_get_nand_on_flash_bbt(this->dev->of_node))
chip->bbt_options |= NAND_BBT_USE_FLASH | NAND_BBT_NO_OOB;

/* Allocate a temporary DMA buffer for reading ID in the nand_scan() */
this->bch_geometry.payload_size = 1024;
Expand Down

0 comments on commit eeebf86

Please sign in to comment.