From 257671615b5a915e7fe5767990487bbccaf2b4a1 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 16 Mar 2015 07:39:52 +0000 Subject: lantiq: drop 3.14 support Signed-off-by: John Crispin SVN-Revision: 44812 --- ...S-lantiq-add-reset-controller-api-support.patch | 90 ---------------------- 1 file changed, 90 deletions(-) delete mode 100644 target/linux/lantiq/patches-3.14/0005-MIPS-lantiq-add-reset-controller-api-support.patch (limited to 'target/linux/lantiq/patches-3.14/0005-MIPS-lantiq-add-reset-controller-api-support.patch') diff --git a/target/linux/lantiq/patches-3.14/0005-MIPS-lantiq-add-reset-controller-api-support.patch b/target/linux/lantiq/patches-3.14/0005-MIPS-lantiq-add-reset-controller-api-support.patch deleted file mode 100644 index 31290195b8..0000000000 --- a/target/linux/lantiq/patches-3.14/0005-MIPS-lantiq-add-reset-controller-api-support.patch +++ /dev/null @@ -1,90 +0,0 @@ -From 223f1c46e109a8420765aee099a5d1dc4ab7ee98 Mon Sep 17 00:00:00 2001 -From: John Crispin -Date: Tue, 3 Sep 2013 13:18:12 +0200 -Subject: [PATCH 05/36] MIPS: lantiq: add reset-controller api support - -Add a reset-controller binding for the reset registers found on the lantiq -SoC. - -Signed-off-by: John Crispin ---- - arch/mips/lantiq/xway/reset.c | 61 +++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 61 insertions(+) - ---- a/arch/mips/lantiq/xway/reset.c -+++ b/arch/mips/lantiq/xway/reset.c -@@ -14,6 +14,7 @@ - #include - #include - #include -+#include - - #include - -@@ -113,6 +114,66 @@ void ltq_reset_once(unsigned int module, - ltq_rcu_w32(ltq_rcu_r32(RCU_RST_REQ) & ~module, RCU_RST_REQ); - } - -+static int ltq_assert_device(struct reset_controller_dev *rcdev, -+ unsigned long id) -+{ -+ u32 val; -+ -+ if (id < 8) -+ return -1; -+ -+ val = ltq_rcu_r32(RCU_RST_REQ); -+ val |= BIT(id); -+ ltq_rcu_w32(val, RCU_RST_REQ); -+ -+ return 0; -+} -+ -+static int ltq_deassert_device(struct reset_controller_dev *rcdev, -+ unsigned long id) -+{ -+ u32 val; -+ -+ if (id < 8) -+ return -1; -+ -+ val = ltq_rcu_r32(RCU_RST_REQ); -+ val &= ~BIT(id); -+ ltq_rcu_w32(val, RCU_RST_REQ); -+ -+ return 0; -+} -+ -+static int ltq_reset_device(struct reset_controller_dev *rcdev, -+ unsigned long id) -+{ -+ ltq_assert_device(rcdev, id); -+ return ltq_deassert_device(rcdev, id); -+} -+ -+static struct reset_control_ops reset_ops = { -+ .reset = ltq_reset_device, -+ .assert = ltq_assert_device, -+ .deassert = ltq_deassert_device, -+}; -+ -+static struct reset_controller_dev reset_dev = { -+ .ops = &reset_ops, -+ .owner = THIS_MODULE, -+ .nr_resets = 32, -+ .of_reset_n_cells = 1, -+}; -+ -+void ltq_rst_init(void) -+{ -+ reset_dev.of_node = of_find_compatible_node(NULL, NULL, -+ "lantiq,xway-reset"); -+ if (!reset_dev.of_node) -+ pr_err("Failed to find reset controller node"); -+ else -+ reset_controller_register(&reset_dev); -+} -+ - static void ltq_machine_restart(char *command) - { - local_irq_disable(); -- cgit v1.2.3