2016-05-27 17:56:53 +08:00
|
|
|
#ifndef __LINUX_SOC_RENESAS_RCAR_RST_H__
|
|
|
|
#define __LINUX_SOC_RENESAS_RCAR_RST_H__
|
|
|
|
|
soc: renesas: Rework Kconfig and Makefile logic
The goals are to:
- Allow precise control over and automatic selection of which
(sub)drivers are used for which SoC,
- Allow adding support for new SoCs easily,
- Allow compile-testing of all (sub)drivers,
- Keep driver selection logic in the subsystem-specific Kconfig,
independent from the architecture-specific Kconfig (i.e. no "select"
from arch/arm64/Kconfig.platforms), to avoid dependencies.
This is implemented by:
- Introducing Kconfig symbols for all drivers and sub-drivers,
- Introducing the Kconfig symbol SOC_RENESAS, which is enabled
automatically when building for a Renesas ARM platform, and which
enables all required drivers without interaction of the user, based
on SoC-specific ARCH_* symbols,
- Allowing the user to enable any Kconfig symbol manually if
COMPILE_TEST is enabled,
- Using the new Kconfig symbols instead of the ARCH_* symbols to
control compilation in the Makefile,
- Always entering drivers/soc/renesas/ during the build.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2017-05-19 16:35:10 +08:00
|
|
|
#ifdef CONFIG_RST_RCAR
|
2016-05-27 17:56:53 +08:00
|
|
|
int rcar_rst_read_mode_pins(u32 *mode);
|
2017-04-26 01:36:25 +08:00
|
|
|
#else
|
|
|
|
static inline int rcar_rst_read_mode_pins(u32 *mode) { return -ENODEV; }
|
|
|
|
#endif
|
2016-05-27 17:56:53 +08:00
|
|
|
|
|
|
|
#endif /* __LINUX_SOC_RENESAS_RCAR_RST_H__ */
|