Browse Source

bfin: separate serial driver from kernel config

Waldemar Brodkorb 8 years ago
parent
commit
347064601c

+ 0 - 4
target/bfin/kernel/sim-bfin

@@ -1,7 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_BF512=y
 CONFIG_ICACHE_FLUSH_L1=y
-CONFIG_SERIAL_BFIN=y
-CONFIG_SERIAL_BFIN_CONSOLE=y
-CONFIG_SERIAL_BFIN_UART0=y
-CONFIG_SERIAL_BFIN_UART1=y

+ 3 - 0
target/config/Config.in.hardware

@@ -101,6 +101,9 @@ config ADK_TARGET_WITH_WIFI
 config ADK_TARGET_WITH_DSL
 	bool
 
+config ADK_TARGET_WITH_VIRTIO
+	bool
+
 config ADK_TARGET_WITH_USB_BOOT
 	bool
 

+ 17 - 0
target/linux/config/Config.in.serial

@@ -46,6 +46,23 @@ config ADK_KERNEL_SERIAL_SUNSU_CONSOLE
 config ADK_KERNEL_DA_CONSOLE
 	bool
 
+config ADK_KERNEL_SERIAL_BFIN_CONSOLE
+	bool
+
+config ADK_KERNEL_SERIAL_BFIN_UART0
+	bool
+
+config ADK_KERNEL_SERIAL_BFIN_UART1
+	bool
+
+config ADK_KERNEL_SERIAL_BFIN
+	bool "BFIN serial driver"
+	select ADK_KERNEL_SERIAL_BFIN_CONSOLE
+	select ADK_KERNEL_SERIAL_BFIN_UART0
+	select ADK_KERNEL_SERIAL_BFIN_UART1
+	depends on ADK_TARGET_ARCH_BFIN
+	default y if ADK_TARGET_ARCH_BFIN
+
 config ADK_KERNEL_SERIAL_8250
 	bool "8250 serial driver"
 	select ADK_KERNEL_SERIAL_OF_PLATFORM if ADK_TARGET_SYSTEM_XILINX_KINTEX7 \

+ 1 - 0
target/linux/config/Config.in.virtio

@@ -2,6 +2,7 @@
 # material, please see the LICENCE file in the top-level directory.
 
 menu "Virtio driver support"
+depends on ADK_TARGET_WITH_VIRTIO || ADK_TARGET_QEMU
 
 config ADK_KERNEL_VIRTIO
 	bool