Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372351
b: refs/heads/master
c: 32cde0b
h: refs/heads/master
i:
  372349: 570c3dd
  372347: 96fcae0
  372343: 3165533
  372335: bd08d9d
  372319: 68a67f3
  372287: 7e07a31
  372223: 06d7e41
v: v3
  • Loading branch information
Jon Hunter committed Apr 4, 2013
1 parent 201b477 commit f86af2f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 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: acc79980c92ca9e8a39115b60ca832718a8156df
refs/heads/master: 32cde0b5141030030f950a3c7e971018c81a9360
3 changes: 3 additions & 0 deletions trunk/Documentation/devicetree/bindings/mtd/gpmc-onenand.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Documentation/devicetree/bindings/bus/ti-gpmc.txt
Required properties:

- reg: The CS line the peripheral is connected to
- gpmc,device-width Width of the ONENAND device connected to the GPMC
in bytes. Must be 1 or 2.

Optional properties:

Expand All @@ -34,6 +36,7 @@ Example for an OMAP3430 board:

onenand@0 {
reg = <0 0 0>; /* CS0, offset 0 */
gpmc,device-width = <2>;

#address-cells = <1>;
#size-cells = <1>;
Expand Down
21 changes: 15 additions & 6 deletions trunk/arch/arm/mach-omap2/gpmc-onenand.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ static int omap2_onenand_setup_async(void __iomem *onenand_base)
struct gpmc_timings t;
int ret;

if (gpmc_onenand_data->of_node)
gpmc_read_settings_dt(gpmc_onenand_data->of_node,
&onenand_async);

omap2_onenand_set_async_mode(onenand_base);

omap2_onenand_calc_async_timings(&t);
Expand Down Expand Up @@ -300,12 +304,17 @@ static int omap2_onenand_setup_sync(void __iomem *onenand_base, int *freq_ptr)
set_onenand_cfg(onenand_base);
}

/*
* FIXME: Appears to be legacy code from initial ONENAND commit.
* Unclear what boards this is for and if this can be removed.
*/
if (!cpu_is_omap34xx())
onenand_sync.wait_on_read = true;
if (gpmc_onenand_data->of_node) {
gpmc_read_settings_dt(gpmc_onenand_data->of_node,
&onenand_sync);
} else {
/*
* FIXME: Appears to be legacy code from initial ONENAND commit.
* Unclear what boards this is for and if this can be removed.
*/
if (!cpu_is_omap34xx())
onenand_sync.wait_on_read = true;
}

omap2_onenand_calc_sync_timings(&t, gpmc_onenand_data->flags, freq);

Expand Down

0 comments on commit f86af2f

Please sign in to comment.