kconfig: add board Kconfig and defconfig files
This commit adds:
- arch/${ARCH}/Kconfig
provide a menu to select target boards
- board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
set CONFIG macros to the appropriate values for each board
- configs/${TARGET_BOARD}_defconfig
default setting of each board
(This commit was automatically generated by a conversion script
based on boards.cfg)
In Linux Kernel, defconfig files are located under
arch/${ARCH}/configs/ directory.
It works in Linux Kernel since ARCH is always given from the
command line for cross compile.
But in U-Boot, ARCH is not given from the command line.
Which means we cannot know ARCH until the board configuration is done.
That is why all the "*_defconfig" files should be gathered into a
single directory ./configs/.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
diff --git a/board/samsung/arndale/Kconfig b/board/samsung/arndale/Kconfig
new file mode 100644
index 0000000..c3af0ec
--- /dev/null
+++ b/board/samsung/arndale/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_ARNDALE
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "arndale"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "arndale"
+
+endif
diff --git a/board/samsung/goni/Kconfig b/board/samsung/goni/Kconfig
new file mode 100644
index 0000000..0be535e
--- /dev/null
+++ b/board/samsung/goni/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_S5P_GONI
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "goni"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "s5pc1xx"
+
+config SYS_CONFIG_NAME
+ string
+ default "s5p_goni"
+
+endif
diff --git a/board/samsung/origen/Kconfig b/board/samsung/origen/Kconfig
new file mode 100644
index 0000000..f52de83
--- /dev/null
+++ b/board/samsung/origen/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_ORIGEN
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "origen"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "origen"
+
+endif
diff --git a/board/samsung/smdk2410/Kconfig b/board/samsung/smdk2410/Kconfig
new file mode 100644
index 0000000..e921c09
--- /dev/null
+++ b/board/samsung/smdk2410/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_SMDK2410
+
+config SYS_CPU
+ string
+ default "arm920t"
+
+config SYS_BOARD
+ string
+ default "smdk2410"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "s3c24x0"
+
+config SYS_CONFIG_NAME
+ string
+ default "smdk2410"
+
+endif
diff --git a/board/samsung/smdk5250/Kconfig b/board/samsung/smdk5250/Kconfig
new file mode 100644
index 0000000..edebbde
--- /dev/null
+++ b/board/samsung/smdk5250/Kconfig
@@ -0,0 +1,47 @@
+if TARGET_SMDK5250
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "smdk5250"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "smdk5250"
+
+endif
+
+if TARGET_SNOW
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "smdk5250"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "snow"
+
+endif
diff --git a/board/samsung/smdk5420/Kconfig b/board/samsung/smdk5420/Kconfig
new file mode 100644
index 0000000..052c275
--- /dev/null
+++ b/board/samsung/smdk5420/Kconfig
@@ -0,0 +1,47 @@
+if TARGET_PEACH_PIT
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "smdk5420"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "peach-pit"
+
+endif
+
+if TARGET_SMDK5420
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "smdk5420"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "smdk5420"
+
+endif
diff --git a/board/samsung/smdkc100/Kconfig b/board/samsung/smdkc100/Kconfig
new file mode 100644
index 0000000..9c2b4da
--- /dev/null
+++ b/board/samsung/smdkc100/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_SMDKC100
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "smdkc100"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "s5pc1xx"
+
+config SYS_CONFIG_NAME
+ string
+ default "smdkc100"
+
+endif
diff --git a/board/samsung/smdkv310/Kconfig b/board/samsung/smdkv310/Kconfig
new file mode 100644
index 0000000..e467092
--- /dev/null
+++ b/board/samsung/smdkv310/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_SMDKV310
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "smdkv310"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "smdkv310"
+
+endif
diff --git a/board/samsung/trats/Kconfig b/board/samsung/trats/Kconfig
new file mode 100644
index 0000000..040413e
--- /dev/null
+++ b/board/samsung/trats/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_TRATS
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "trats"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "trats"
+
+endif
diff --git a/board/samsung/trats2/Kconfig b/board/samsung/trats2/Kconfig
new file mode 100644
index 0000000..a82fdfb
--- /dev/null
+++ b/board/samsung/trats2/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_TRATS2
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "trats2"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "trats2"
+
+endif
diff --git a/board/samsung/universal_c210/Kconfig b/board/samsung/universal_c210/Kconfig
new file mode 100644
index 0000000..082168f
--- /dev/null
+++ b/board/samsung/universal_c210/Kconfig
@@ -0,0 +1,23 @@
+if TARGET_S5PC210_UNIVERSAL
+
+config SYS_CPU
+ string
+ default "armv7"
+
+config SYS_BOARD
+ string
+ default "universal_c210"
+
+config SYS_VENDOR
+ string
+ default "samsung"
+
+config SYS_SOC
+ string
+ default "exynos"
+
+config SYS_CONFIG_NAME
+ string
+ default "s5pc210_universal"
+
+endif