1. 17 10月, 2012 7 次提交
  2. 16 10月, 2012 33 次提交
    • J
      env: Check for NULL pointer in envmatch() · 586197df
      Joe Hershberger 提交于
      If the pointer passed into envmatch() is NULL, return -1 instead of
      crashing.
      Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
      586197df
    • D
      common: cmd_bdinfo: fix type of value in print_lnum · 47708457
      Daniel Schwierzeck 提交于
      This fixes a warning when compiling with ELDK-5.2.1 for MIPS64:
      
      cmd_bdinfo.c: In function 'print_lnum':
      cmd_bdinfo.c:56:2: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'u64' [-Wformat]
      Signed-off-by: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      47708457
    • L
      usb: add support for multiple usb controllers · 93c2582f
      Lucas Stach 提交于
      Allows to initialize more than one USB controller at once.
      
      v2: print message when controller stop fails
      Signed-off-by: NLucas Stach <dev@lynxeye.de>
      Reviewed-by: NMarek Vasut <marex@denx.de>
      93c2582f
    • L
      usb: lowlevel interface change to support multiple controllers · c7e3b2b5
      Lucas Stach 提交于
      Carry an index in the lowlevel usb functions to make specify the
      respective usb controller.
      
      Also pass through an controller struct from lowlevel_init to the
      creation of the root usb device of this controller.
      Signed-off-by: NLucas Stach <dev@lynxeye.de>
      Reviewed-by: NMarek Vasut <marex@denx.de>
      c7e3b2b5
    • M
      serial: Remove CONFIG_SERIAL_MULTI from remaining sources · 036036d7
      Marek Vasut 提交于
      Remove the parts depending either on disabled CONFIG_SERIAL_MULTI
      or ifdefs around CONFIG_SERIAL_MULTI parts since CONFIG_SERIAL_MULTI
      is now enabled by default.
      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>
      036036d7
    • M
      serial: Move common/serial.c to drivers/serial/ · 7742aa65
      Marek Vasut 提交于
      Move the common/serial.c into driver/serial/, since this file
      provides serial multiplexing functions and it is imperative to
      be linked with libserial.o instead of libcommon.o.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      7742aa65
    • M
      serial: Use puts() and hang() instead of panic() in SPL · f1f1e9cb
      Marek Vasut 提交于
      If case the get_current() call fails before relocation, the U-Boot
      must try to print an error message, fail and either reset or halt.
      Such error is critical enough to halt the system, as it means the
      system is in very bad state.
      
      This is now also used in SPL, since CONFIG_SERIAL_MULTI is enabled
      unconditionally. To avoid compiling whole vsprintf.c into SPL, use
      puts() to print error message and hang() to stop the system in case
      of SPL build.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Tom Rini <trini@ti.com>
      f1f1e9cb
    • M
      serial: sh: Implement CONFIG_SERIAL_MULTI into sh serial driver · 8bdd7efa
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into sh 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 sh 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: Phil Edworthy <PHIL.EDWORTHY@renesas.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Signed-off-by: NTom Rini <trini@ti.com>
      8bdd7efa
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into sa1100 serial driver · a30a4220
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into sa1100 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 sa1100 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>
      a30a4220
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into s3c44b0 serial driver · eb507669
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into s3c44b0 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 s3c44b0 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>
      eb507669
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into pl01x serial driver · 39f61477
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into pl01x 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 pl01x 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: Stefano Babic <sbabic@denx.de>
      Cc: Mathieu J. Poirier <mathieu.poirier@linaro.org>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: John Rigby <john.rigby@linaro.org>
      Cc: Rabin Vincent <rabin.vincent@stericsson.com>
      39f61477
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into netarm serial driver · 0dd9b849
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into netarm 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 netarm 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: Stefano Babic <sbabic@denx.de>
      0dd9b849
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into mxc serial driver · a943472c
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into mxc 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 mxc 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: Stefano Babic <sbabic@denx.de>
      a943472c
    • M
      serial: Implement CONFIG_SERIAL_MULTI into max3100 serial driver · 7cd851a5
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into max3100 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 max3100 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>
      7cd851a5
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into lpc2292 serial driver · 21310b57
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into lpc2292 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 lpc2292 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>
      21310b57
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into lh7a40x serial driver · 1f673b4f
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into lh7a40x 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 lh7a40x 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>
      1f673b4f
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into ks8695 serial driver · a7ffb2fc
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into ks8695 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 ks8695 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>
      a7ffb2fc
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into ixp serial driver · b6cd0fef
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into ixp 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 ixp 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: Michael Schwingen <michael@schwingen.org>
      b6cd0fef
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into imx serial driver · 7882e7c1
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into imx 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 imx 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: Stefano Babic <sbabic@denx.de>
      7882e7c1
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into clps7111 serial driver · 8b029db8
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into clps7111 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 clps7111 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>
      8b029db8
    • M
      serial: sandbox: Implement CONFIG_SERIAL_MULTI into sandbox serial driver · cef46b77
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into sandbox 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 sandbox 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: Mike Frysinger <vapier@gentoo.org>
      cef46b77
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into s3c64xx serial driver · cc61c31d
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into s3c64xx 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 s3c64xx 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: John Rigby <john.rigby@linaro.org>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      cc61c31d
    • M
      serial: arm: Implement CONFIG_SERIAL_MULTI into s3c4510b serial driver · 4bee0b36
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into s3c4510b 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 s3c4510b 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>
      4bee0b36
    • M
      serial: oc: Implement CONFIG_SERIAL_MULTI into OpenCores serial driver · 69ea8070
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into OpenCores 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 OpenCores 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>
      69ea8070
    • M
      serial: Implement CONFIG_SERIAL_MULTI into ns9750 serial driver · 28ea4c34
      Marek Vasut 提交于
      Implement support for CONFIG_SERIAL_MULTI into ns9750 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 ns9750 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>
      28ea4c34
    • 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