Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339614
b: refs/heads/master
c: eb77b6a
h: refs/heads/master
v: v3
  • Loading branch information
Afzal Mohammed committed Oct 15, 2012
1 parent 66e5cef commit 722e370
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 4ea1e4ba7bec0a3d490a846376140643e4860536
refs/heads/master: eb77b6a78ac7f63985a3f592baf80ff33d213c48
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-omap2/gpmc-onenand.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ void __init gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data)
gpmc_onenand_data->flags |= ONENAND_SYNC_READ;
}

if (cpu_is_omap34xx())
gpmc_onenand_data->flags |= ONENAND_IN_OMAP34XX;
else
gpmc_onenand_data->flags &= ~ONENAND_IN_OMAP34XX;

err = gpmc_cs_request(gpmc_onenand_data->cs, ONENAND_IO_SIZE,
(unsigned long *)&gpmc_onenand_resource.start);
if (err < 0) {
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/platform_data/mtd-onenand-omap2.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#define ONENAND_SYNC_READ (1 << 0)
#define ONENAND_SYNC_READWRITE (1 << 1)
#define ONENAND_IN_OMAP34XX (1 << 2)

struct omap_onenand_platform_data {
int cs;
Expand Down

0 comments on commit 722e370

Please sign in to comment.