diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2017-09-22 15:57:12 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-10-07 23:13:22 +0200 |
commit | 19951bbf57da87093f7bde25bad41571fbdaf4d9 (patch) | |
tree | 459e3c2b49cfa9bf34e124b2e45e14849a29fc21 /target/linux/layerscape/patches-4.4/8037-ls1043a-Add-support-for-reset.patch | |
parent | e3f47958dd16137ea903ca3733435862d9f602ae (diff) | |
download | upstream-19951bbf57da87093f7bde25bad41571fbdaf4d9.tar.gz upstream-19951bbf57da87093f7bde25bad41571fbdaf4d9.tar.bz2 upstream-19951bbf57da87093f7bde25bad41571fbdaf4d9.zip |
layerscape: drop linux 4.4 support
This patch is to drop linux 4.4 for layerscape.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'target/linux/layerscape/patches-4.4/8037-ls1043a-Add-support-for-reset.patch')
-rw-r--r-- | target/linux/layerscape/patches-4.4/8037-ls1043a-Add-support-for-reset.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/layerscape/patches-4.4/8037-ls1043a-Add-support-for-reset.patch b/target/linux/layerscape/patches-4.4/8037-ls1043a-Add-support-for-reset.patch deleted file mode 100644 index bd2d90e9bc..0000000000 --- a/target/linux/layerscape/patches-4.4/8037-ls1043a-Add-support-for-reset.patch +++ /dev/null @@ -1,56 +0,0 @@ -From 5d7f8473e3472c16703bf5692d0b13f47d08c70a Mon Sep 17 00:00:00 2001 -From: Shaohui Xie <Shaohui.Xie@freescale.com> -Date: Fri, 22 Jan 2016 12:01:28 +0800 -Subject: [PATCH 37/70] ls1043a: Add support for reset - -The reset in ls1043a is similar to ls2085a, but accessed in big endian, -so we modify the existing driver to handle endianness, if driver probes -property 'big-endian' in DTS, driver works in big endian mode, -otherwise, driver works in little endian by default. - -Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> ---- - drivers/power/reset/ls-reboot.c | 18 +++++++++++++++--- - 1 file changed, 15 insertions(+), 3 deletions(-) - ---- a/drivers/power/reset/ls-reboot.c -+++ b/drivers/power/reset/ls-reboot.c -@@ -28,6 +28,7 @@ - struct ls_reboot_priv { - struct device *dev; - u32 *rstcr; -+ bool is_big_endian; - }; - - static struct ls_reboot_priv *ls_reboot_priv; -@@ -39,9 +40,15 @@ static void ls_reboot(enum reboot_mode r - unsigned long timeout; - - if (ls_reboot_priv) { -- val = readl(priv->rstcr); -- val |= 0x02; -- writel(val, priv->rstcr); -+ if (priv->is_big_endian) { -+ val = ioread32be(priv->rstcr); -+ val |= 0x02; -+ iowrite32be(val, priv->rstcr); -+ } else { -+ val = readl(priv->rstcr); -+ val |= 0x02; -+ writel(val, priv->rstcr); -+ } - } - - timeout = jiffies + HZ; -@@ -66,6 +73,11 @@ static int ls_reboot_probe(struct platfo - return -ENODEV; - } - -+ if (of_get_property(pdev->dev.of_node, "big-endian", NULL)) -+ ls_reboot_priv->is_big_endian = true; -+ else -+ ls_reboot_priv->is_big_endian = false; -+ - ls_reboot_priv->dev = &pdev->dev; - - arm_pm_restart = ls_reboot; |