platform: generic: Use kconfig to set platform version and default name

The generic platform version and default name should be set based
on kconfig options so that users can override it.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Tested-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
This commit is contained in:
Anup Patel
2022-08-08 09:34:20 +05:30
committed by Anup Patel
parent d514a8f0dc
commit bc317a378f
2 changed files with 18 additions and 2 deletions

View File

@@ -9,6 +9,20 @@ config PLATFORM_GENERIC
if PLATFORM_GENERIC
config PLATFORM_GENERIC_NAME
string "Platform default name"
default "Generic"
config PLATFORM_GENERIC_MAJOR_VER
int "Platform major version"
range 0 65535
default 0
config PLATFORM_GENERIC_MINOR_VER
int "Platform minor version"
range 0 65535
default 1
config PLATFORM_ALLWINNER_D1
bool "Allwinner D1 support"
depends on FDT_IRQCHIP_PLIC