The changes of the two patches: - imx console driver can be built as module. - move out earlycon code to separated driver like imx_earlycon.c, and imx earlycon driver only support build-in. Reviewed by Greg KH, add did below changes based on his comments. v2->v3: * split imx serial and earlycon driver into two patches. * remove "GKI" string as it isn't relevant here. v1->v2: * fix kbuild error. Fugang Duan (2): tty: serial: imx: enable imx serial console port as module tty: serial: imx: add imx earlycon driver drivers/tty/serial/Kconfig | 17 +++++++---- drivers/tty/serial/imx.c | 37 ++--------------------- drivers/tty/serial/imx_earlycon.c | 50 +++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 40 deletions(-) create mode 100644 drivers/tty/serial/imx_earlycon.c -- 2.17.1