Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332771
b: refs/heads/master
c: e1ca95e
h: refs/heads/master
i:
  332769: 6b56b4a
  332767: b8ad64e
v: v3
  • Loading branch information
Huang Shijie authored and David Woodhouse committed Sep 29, 2012
1 parent 0ae58f4 commit 8021bcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 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: c50d35a9fdb628c5fcce5c2d4ab5ad9bedb2edb9
refs/heads/master: e1ca95e3a93c9a0392163a7a6791deda48b5eeca
15 changes: 5 additions & 10 deletions trunk/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,20 +516,15 @@ static int __devinit gpmi_get_clks(struct gpmi_nand_data *this)
r->clock[i] = clk;
}

if (GPMI_IS_MX6Q(this)) {
if (GPMI_IS_MX6Q(this))
/*
* Set the default values for the clocks in mx6q:
* The main clock(enfc) : 22MHz
* The others : 44.5MHz
* Set the default value for the gpmi clock in mx6q:
*
* These are just the default values. If you want to use
* the ONFI nand which is in the Synchronous Mode, you should
* change the clocks's frequencies as you need.
* If you want to use the ONFI nand which is in the
* Synchronous Mode, you should change the clock as you need.
*/
clk_set_rate(r->clock[0], 22000000);
for (i = 1; i < GPMI_CLK_MAX && r->clock[i]; i++)
clk_set_rate(r->clock[i], 44500000);
}

return 0;

err_clock:
Expand Down

0 comments on commit 8021bcc

Please sign in to comment.