Message ID | 20240411115116.344595-1-sumit.garg@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | mach-snapdragon: Allow other board vendors apart from Qcom | expand |
Hi Sumit, On 11/04/2024 13:51, Sumit Garg wrote: > Qcom SoCs derived boards can come from various OEMs/ODMs and not just > Qcom itself. So allow CONFIG_SYS_VENDOR to be set correctly > corressponding to the actual board vendor. > > Suggested-by: Stephan Gerhold <stephan@gerhold.net> > Signed-off-by: Sumit Garg <sumit.garg@linaro.org> > --- > arch/arm/mach-snapdragon/Kconfig | 15 +++++++++------ > configs/dragonboard410c_defconfig | 1 + > configs/dragonboard820c_defconfig | 1 + > 3 files changed, 11 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig > index 96e44e2c549..4615a140d0d 100644 > --- a/arch/arm/mach-snapdragon/Kconfig > +++ b/arch/arm/mach-snapdragon/Kconfig > @@ -4,7 +4,11 @@ config SYS_SOC > default "snapdragon" > > config SYS_VENDOR > - default "qualcomm" Can you keep the default rather than adding it to the defconfig? With that Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> > + string "Snapdragon board vendor" > + help > + Allows to specify vendor for the Snapdragon SoCs based boards. > + Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> > + will be used as the custom board directory. > > config SYS_MALLOC_F_LEN > default 0x2000 > @@ -19,12 +23,11 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE > default 0x80000000 > > config SYS_BOARD > - string "Qualcomm custom board" > + string "Snapdragon SoCs based board" > help > - The Dragonboard 410c and 820c have additional board init > - code that isn't shared with other Qualcomm boards. > - Based on this option board/qualcomm/<CONFIG_SYS_BOARD> will > - be used. > + Allows to specify the Snapdragon SoCs based board name. > + Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> > + will be used as the custom board directory. > > config SYS_CONFIG_NAME > string "Board configuration name" > diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig > index 260a8349d3b..3b6f50307a3 100644 > --- a/configs/dragonboard410c_defconfig > +++ b/configs/dragonboard410c_defconfig > @@ -1,4 +1,5 @@ > CONFIG_ARM=y > +CONFIG_SYS_VENDOR="qualcomm" > CONFIG_SYS_BOARD="dragonboard410c" > CONFIG_COUNTER_FREQUENCY=19000000 > CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y > diff --git a/configs/dragonboard820c_defconfig b/configs/dragonboard820c_defconfig > index ebc80eb2a46..a795497ef5d 100644 > --- a/configs/dragonboard820c_defconfig > +++ b/configs/dragonboard820c_defconfig > @@ -1,4 +1,5 @@ > CONFIG_ARM=y > +CONFIG_SYS_VENDOR="qualcomm" > CONFIG_SYS_BOARD="dragonboard820c" > CONFIG_COUNTER_FREQUENCY=19000000 > CONFIG_ARCH_SNAPDRAGON=y
diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig index 96e44e2c549..4615a140d0d 100644 --- a/arch/arm/mach-snapdragon/Kconfig +++ b/arch/arm/mach-snapdragon/Kconfig @@ -4,7 +4,11 @@ config SYS_SOC default "snapdragon" config SYS_VENDOR - default "qualcomm" + string "Snapdragon board vendor" + help + Allows to specify vendor for the Snapdragon SoCs based boards. + Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> + will be used as the custom board directory. config SYS_MALLOC_F_LEN default 0x2000 @@ -19,12 +23,11 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE default 0x80000000 config SYS_BOARD - string "Qualcomm custom board" + string "Snapdragon SoCs based board" help - The Dragonboard 410c and 820c have additional board init - code that isn't shared with other Qualcomm boards. - Based on this option board/qualcomm/<CONFIG_SYS_BOARD> will - be used. + Allows to specify the Snapdragon SoCs based board name. + Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> + will be used as the custom board directory. config SYS_CONFIG_NAME string "Board configuration name" diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index 260a8349d3b..3b6f50307a3 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_SYS_VENDOR="qualcomm" CONFIG_SYS_BOARD="dragonboard410c" CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y diff --git a/configs/dragonboard820c_defconfig b/configs/dragonboard820c_defconfig index ebc80eb2a46..a795497ef5d 100644 --- a/configs/dragonboard820c_defconfig +++ b/configs/dragonboard820c_defconfig @@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_SYS_VENDOR="qualcomm" CONFIG_SYS_BOARD="dragonboard820c" CONFIG_COUNTER_FREQUENCY=19000000 CONFIG_ARCH_SNAPDRAGON=y
Qcom SoCs derived boards can come from various OEMs/ODMs and not just Qcom itself. So allow CONFIG_SYS_VENDOR to be set correctly corressponding to the actual board vendor. Suggested-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Sumit Garg <sumit.garg@linaro.org> --- arch/arm/mach-snapdragon/Kconfig | 15 +++++++++------ configs/dragonboard410c_defconfig | 1 + configs/dragonboard820c_defconfig | 1 + 3 files changed, 11 insertions(+), 6 deletions(-)