diff options
| author | Anup Patel <[email protected]> | 2022-08-08 09:34:14 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-08-08 09:34:14 +0530 |
| commit | d514a8f0dcc3a0a310bbbe33a6ab62d9e10adea8 (patch) | |
| tree | eae9a2f21f0e4d62402e8a6f11d23f241f1992da | |
| parent | 68d7b85ec75119787d7c672062de5d29156c44be (diff) | |
platform: generic: Use kconfig for enabling/disabling overrides
We update generic platform to use kconfig for enabling/disabling
platform overrides. We also enable all platform overrides in generic
platform defconfig.
Signed-off-by: Anup Patel <[email protected]>
Tested-by: Andrew Jones <[email protected]>
Acked-by: Atish Patra <[email protected]>
Tested-by: Atish Patra <[email protected]>
| -rw-r--r-- | platform/generic/Kconfig | 18 | ||||
| -rw-r--r-- | platform/generic/allwinner/objects.mk | 4 | ||||
| -rw-r--r-- | platform/generic/configs/defconfig | 3 | ||||
| -rw-r--r-- | platform/generic/sifive/objects.mk | 8 |
4 files changed, 27 insertions, 6 deletions
diff --git a/platform/generic/Kconfig b/platform/generic/Kconfig index c1a77b38..c76bd125 100644 --- a/platform/generic/Kconfig +++ b/platform/generic/Kconfig @@ -6,3 +6,21 @@ config PLATFORM_GENERIC select FDT_DOMAIN select FDT_PMU default y + +if PLATFORM_GENERIC + +config PLATFORM_ALLWINNER_D1 + bool "Allwinner D1 support" + depends on FDT_IRQCHIP_PLIC + default n + +config PLATFORM_SIFIVE_FU540 + bool "SiFive FU540 support" + default n + +config PLATFORM_SIFIVE_FU740 + bool "SiFive FU740 support" + depends on FDT_RESET && FDT_I2C + default n + +endif diff --git a/platform/generic/allwinner/objects.mk b/platform/generic/allwinner/objects.mk index 9e36ab6a..447cdf14 100644 --- a/platform/generic/allwinner/objects.mk +++ b/platform/generic/allwinner/objects.mk @@ -2,5 +2,5 @@ # SPDX-License-Identifier: BSD-2-Clause # -carray-platform_override_modules-y += sun20i_d1 -platform-objs-y += allwinner/sun20i-d1.o +carray-platform_override_modules-$(CONFIG_PLATFORM_ALLWINNER_D1) += sun20i_d1 +platform-objs-$(CONFIG_PLATFORM_ALLWINNER_D1) += allwinner/sun20i-d1.o diff --git a/platform/generic/configs/defconfig b/platform/generic/configs/defconfig index d56cef20..2a753940 100644 --- a/platform/generic/configs/defconfig +++ b/platform/generic/configs/defconfig @@ -1,3 +1,6 @@ +CONFIG_PLATFORM_ALLWINNER_D1=y +CONFIG_PLATFORM_SIFIVE_FU540=y +CONFIG_PLATFORM_SIFIVE_FU740=y CONFIG_FDT_GPIO=y CONFIG_FDT_GPIO_SIFIVE=y CONFIG_FDT_I2C=y diff --git a/platform/generic/sifive/objects.mk b/platform/generic/sifive/objects.mk index c17e2df1..d75e444a 100644 --- a/platform/generic/sifive/objects.mk +++ b/platform/generic/sifive/objects.mk @@ -2,8 +2,8 @@ # SPDX-License-Identifier: BSD-2-Clause # -carray-platform_override_modules-y += sifive_fu540 -platform-objs-y += sifive/fu540.o +carray-platform_override_modules-$(CONFIG_PLATFORM_SIFIVE_FU540) += sifive_fu540 +platform-objs-$(CONFIG_PLATFORM_SIFIVE_FU540) += sifive/fu540.o -carray-platform_override_modules-y += sifive_fu740 -platform-objs-y += sifive/fu740.o +carray-platform_override_modules-$(CONFIG_PLATFORM_SIFIVE_FU740) += sifive_fu740 +platform-objs-$(CONFIG_PLATFORM_SIFIVE_FU740) += sifive/fu740.o |
