sunxi: backport late clock fixes from 3.15
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 157-mach-add-new-wdtcompats-to-reboot-code.patch
1 From 30e5365b3ad3858bbdf40e8364c1e3260861b4e4 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Sun, 2 Feb 2014 14:55:24 +0100
4 Subject: [PATCH] ARM: sunxi: Add the new watchog compatibles to the reboot
5 code
6
7 Now that the watchdog driver has new compatibles, we need to support them in
8 the machine reboot code too.
9
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 ---
12 arch/arm/mach-sunxi/sunxi.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
16 index aeea6ce..c310df6 100644
17 --- a/arch/arm/mach-sunxi/sunxi.c
18 +++ b/arch/arm/mach-sunxi/sunxi.c
19 @@ -95,7 +95,9 @@ static void sun6i_restart(enum reboot_mode mode, const char *cmd)
20
21 static struct of_device_id sunxi_restart_ids[] = {
22 { .compatible = "allwinner,sun4i-wdt" },
23 + { .compatible = "allwinner,sun4i-a10-wdt" },
24 { .compatible = "allwinner,sun6i-wdt" },
25 + { .compatible = "allwinner,sun6i-a31-wdt" },
26 { /*sentinel*/ }
27 };
28