summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/gpmi-nand/gpmi-nand.h
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2017-04-21 18:23:34 -0700
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-06-01 10:09:25 +0200
commit6b7ee72149a4a6963e361c5324cea2961f17989a (patch)
treedcd30dd3a1139981a8aac836f2732cba9fc60bbd /drivers/mtd/nand/gpmi-nand/gpmi-nand.h
parent086567f12e1188c57e061a53825a5eff5a7923a0 (diff)
downloadblackbird-op-linux-6b7ee72149a4a6963e361c5324cea2961f17989a.tar.gz
blackbird-op-linux-6b7ee72149a4a6963e361c5324cea2961f17989a.zip
mtd: nand: gpmi: unify clock handling
Add device specific list of clocks required, and handle all clocks in a single for loop. This avoids further code duplication when adding i.MX 7 support. Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/gpmi-nand/gpmi-nand.h')
-rw-r--r--drivers/mtd/nand/gpmi-nand/gpmi-nand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.h b/drivers/mtd/nand/gpmi-nand/gpmi-nand.h
index 4e49a1f5fa27..8879c4eff25e 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.h
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.h
@@ -130,6 +130,8 @@ struct gpmi_devdata {
enum gpmi_type type;
int bch_max_ecc_strength;
int max_chain_delay; /* See the async EDO mode */
+ const char * const *clks;
+ const int clks_count;
};
struct gpmi_nand_data {
OpenPOWER on IntegriCloud