]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: gpmi: initialize the timing registers only one time
authorHuang Shijie <b32955@freescale.com>
Thu, 13 Sep 2012 06:58:00 +0000 (14:58 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:56:45 +0000 (15:56 +0100)
commit9c95f11b9e743aa6134134a6dcf866a9d5661972
tree2dcaf4c49693f03d6855136c77b8234072cb024c
parent995fbbf563fcec058a1135bdd112ac969c817e65
mtd: gpmi: initialize the timing registers only one time

The current code initializes the timing registers at very time
we call the gpmi_begin(). This really wastes the cpu cycles.

Add a new flag to let the gpmi driver initializes the timing registers
only one time.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/gpmi-nand/gpmi-lib.c
drivers/mtd/nand/gpmi-nand/gpmi-nand.h