Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / arm / mach-shmobile / pm-r8a7779.c
blob5c9a93f5e650181a6e4684f4aded5e2144eff609
1 /*
2 * r8a7779 Power management support
4 * Copyright (C) 2011 Renesas Solutions Corp.
5 * Copyright (C) 2011 Magnus Damm
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
12 #include <linux/soc/renesas/rcar-sysc.h>
14 #include <asm/io.h>
16 #include "r8a7779.h"
18 /* SYSC */
19 #define SYSCIER 0x0c
20 #define SYSCIMR 0x10
22 #if defined(CONFIG_PM) || defined(CONFIG_SMP)
24 static void __init r8a7779_sysc_init(void)
26 rcar_sysc_init(0xffd85000, 0x0131000e);
29 #else /* CONFIG_PM || CONFIG_SMP */
31 static inline void r8a7779_sysc_init(void) {}
33 #endif /* CONFIG_PM || CONFIG_SMP */
35 void __init r8a7779_pm_init(void)
37 static int once;
39 if (!once++)
40 r8a7779_sysc_init();