mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 01:59:57 +07:00
bc27360b3c
Changes from v1->v2:
Add 'select RESET_CONTROLLER' under COMMON_CLK_MEDIATEK and enable
reset.c to be built when COMMON_CLK_MEDIATEK is selected. That should
be quite reasonable because the reset controller is tightly embedded
inside and exported from these clock subsystems. At least it can be found
on infracfg and pericfg subsystem that both are really fundamental block
lots of devices must depend on.
commit 74cb0d6dde
("clk: mediatek: fixup test-building of MediaTek clock
drivers") can let the build system looking into the directory where the
clock drivers resides and then allow test-building the drivers.
But the change also gives rise to certain incorrect behavior which is
reset.c being built even not depending on either COMPILE_TEST or
ARCH_MEDIATEK alternative dependency. To get rid of reset.c being built
unexpectedly on the other platforms, it would be a good change that the
file should be built depending on its own specific configuration rather
than just on generic RESET_CONTROLLER one.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
185 lines
5.4 KiB
Plaintext
185 lines
5.4 KiB
Plaintext
#
|
|
# MediaTek Clock Drivers
|
|
#
|
|
menu "Clock driver for MediaTek SoC"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
|
|
config COMMON_CLK_MEDIATEK
|
|
bool
|
|
select RESET_CONTROLLER
|
|
---help---
|
|
MediaTek SoCs' clock support.
|
|
|
|
config COMMON_CLK_MT2701
|
|
bool "Clock driver for MediaTek MT2701"
|
|
depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
|
|
select COMMON_CLK_MEDIATEK
|
|
default ARCH_MEDIATEK && ARM
|
|
---help---
|
|
This driver supports MediaTek MT2701 basic clocks.
|
|
|
|
config COMMON_CLK_MT2701_MMSYS
|
|
bool "Clock driver for MediaTek MT2701 mmsys"
|
|
depends on COMMON_CLK_MT2701
|
|
---help---
|
|
This driver supports MediaTek MT2701 mmsys clocks.
|
|
|
|
config COMMON_CLK_MT2701_IMGSYS
|
|
bool "Clock driver for MediaTek MT2701 imgsys"
|
|
depends on COMMON_CLK_MT2701
|
|
---help---
|
|
This driver supports MediaTek MT2701 imgsys clocks.
|
|
|
|
config COMMON_CLK_MT2701_VDECSYS
|
|
bool "Clock driver for MediaTek MT2701 vdecsys"
|
|
depends on COMMON_CLK_MT2701
|
|
---help---
|
|
This driver supports MediaTek MT2701 vdecsys clocks.
|
|
|
|
config COMMON_CLK_MT2701_HIFSYS
|
|
bool "Clock driver for MediaTek MT2701 hifsys"
|
|
depends on COMMON_CLK_MT2701
|
|
---help---
|
|
This driver supports MediaTek MT2701 hifsys clocks.
|
|
|
|
config COMMON_CLK_MT2701_ETHSYS
|
|
bool "Clock driver for MediaTek MT2701 ethsys"
|
|
depends on COMMON_CLK_MT2701
|
|
---help---
|
|
This driver supports MediaTek MT2701 ethsys clocks.
|
|
|
|
config COMMON_CLK_MT2701_BDPSYS
|
|
bool "Clock driver for MediaTek MT2701 bdpsys"
|
|
depends on COMMON_CLK_MT2701
|
|
---help---
|
|
This driver supports MediaTek MT2701 bdpsys clocks.
|
|
|
|
config COMMON_CLK_MT2712
|
|
bool "Clock driver for MediaTek MT2712"
|
|
depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
|
|
select COMMON_CLK_MEDIATEK
|
|
default ARCH_MEDIATEK && ARM64
|
|
---help---
|
|
This driver supports MediaTek MT2712 basic clocks.
|
|
|
|
config COMMON_CLK_MT2712_BDPSYS
|
|
bool "Clock driver for MediaTek MT2712 bdpsys"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 bdpsys clocks.
|
|
|
|
config COMMON_CLK_MT2712_IMGSYS
|
|
bool "Clock driver for MediaTek MT2712 imgsys"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 imgsys clocks.
|
|
|
|
config COMMON_CLK_MT2712_JPGDECSYS
|
|
bool "Clock driver for MediaTek MT2712 jpgdecsys"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 jpgdecsys clocks.
|
|
|
|
config COMMON_CLK_MT2712_MFGCFG
|
|
bool "Clock driver for MediaTek MT2712 mfgcfg"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 mfgcfg clocks.
|
|
|
|
config COMMON_CLK_MT2712_MMSYS
|
|
bool "Clock driver for MediaTek MT2712 mmsys"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 mmsys clocks.
|
|
|
|
config COMMON_CLK_MT2712_VDECSYS
|
|
bool "Clock driver for MediaTek MT2712 vdecsys"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 vdecsys clocks.
|
|
|
|
config COMMON_CLK_MT2712_VENCSYS
|
|
bool "Clock driver for MediaTek MT2712 vencsys"
|
|
depends on COMMON_CLK_MT2712
|
|
---help---
|
|
This driver supports MediaTek MT2712 vencsys clocks.
|
|
|
|
config COMMON_CLK_MT6797
|
|
bool "Clock driver for MediaTek MT6797"
|
|
depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
|
|
select COMMON_CLK_MEDIATEK
|
|
default ARCH_MEDIATEK && ARM64
|
|
---help---
|
|
This driver supports MediaTek MT6797 basic clocks.
|
|
|
|
config COMMON_CLK_MT6797_MMSYS
|
|
bool "Clock driver for MediaTek MT6797 mmsys"
|
|
depends on COMMON_CLK_MT6797
|
|
---help---
|
|
This driver supports MediaTek MT6797 mmsys clocks.
|
|
|
|
config COMMON_CLK_MT6797_IMGSYS
|
|
bool "Clock driver for MediaTek MT6797 imgsys"
|
|
depends on COMMON_CLK_MT6797
|
|
---help---
|
|
This driver supports MediaTek MT6797 imgsys clocks.
|
|
|
|
config COMMON_CLK_MT6797_VDECSYS
|
|
bool "Clock driver for MediaTek MT6797 vdecsys"
|
|
depends on COMMON_CLK_MT6797
|
|
---help---
|
|
This driver supports MediaTek MT6797 vdecsys clocks.
|
|
|
|
config COMMON_CLK_MT6797_VENCSYS
|
|
bool "Clock driver for MediaTek MT6797 vencsys"
|
|
depends on COMMON_CLK_MT6797
|
|
---help---
|
|
This driver supports MediaTek MT6797 vencsys clocks.
|
|
|
|
config COMMON_CLK_MT7622
|
|
bool "Clock driver for MediaTek MT7622"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
select COMMON_CLK_MEDIATEK
|
|
default ARCH_MEDIATEK
|
|
---help---
|
|
This driver supports MediaTek MT7622 basic clocks and clocks
|
|
required for various periperals found on MediaTek.
|
|
|
|
config COMMON_CLK_MT7622_ETHSYS
|
|
bool "Clock driver for MediaTek MT7622 ETHSYS"
|
|
depends on COMMON_CLK_MT7622
|
|
---help---
|
|
This driver add support for clocks for Ethernet and SGMII
|
|
required on MediaTek MT7622 SoC.
|
|
|
|
config COMMON_CLK_MT7622_HIFSYS
|
|
bool "Clock driver for MediaTek MT7622 HIFSYS"
|
|
depends on COMMON_CLK_MT7622
|
|
---help---
|
|
This driver supports MediaTek MT7622 HIFSYS clocks providing
|
|
to PCI-E and USB.
|
|
|
|
config COMMON_CLK_MT7622_AUDSYS
|
|
bool "Clock driver for MediaTek MT7622 AUDSYS"
|
|
depends on COMMON_CLK_MT7622
|
|
---help---
|
|
This driver supports MediaTek MT7622 AUDSYS clocks providing
|
|
to audio consumers such as I2S and TDM.
|
|
|
|
config COMMON_CLK_MT8135
|
|
bool "Clock driver for MediaTek MT8135"
|
|
depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
|
|
select COMMON_CLK_MEDIATEK
|
|
default ARCH_MEDIATEK && ARM
|
|
---help---
|
|
This driver supports MediaTek MT8135 clocks.
|
|
|
|
config COMMON_CLK_MT8173
|
|
bool "Clock driver for MediaTek MT8173"
|
|
depends on ARCH_MEDIATEK || COMPILE_TEST
|
|
select COMMON_CLK_MEDIATEK
|
|
default ARCH_MEDIATEK
|
|
---help---
|
|
This driver supports MediaTek MT8173 clocks.
|
|
endmenu
|