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 11:35:10 +03:00
|
|
|
# Generic, must be first because of soc_device_register()
|
|
|
|
obj-$(CONFIG_SOC_RENESAS) += renesas-soc.o
|
2016-11-14 21:37:08 +03:00
|
|
|
|
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 11:35:10 +03:00
|
|
|
# SoC
|
|
|
|
obj-$(CONFIG_SYSC_R8A7743) += r8a7743-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7745) += r8a7745-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7779) += r8a7779-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7790) += r8a7790-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7791) += r8a7791-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7792) += r8a7792-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7794) += r8a7794-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7795) += r8a7795-sysc.o
|
|
|
|
obj-$(CONFIG_SYSC_R8A7796) += r8a7796-sysc.o
|
2017-07-20 15:34:53 +03:00
|
|
|
obj-$(CONFIG_SYSC_R8A77995) += r8a77995-sysc.o
|
2016-05-27 12:56:53 +03:00
|
|
|
|
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 11:35:10 +03:00
|
|
|
# Family
|
|
|
|
obj-$(CONFIG_RST_RCAR) += rcar-rst.o
|
|
|
|
obj-$(CONFIG_SYSC_RCAR) += rcar-sysc.o
|