1. 16 10月, 2012 40 次提交
    • M
      serial: mcf: Implement CONFIG_SERIAL_MULTI into MCF serial driver · abaef69f
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into MCF serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the MCF driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: TsiChung Liew <tsicliew@gmail.com>
      abaef69f
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into lpc32xx serial driver · e503f90a
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into lpc32xx serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the lpc32xx driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Vladimir Zapolskiy <vz@mleia.com>
      e503f90a
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into atmel serial driver · cfba4573
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into atmel serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the atmel driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Xu, Hong <Hong.Xu@atmel.com>
      cfba4573
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into altera serial driver · b207d645
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into altera serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the altera driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Scott McNutt <smcnutt@psyent.com>
      b207d645
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver · 8c085757
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into altera_jtag serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the altera_jtag driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Thomas Chou <thomas@wytron.com.tw>
      8c085757
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into p3mx serial driver · 088a4f3c
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into p3mx serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the p3mx driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      088a4f3c
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into sconsole serial driver · 26d8eaaa
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into sconsole serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the sconsole driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      26d8eaaa
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into ml2 serial driver · d126f285
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into ml2 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the ml2 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      d126f285
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into evb64260 serial driver · 829b3b2e
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into evb64260 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the evb64260 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      829b3b2e
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into cpci750 serial driver · 619c90bb
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into cpci750 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the cpci750 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      619c90bb
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into cogent serial driver · d25c39d3
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into cogent serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the cogent driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      d25c39d3
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into bmw serial driver · c45a14ad
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into bmw serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the bmw driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      c45a14ad
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into amirix serial driver · 5dee6f55
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into amirix serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the amirix driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      5dee6f55
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into marvell serial driver · afe4c389
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into marvell serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the marvell driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      afe4c389
    • M
      serial: sparc: Implement CONFIG_SERIAL_MULTI into leon3 serial driver · 29b5ff7f
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into leon3 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the leon3 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      29b5ff7f
    • M
      serial: sparc: Implement CONFIG_SERIAL_MULTI into leon2 serial driver · af7be3b6
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into leon2 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the leon2 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      af7be3b6
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into iop480 serial driver · fcc2074d
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into iop480 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the iop480 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      fcc2074d
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc85xx serial driver · 7a311546
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into mpc85xx serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the mpc85xx driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      7a311546
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8260 serial drivers · d68f4da2
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into both SCC and SMC mpc8260
      serial drivers. These drivers were so far only usable directly, but this
      patch also adds support for the multi method. This allows using more than
      one serial driver alongside the mpc8260 drivers. Also, add a weak
      implementation of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      d68f4da2
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc8220 serial driver · 2063a54e
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into mpc8220 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the mpc8220 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      2063a54e
    • M
      serial: powerpc: Implement CONFIG_SERIAL_MULTI into mpc5xx serial driver · b57c6528
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into mpc5xx serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the mpc5xx driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      b57c6528
    • M
      serial: mips: Implement CONFIG_SERIAL_MULTI into JZ serial driver · 6cb3273d
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into JZ serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the JZ driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      6cb3273d
    • M
      serial: mips: Implement CONFIG_SERIAL_MULTI into asc serial driver · 01911422
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into asc serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the asc driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      01911422
    • M
      serial: mips: Implement CONFIG_SERIAL_MULTI into au1x00 serial driver · 7b953c51
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into au1x00 serial driver.
      This driver was so far only usable directly, but this patch also adds
      support for the multi method. This allows using more than one serial
      driver alongside the au1x00 driver. Also, add a weak implementation
      of default_serial_console() returning this driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      7b953c51
    • M
      serial: bfin: Flip the jtag serial console to CONFIG_SERIAL_MULTI · 41651cab
      Marek Vasut 提交于
      Rework the emulation of serial console via JTAG from simple ad-hoc
      implementation of serial port routines to CONFIG_SERIAL_MULTI and
      enable CONFIG_SERIAL_MULTI unconditionally for blackfin.
      
      In order for the JTAG serial console to take precedence over all
      other serial ports available in system, implement override for
      default_serial_console call returning this JTAG serial console.
      
      This brings in a bit of a growth of size, but eventually will allow
      us to unconditionally enable CONFIG_SERIAL_MULTI throughout the whole
      U-Boot and maintain only one serial subsystem.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      41651cab
    • M
      serial: zoom2: Remove zoom2 serial prototypes from serial.h · 425101e1
      Marek Vasut 提交于
      Remove the prototypes for zoom2_serial_deviceN from serial.h . This
      can't be done right away, as they are referenced from the zoom2
      config file. Therefore, adjust the code so the config file only
      specifies number of the port. Then, replace the simple return in
      default_serial_console() with a switch across possible values, which
      returns the zoom2_serial_deviceN . With such adjustment in place,
      the exported prototypes in serial.h can be safely removed.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      425101e1
    • M
      serial: bfin: Adjust serial_register_bfin_uart() · 5ae1de0d
      Marek Vasut 提交于
      Rename the serial_register_bfin_uart() to bfin_initialize_serial()
      to be consistent with the rest of the naming. Next, remove it's
      prototype from serial.h and properly insert it into serial.c as
      the rest of the serial initialization functions.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      5ae1de0d
    • M
      serial: bfin: Remove the bfin_serialN_device exports from serial.h · c513d7e5
      Marek Vasut 提交于
      Remove the exports from serial.h as they are only used in the blackfin
      serial driver. Furthermore, they are only used for registration, which
      is handled already inside that driver and default_serial_port() call,
      which is also handled in that driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      c513d7e5
    • M
      serial: ns16550: Move serial registration from serial_initialize() · abc0ed8d
      Marek Vasut 提交于
      Move the registration of eserialN_device ports from default
      serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented ns16550_serial_initialize() function, which is
      implemented inside of the ns16550 serial driver allows encapsulation
      of eserialN_device within the ns16550 serial driver itself.
      
      Also, remove the exports of eserialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the ns16550 serial driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Michal Simek <monstr@monstr.eu>
      abc0ed8d
    • M
      serial: mpc512x: Move serial registration from serial_initialize() · 918327c8
      Marek Vasut 提交于
      Move the registration of serialN_device ports from default
      serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented mpc512x_serial_initialize() function, which is
      implemented inside of the mpc512x serial driver allows encapsulation
      of serialN_device within the mpc512x serial driver itself.
      
      Also, remove the exports of serialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the mpx512x serial driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      918327c8
    • M
      serial: microblaze: Move serial registration from serial_initialize() · 87d69229
      Marek Vasut 提交于
      Move the registration of xuartlite_serialN_device ports from
      default serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented xuartlite_serial_initialize() function, which is
      implemented inside of the serial_xuartlite driver allows encapsulation
      of xuartlite_serialN_device within the serial_xuartlite driver itself.
      
      Also, remove the exports of xuartlite_serialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the serial_xuartlite driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Michal Simek <monstr@monstr.eu>
      87d69229
    • T
      serial: zynq: Move serial registration from serial_initialize() · 51d8102f
      Tom Rini 提交于
      Move the registration of zynq_serialN_device ports from default
      serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented zynq_serial_initialize() function, which is
      implemented inside of the serial_zynq driver allows encapsulation
      of zynq_serialN_device within the serial_zynq driver itself.
      
      Also, remove the exports of zynq_serialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the serial_zynq driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      Signed-off-by: NTom Rini <trini@ti.com>
      51d8102f
    • M
      serial: s5p: Move serial registration from serial_initialize() · b4980515
      Marek Vasut 提交于
      Move the registration of s5p_serialN_device ports from default
      serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented s5p_serial_initialize() function, which is
      implemented inside of the serial_s5p driver allows encapsulation
      of s5p_serialN_device within the serial_s5p driver itself.
      
      Also, remove the exports of s5p_serialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the serial_s5p driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      b4980515
    • M
      serial: pxa: Move serial registration from serial_initialize() · 1fe5c110
      Marek Vasut 提交于
      Move the registration of serial_XXuart ports from default
      serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented pxa_serial_initialize() function, which is
      implemented inside of the serial_pxa driver allows encapsulation
      of serial_XXuart within the serial_pxa driver itself.
      
      Also, remove the exports of serial_XXuart from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the serial_pxa driver and
      the default console is picked by CONFIG_CONS_IDX macro in config file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      1fe5c110
    • M
      serial: s3c24xx: Move serial registration from serial_initialize() · 28af6385
      Marek Vasut 提交于
      Move the registration of s3c24xx_serialN_device ports from
      default serial_initialize() into driver specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The newly implemented s3c24xx_serial_initialize() function, which is
      implemented inside of the serial_s3c24xx driver allows encapsulation
      of s3c24xx_serialN_device within the serial_s3c24xx driver itself.
      
      Also, remove the exports of s3c24xx_serialN_device from include/serial.h
      as they are no longer needed. This is simply because the implementation of
      default_serial_console() is wrapped into the serial_s3c24xx driver and
      the default console is picked by CONFIG_SERIAL<N> macro in config file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: C Nauman <cnauman@diagraph.com>
      28af6385
    • M
      serial: mpc8xx: Move serial registration from serial_initialize() · f0eb1f61
      Marek Vasut 提交于
      Move the registration of serial_smc and serial_scc ports from
      default serial_initialize() into CPU specific function called from
      serial_initialize(). This slims down the serial_initialize() call
      to a bare tracker of all possible serial port registration routines
      in U-Boot.
      
      The exports of both serial_scc_device and serial_smc_device can
      not yet be removed as they are still used in default_serial_console()
      calls.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      f0eb1f61
    • M
      serial: Implement serial_initfunc() macro · 2a333aeb
      Marek Vasut 提交于
      This macro simplifies declaration of weak aliases for per-driver
      functions, which register these drivers with the serial subsystem.
      The idea here is to push serial_register() calls from serial.c into
      the drivers. To avoid pile of ifdef construct as it is now, create
      weak aliases to these functions, which in case the driver is not
      present alias onto an empty function, which is in turn optimized out
      altogether.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      2a333aeb
    • M
      serial: mpc512x: Properly define CONFIG_SYS_PSC3 in config files · bfb31279
      Marek Vasut 提交于
      Some of the boards using the mpc512x serial driver didn't properly
      define which PSC console to use. This caused breakage when building
      with CONFIG_SERIAL_MULTI enabled. Fix this by defining the default
      PSC console.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      bfb31279
    • M
      serial: pxa: Make local functions static · 4808f106
      Marek Vasut 提交于
      Make functions that are local-only static, so no hairy symbols
      stick out of the serial_pxa driver file.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      4808f106
    • M
      serial: pxa: Make use of default_serial_console in serial_pxa · ce6971cd
      Marek Vasut 提交于
      Make use of the newly implemented weak default_serial_console in
      the serial_pxa driver. This removes all reimplementations of this
      function from board files.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      ce6971cd