Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242771
b: refs/heads/master
c: c93ff6b
h: refs/heads/master
i:
  242769: 36cacbd
  242767: c275644
v: v3
  • Loading branch information
Roman Tereshonkov authored and David Woodhouse committed Mar 11, 2011
1 parent 464895e commit 4093e18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3dcfd35244e1cb8dc8dfa5c05013b133dbb437a
refs/heads/master: c93ff6bf16523d33e991a1fadde1b8d63eb7cd2c
1 change: 1 addition & 0 deletions trunk/arch/arm/plat-omap/include/plat/onenand.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct omap_onenand_platform_data {
int dma_channel;
u8 flags;
u8 regulator_can_sleep;
u8 skip_initial_unlocking;
};

#define ONENAND_MAX_PARTITIONS 8
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/onenand/omap2.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev)
{
struct omap_onenand_platform_data *pdata;
struct omap2_onenand *c;
struct onenand_chip *this;
int r;

pdata = pdev->dev.platform_data;
Expand Down Expand Up @@ -728,9 +729,8 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev)

c->mtd.dev.parent = &pdev->dev;

this = &c->onenand;
if (c->dma_channel >= 0) {
struct onenand_chip *this = &c->onenand;

this->wait = omap2_onenand_wait;
if (cpu_is_omap34xx()) {
this->read_bufferram = omap3_onenand_read_bufferram;
Expand All @@ -751,6 +751,9 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev)
c->onenand.disable = omap2_onenand_disable;
}

if (pdata->skip_initial_unlocking)
this->options |= ONENAND_SKIP_INITIAL_UNLOCKING;

if ((r = onenand_scan(&c->mtd, 1)) < 0)
goto err_release_regulator;

Expand Down

0 comments on commit 4093e18

Please sign in to comment.