diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-12 17:52:20 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-12 17:52:20 +0200 |
commit | be83f982a71eb76288d011d6681739059d9a6ead (patch) | |
tree | 910ee25687f09cd9abc43202a1aad703f0092645 /target/linux/sunxi/patches-4.1/115-mtd-fetch-randomizer-mode.patch | |
parent | 930195737a0916d80ad2f7fe8b0f8fe4e4691762 (diff) | |
download | mtk-20170518-be83f982a71eb76288d011d6681739059d9a6ead.zip mtk-20170518-be83f982a71eb76288d011d6681739059d9a6ead.tar.gz mtk-20170518-be83f982a71eb76288d011d6681739059d9a6ead.tar.bz2 |
sunxi: delete old kernel versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/sunxi/patches-4.1/115-mtd-fetch-randomizer-mode.patch')
-rw-r--r-- | target/linux/sunxi/patches-4.1/115-mtd-fetch-randomizer-mode.patch | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/target/linux/sunxi/patches-4.1/115-mtd-fetch-randomizer-mode.patch b/target/linux/sunxi/patches-4.1/115-mtd-fetch-randomizer-mode.patch deleted file mode 100644 index f5dfba0..0000000 --- a/target/linux/sunxi/patches-4.1/115-mtd-fetch-randomizer-mode.patch +++ /dev/null @@ -1,80 +0,0 @@ -From eb7f9115409710732ebc4dfe1be629252280910e Mon Sep 17 00:00:00 2001 -From: Boris BREZILLON <boris.brezillon@free-electrons.com> -Date: Mon, 28 Jul 2014 14:47:04 +0200 -Subject: [PATCH] of: mtd: Add NAND randomizer mode retrieval - -Add a of_get_nand_rnd_mode() helper function. - -Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> -Signed-off-by: Hans de Goede <hdegoede@redhat.com> ---- - drivers/of/of_mtd.c | 35 +++++++++++++++++++++++++++++++++++ - include/linux/of_mtd.h | 6 ++++++ - 2 files changed, 41 insertions(+) - ---- a/drivers/of/of_mtd.c -+++ b/drivers/of/of_mtd.c -@@ -84,6 +84,41 @@ int of_get_nand_ecc_strength(struct devi - EXPORT_SYMBOL_GPL(of_get_nand_ecc_strength); - - /** -+ * It maps 'enum nand_rnd_modes_t' found in include/linux/mtd/nand.h -+ * into the device tree binding of 'nand-rnd', so that MTD -+ * device driver can get nand rnd from device tree. -+ */ -+static const char *nand_rnd_modes[] = { -+ [NAND_RND_NONE] = "none", -+ [NAND_RND_SOFT] = "soft", -+ [NAND_RND_HW] = "hw", -+}; -+ -+/** -+ * of_get_nand_rnd_mode - Get nand randomizer mode for given device_node -+ * @np: Pointer to the given device_node -+ * -+ * The function gets randomizer mode string from property 'nand-rnd-mode', -+ * and return its index in nand_rnd_modes table, or errno in error case. -+ */ -+int of_get_nand_rnd_mode(struct device_node *np) -+{ -+ const char *pm; -+ int err, i; -+ -+ err = of_property_read_string(np, "nand-rnd-mode", &pm); -+ if (err < 0) -+ return err; -+ -+ for (i = 0; i < ARRAY_SIZE(nand_rnd_modes); i++) -+ if (!strcasecmp(pm, nand_rnd_modes[i])) -+ return i; -+ -+ return -ENODEV; -+} -+EXPORT_SYMBOL_GPL(of_get_nand_rnd_mode); -+ -+/** - * of_get_nand_bus_width - Get nand bus witdh for given device_node - * @np: Pointer to the given device_node - * ---- a/include/linux/of_mtd.h -+++ b/include/linux/of_mtd.h -@@ -15,6 +15,7 @@ - int of_get_nand_ecc_mode(struct device_node *np); - int of_get_nand_ecc_step_size(struct device_node *np); - int of_get_nand_ecc_strength(struct device_node *np); -+int of_get_nand_rnd_mode(struct device_node *np); - int of_get_nand_bus_width(struct device_node *np); - bool of_get_nand_on_flash_bbt(struct device_node *np); - -@@ -34,6 +35,11 @@ static inline int of_get_nand_ecc_streng - { - return -ENOSYS; - } -+ -+static inline int of_get_nand_rnd_mode(struct device_node *np) -+{ -+ return -ENOSYS; -+} - - static inline int of_get_nand_bus_width(struct device_node *np) - { |