sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 270-2-wdt-sunxi-add-new-wdt-compats-into-reboot-code.patch
1 From b50ff681c8e3e9e408ee1fb6c6317bc8da653a01 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  
29 -- 
30 1.8.5.5
31