]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
serial: 8250: move of_serial code to 8250 directory
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Nov 2015 15:48:14 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
As the of-serial driver is now 8250 specific, we can move the
file to a more appropriate place in teh 8250 subdirectory and
adapt the Kconfig help text and file name.

I'm leaving the CONFIG_SERIAL_OF_PLATFORM symbol unchanged
to avoid breaking user configuration files unnecessarily.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_of.c [moved from drivers/tty/serial/of_serial.c with 100% similarity]
drivers/tty/serial/8250/Kconfig
drivers/tty/serial/8250/Makefile
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile

index 25da430bb58b1a48d0a3e8df84a806bf3ba6fd50..54f8af8ab4fb53806302f1c06e1c9c222f9b028f 100644 (file)
@@ -377,3 +377,12 @@ config SERIAL_8250_MID
          Selecting this option will enable handling of the extra features
          present on the UART found on Intel Medfield SOC and various other
          Intel platforms.
+
+config SERIAL_OF_PLATFORM
+       tristate "Devicetree based probing for 8250 ports"
+       depends on SERIAL_8250 && OF
+       help
+         This option is used for all 8250 compatible serial ports that
+         are probed through devicetree, including Open Firmware based
+         PowerPC systems and embedded systems on architectures using the
+         flattened device tree format.
index e177f8681adad8831a1bf7e6935664d28e9b001e..4ecb80d3549ae06fb5be27fd93485b07ef818bf1 100644 (file)
@@ -28,5 +28,6 @@ obj-$(CONFIG_SERIAL_8250_MT6577)      += 8250_mtk.o
 obj-$(CONFIG_SERIAL_8250_UNIPHIER)     += 8250_uniphier.o
 obj-$(CONFIG_SERIAL_8250_INGENIC)      += 8250_ingenic.o
 obj-$(CONFIG_SERIAL_8250_MID)          += 8250_mid.o
+obj-$(CONFIG_SERIAL_8250_OF)           += 8250_of.o
 
 CFLAGS_8250_ingenic.o += -I$(srctree)/scripts/dtc/libfdt
index 643fc50bb741f57e6a9176856050022a9f5354ee..0bdf4d5c7c657c310e74bec8925e64bdc48156f2 100644 (file)
@@ -1096,16 +1096,6 @@ config SERIAL_NETX_CONSOLE
          If you have enabled the serial port on the Hilscher NetX SoC
          you can make it the console by answering Y to this option.
 
-config SERIAL_OF_PLATFORM
-       tristate "Serial port on Open Firmware platform bus"
-       depends on OF
-       depends on SERIAL_8250
-       help
-         If you have a PowerPC based system that has serial ports
-         on a platform specific bus, you should enable this option.
-         Currently, only 8250 compatible ports are supported, but
-         others can easily be added.
-
 config SERIAL_OMAP
        tristate "OMAP serial port support"
        depends on ARCH_OMAP2PLUS
index ee8893317433b52e8fd54dee8a9ba3021e3f075e..b391c9b319602f426de38d4dce1f715130be0301 100644 (file)
@@ -63,7 +63,6 @@ obj-$(CONFIG_SERIAL_ATMEL) += atmel_serial.o
 obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o
 obj-$(CONFIG_SERIAL_MSM) += msm_serial.o
 obj-$(CONFIG_SERIAL_NETX) += netx-serial.o
-obj-$(CONFIG_SERIAL_OF_PLATFORM) += of_serial.o
 obj-$(CONFIG_SERIAL_KGDB_NMI) += kgdb_nmi.o
 obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o
 obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o