All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] sunxi: Make SYS_VENDOR, SYS_BOARD, SYS_CONFIG_NAME configurable
@ 2022-04-21  3:32 qianfanguijin
  2022-04-26 12:49 ` Andre Przywara
  0 siblings, 1 reply; 5+ messages in thread
From: qianfanguijin @ 2022-04-21  3:32 UTC (permalink / raw)
  To: u-boot; +Cc: Jagan Teki, Andre Przywara, qianfan Zhao

From: qianfan Zhao <qianfanguijin@163.com>

The board is not configurable if use sunxi soc. Add Kconfig items and
make custom board available.

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
---
 arch/arm/mach-sunxi/Kconfig | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 2c18cf02d1..03460870db 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -598,6 +598,7 @@ config SYS_CLK_FREQ
 	default 1008000000 if MACH_SUN50I_H616
 
 config SYS_CONFIG_NAME
+	string "Board configuration name"
 	default "sun4i" if MACH_SUN4I
 	default "sun5i" if MACH_SUN5I
 	default "sun6i" if MACH_SUN6I
@@ -607,9 +608,25 @@ config SYS_CONFIG_NAME
 	default "sun50i" if MACH_SUN50I
 	default "sun50i" if MACH_SUN50I_H6
 	default "sun50i" if MACH_SUN50I_H616
+	help
+	  This option contains information about board configuration name.
+	  Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header
+	  will be used for board configuration.
 
 config SYS_BOARD
+	string "Board name"
 	default "sunxi"
+	help
+	  This option contains information about board name.
+	  Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> will
+	  be used.
+
+config SYS_VENDOR
+	string "Vendor name"
+	help
+	  This option contains information about board name.
+	  Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> will
+	  be used.
 
 config SYS_SOC
 	default "sunxi"
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-28  1:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21  3:32 [PATCH v1] sunxi: Make SYS_VENDOR, SYS_BOARD, SYS_CONFIG_NAME configurable qianfanguijin
2022-04-26 12:49 ` Andre Przywara
2022-04-27  0:42   ` qianfan
2022-04-28  0:16     ` Andre Przywara
2022-04-28  1:41       ` qianfan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.