firmware/br-ext-chip-ingenic/board/t40/kernel/patches/00000-arch_mips_xburst2_Kco...

88 lines
1.6 KiB
Diff

diff -drupN a/arch/mips/xburst2/Kconfig b/arch/mips/xburst2/Kconfig
--- a/arch/mips/xburst2/Kconfig 1970-01-01 03:00:00.000000000 +0300
+++ b/arch/mips/xburst2/Kconfig 2022-06-09 05:02:27.000000000 +0300
@@ -0,0 +1,83 @@
+if MACH_XBURST2
+
+menu "SOC Type Selection"
+ depends on MACH_XBURST2
+
+
+choice
+ prompt "SOC types"
+ depends on MACH_XBURST2
+ default SOC_T40
+
+
+config SOC_T40
+ bool "t40"
+ select IRQ_INGENIC_CPU
+ select CLK_T40
+ select INGENIC_INTC_CHIP
+ select PINCTRL
+ select PINCTRL_INGENIC
+ select CLKSRC_OF
+ select CLKDEV_LOOKUP
+ select CLKSRC_INGENIC_CORE_OST
+
+
+config SOC_X2000_V12
+ bool "x2000-v12"
+ select IRQ_INGENIC_CPU
+ select CLK_X2000_V12
+ select INGENIC_INTC_CHIP
+ select PINCTRL
+ select PINCTRL_INGENIC
+ select CLKSRC_OF
+ select CLKDEV_LOOKUP
+ select CLKSRC_INGENIC_CORE_OST
+
+endchoice
+
+config INGENIC_BUILTIN_DTB
+ select BUILTIN_DTB
+ depends on MACH_XBURST2
+ bool "Ingenic Device Tree build into Kernel."
+ default y
+
+choice
+ prompt "device tree select"
+ default DT_NONE
+config DT_NONE
+
+if SOC_T40
+source "arch/mips/xburst2/soc-t40/Kconfig.DT"
+endif
+
+if SOC_X2000_V12
+source "arch/mips/xburst2/soc-x2000-v12/Kconfig.DT"
+endif
+
+endchoice
+
+config DT_T40_MODULE_BASE_DTS_FILE
+ string "dts file for T40 module driver"
+ depends on DT_T40_MODULE_BASE
+ default shark.dts
+ help
+ the dts file location is arch/mips/boot/dts/ingenic/
+
+config RAW_BOOT
+ bool "Raw Boot Kernel"
+ select BOOT_RAW
+ default n
+
+config EXTAL_CLOCK
+ depends on MACH_XBURST2
+ int "extal clock in MHz"
+ default 24
+
+config FPGA_TEST
+ depends on MACH_XBURST2
+ bool "FPGA_TEST"
+ default n
+
+endmenu
+
+endif