]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/of/of_mtd.c
of/mtd/nand: add generic binding and helper for NAND_BBT_NO_OOB_BBM
[karo-tx-linux.git] / drivers / of / of_mtd.c
index b7361ed705375e6e49dbfde3bd9d7fce4f0c97a2..d947acc0dd814281b9de9b92d5dad77ead4fe3c5 100644 (file)
@@ -117,3 +117,15 @@ bool of_get_nand_on_flash_bbt(struct device_node *np)
        return of_property_read_bool(np, "nand-on-flash-bbt");
 }
 EXPORT_SYMBOL_GPL(of_get_nand_on_flash_bbt);
+
+/**
+ * of_get_nand_no_oob_bbm - Get nand no oob bbm for given device_node
+ * @np:        Pointer to the given device_node
+ *
+ * return true if present, false otherwise
+ */
+bool of_get_nand_no_oob_bbm(struct device_node *np)
+{
+       return of_property_read_bool(np, "nand-no-oob-bbm");
+}
+EXPORT_SYMBOL_GPL(of_get_nand_no_oob_bbm);