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 15:35:10 +07:00
|
|
|
config SOC_RENESAS
|
|
|
|
bool "Renesas SoC driver support" if COMPILE_TEST && !ARCH_RENESAS
|
|
|
|
default y if ARCH_RENESAS
|
|
|
|
select SOC_BUS
|
|
|
|
select RST_RCAR if ARCH_RCAR_GEN1 || ARCH_RCAR_GEN2 || \
|
2018-02-20 22:12:04 +07:00
|
|
|
ARCH_R8A7795 || ARCH_R8A7796 || ARCH_R8A77965 || \
|
2018-04-11 16:36:26 +07:00
|
|
|
ARCH_R8A77970 || ARCH_R8A77980 || ARCH_R8A77990 || \
|
|
|
|
ARCH_R8A77995
|
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 15:35:10 +07:00
|
|
|
select SYSC_R8A7743 if ARCH_R8A7743
|
|
|
|
select SYSC_R8A7745 if ARCH_R8A7745
|
2018-03-29 02:26:09 +07:00
|
|
|
select SYSC_R8A77470 if ARCH_R8A77470
|
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 15:35:10 +07:00
|
|
|
select SYSC_R8A7779 if ARCH_R8A7779
|
|
|
|
select SYSC_R8A7790 if ARCH_R8A7790
|
|
|
|
select SYSC_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
|
|
|
|
select SYSC_R8A7792 if ARCH_R8A7792
|
|
|
|
select SYSC_R8A7794 if ARCH_R8A7794
|
|
|
|
select SYSC_R8A7795 if ARCH_R8A7795
|
|
|
|
select SYSC_R8A7796 if ARCH_R8A7796
|
2018-02-20 22:12:06 +07:00
|
|
|
select SYSC_R8A77965 if ARCH_R8A77965
|
2017-09-13 03:37:20 +07:00
|
|
|
select SYSC_R8A77970 if ARCH_R8A77970
|
2018-02-17 01:28:02 +07:00
|
|
|
select SYSC_R8A77980 if ARCH_R8A77980
|
2018-05-15 19:07:38 +07:00
|
|
|
select SYSC_R8A77990 if ARCH_R8A77990
|
2017-07-20 19:34:53 +07:00
|
|
|
select SYSC_R8A77995 if ARCH_R8A77995
|
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 15:35:10 +07:00
|
|
|
|
|
|
|
if SOC_RENESAS
|
|
|
|
|
|
|
|
# SoC
|
|
|
|
config SYSC_R8A7743
|
|
|
|
bool "RZ/G1M System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7745
|
|
|
|
bool "RZ/G1E System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
2018-03-29 02:26:09 +07:00
|
|
|
config SYSC_R8A77470
|
|
|
|
bool "RZ/G1C System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
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 15:35:10 +07:00
|
|
|
config SYSC_R8A7779
|
|
|
|
bool "R-Car H1 System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7790
|
|
|
|
bool "R-Car H2 System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7791
|
|
|
|
bool "R-Car M2-W/N System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7792
|
|
|
|
bool "R-Car V2H System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7794
|
|
|
|
bool "R-Car E2 System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7795
|
|
|
|
bool "R-Car H3 System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
|
|
|
config SYSC_R8A7796
|
|
|
|
bool "R-Car M3-W System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
2018-02-20 22:12:06 +07:00
|
|
|
config SYSC_R8A77965
|
|
|
|
bool "R-Car M3-N System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
2017-09-13 03:37:20 +07:00
|
|
|
config SYSC_R8A77970
|
|
|
|
bool "R-Car V3M System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
2018-02-17 01:28:02 +07:00
|
|
|
config SYSC_R8A77980
|
|
|
|
bool "R-Car V3H System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
2018-05-15 19:07:38 +07:00
|
|
|
config SYSC_R8A77990
|
|
|
|
bool "R-Car E3 System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
2017-07-20 19:34:53 +07:00
|
|
|
config SYSC_R8A77995
|
|
|
|
bool "R-Car D3 System Controller support" if COMPILE_TEST
|
|
|
|
select SYSC_RCAR
|
|
|
|
|
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 15:35:10 +07:00
|
|
|
# Family
|
|
|
|
config RST_RCAR
|
|
|
|
bool "R-Car Reset Controller support" if COMPILE_TEST
|
|
|
|
|
|
|
|
config SYSC_RCAR
|
|
|
|
bool "R-Car System Controller support" if COMPILE_TEST
|
|
|
|
|
|
|
|
endif # SOC_RENESAS
|