blob: 0a4cdcb4985b0061bc6641f59e664c1b94ac7dfc [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
SAN People73a59c12006-01-09 17:05:41 +00002/*
Andrew Victor9d041262007-02-05 11:42:07 +01003 * linux/arch/arm/mach-at91/generic.h
SAN People73a59c12006-01-09 17:05:41 +00004 *
5 * Copyright (C) 2005 David Brownell
SAN People73a59c12006-01-09 17:05:41 +00006 */
7
Maxime Ripard1bd59db2014-07-01 11:33:15 +02008#ifndef _AT91_GENERIC_H
9#define _AT91_GENERIC_H
10
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010011#ifdef CONFIG_PM
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010012extern void __init at91rm9200_pm_init(void);
Alexandre Belloni13469192017-02-01 23:43:03 +010013extern void __init at91sam9_pm_init(void);
Claudiu Beznea01c70312019-02-14 15:54:41 +000014extern void __init sam9x60_pm_init(void);
Alexandre Bellonifbc7edc2015-09-30 01:58:40 +020015extern void __init sama5_pm_init(void);
Alexandre Belloni24a0f5c2016-09-27 12:29:50 +020016extern void __init sama5d2_pm_init(void);
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010017#else
Arnd Bergmanna91c5822015-01-25 14:42:49 +010018static inline void __init at91rm9200_pm_init(void) { }
Alexandre Belloni13469192017-02-01 23:43:03 +010019static inline void __init at91sam9_pm_init(void) { }
Claudiu Beznea01c70312019-02-14 15:54:41 +000020static inline void __init sam9x60_pm_init(void) { }
Alexandre Bellonifbc7edc2015-09-30 01:58:40 +020021static inline void __init sama5_pm_init(void) { }
Alexandre Belloni24a0f5c2016-09-27 12:29:50 +020022static inline void __init sama5d2_pm_init(void) { }
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010023#endif
24
Maxime Ripard1bd59db2014-07-01 11:33:15 +020025#endif /* _AT91_GENERIC_H */