diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-03-11 13:26:41 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-11 22:17:43 +0100 |
commit | e857ff509b43e07eb30b48f283b40ea7dfbde068 (patch) | |
tree | 99890c1186213be91081b3a4f6353f1a069c8241 /include/mfd | |
parent | e7123ebafd08bf358cf087b3c63e1f1b467804a0 (diff) | |
download | barebox-e857ff509b43e07eb30b48f283b40ea7dfbde068.tar.gz barebox-e857ff509b43e07eb30b48f283b40ea7dfbde068.tar.xz |
Add system controller register driver (SYSCON)
This patch adds support for system controller register driver (SYSCON).
Code taken from Linux Kernel and adapted for using in barebox.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mfd')
-rw-r--r-- | include/mfd/syscon.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/mfd/syscon.h b/include/mfd/syscon.h new file mode 100644 index 0000000000..68432b7fe4 --- /dev/null +++ b/include/mfd/syscon.h @@ -0,0 +1,26 @@ +/* System Control Driver + * + * Based on linux driver by: + * Copyright (C) 2012 Freescale Semiconductor, Inc. + * Copyright (C) 2012 Linaro Ltd. + * Author: Dong Aisheng <dong.aisheng@linaro.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __MFD_SYSCON_H__ +#define __MFD_SYSCON_H__ + +#ifdef CONFIG_MFD_SYSCON +void __iomem *syscon_base_lookup_by_pdevname(const char *); +#else +static inline void __iomem *syscon_base_lookup_by_pdevname(const char *) +{ + return NULL; +} +#endif + +#endif |