of_mtd.h 454 B

1234567891011121314151617181920
  1. /*
  2. * Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  3. *
  4. * OF helpers for mtd.
  5. *
  6. * This file is released under the GPLv2
  7. */
  8. #ifndef __LINUX_OF_MTD_H
  9. #define __LINUX_OF_NET_H
  10. #ifdef CONFIG_OF_MTD
  11. #include <linux/of.h>
  12. extern const int of_get_nand_ecc_mode(struct device_node *np);
  13. int of_get_nand_bus_width(struct device_node *np);
  14. bool of_get_nand_on_flash_bbt(struct device_node *np);
  15. #endif
  16. #endif /* __LINUX_OF_MTD_H */