From e943f699501ec33bf0047151fa64024be59982f1 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 20 Jun 2015 09:52:12 -0400 Subject: [PATCH] kconfig: move serial port options to drivers/ We had those options defined per BSP. Moving them to a more generic place makes more sense. In this case they are moved under serial drivers. Change-Id: I8faf31321fc433eaa168bf36f2b590a6b8402f9e Signed-off-by: Anas Nashif --- arch/x86/generic_pc/Kconfig | 25 ------------------------- arch/x86/quark/Kconfig | 25 ------------------------- drivers/serial/Kconfig | 28 ++++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 50 deletions(-) diff --git a/arch/x86/generic_pc/Kconfig b/arch/x86/generic_pc/Kconfig index f7ec0d33eec..56de0fcbce6 100644 --- a/arch/x86/generic_pc/Kconfig +++ b/arch/x86/generic_pc/Kconfig @@ -50,28 +50,3 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC default 150000000 if BSP_ATOM_N28XX default 1193180 if BSP_PCMINUTEIA -menu "Serial Ports" - -config EXTRA_SERIAL_PORT - bool "Extra serial port" - default n - help - This option signifies the number of serial ports the target has. - -config SERIAL_INTERRUPT_LEVEL - bool "Serial interrupt level" - depends on IOAPIC && EXTRA_SERIAL_PORT - default y - help - Option signifies that the serial controller uses level interrupts - instead of edge - -config SERIAL_INTERRUPT_LOW - bool "Serial interrupt low" - depends on IOAPIC && EXTRA_SERIAL_PORT - default n - help - Option signifies that the serial controller uses low level interrupts - instead of high - -endmenu diff --git a/arch/x86/quark/Kconfig b/arch/x86/quark/Kconfig index 653faeec040..53b3937a2eb 100644 --- a/arch/x86/quark/Kconfig +++ b/arch/x86/quark/Kconfig @@ -69,28 +69,3 @@ config PHYS_LOAD_ADDR config SYS_CLOCK_HW_CYCLES_PER_SEC default 25000000 -menu "Serial Ports" - -config EXTRA_SERIAL_PORT - bool "Extra serial port" - default n - help - This option signifies the number of serial ports the target has. - -config SERIAL_INTERRUPT_LEVEL - bool "Serial interrupt level" - depends on IOAPIC && EXTRA_SERIAL_PORT - default y - help - Option signifies that the serial controller uses level interrupts - instead of edge - -config SERIAL_INTERRUPT_LOW - bool "Serial interrupt low" - depends on IOAPIC && EXTRA_SERIAL_PORT - default n - help - Option signifies that the serial controller uses low level interrupts - instead of high - -endmenu diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index b8c46effd06..58ded613c05 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -33,6 +33,34 @@ menu "Serial Drivers" +menu "Serial Port Options" +depends on X86_32 + +config EXTRA_SERIAL_PORT + bool "Extra serial port" + default n + depends on X86_32 + help + This option signifies the number of serial ports the target has. + +config SERIAL_INTERRUPT_LEVEL + bool "Serial interrupt level" + depends on IOAPIC && EXTRA_SERIAL_PORT + default y + help + Option signifies that the serial controller uses level interrupts + instead of edge + +config SERIAL_INTERRUPT_LOW + bool "Serial interrupt low" + depends on IOAPIC && EXTRA_SERIAL_PORT + default n + help + Option signifies that the serial controller uses low level interrupts + instead of high + +endmenu + config NS16550 bool "NS16550 serial driver" default n