20 Aug, 2013

1 commit


17 Jan, 2013

1 commit


17 Oct, 2012

1 commit

  • U-Boot contains a lot of duplicit implementations of serial_puts()
    call which just pipes single characters into the port in loop. Implement
    function that does this behavior into common code, so others can make
    easy use of it.

    This function is called default_serial_puts() and it's sole purpose
    is to call putc() in loop on the whole string passed to it.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini

    Marek Vasut
     

16 Oct, 2012

13 commits

  • 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: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Anatolij Gustschin
    Cc: Stefan Roese

    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: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini

    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: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Mike Frysinger

    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: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Mike Frysinger

    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 macro in config file.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Anatolij Gustschin
    Cc: Stefan Roese
    Cc: Mike Frysinger
    Cc: Michal Simek

    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 macro in config file.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Anatolij Gustschin
    Cc: Stefan Roese

    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 macro in config file.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Michal Simek

    Marek Vasut
     
  • 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 macro in config file.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • 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 macro in config file.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Minkyu Kang

    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: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini

    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 macro in config file.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: C Nauman

    Marek Vasut
     
  • Rename .init() to .start() and .uninit() to .stop() in struct
    serial_device. This allows aligning struct serial_device with
    closer to struct stdio_dev. The real goal here is to allow
    these two structures to converge together and eventually make
    one to be a superset of the other.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Signed-off-by: Tom Rini

    Marek Vasut
     
  • Do a simple cleanup of the struct serial_device and align it with
    current coding style. Checkpatch now reports no errors.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini

    Marek Vasut
     

04 Oct, 2012

1 commit


11 Sep, 2012

1 commit


01 Sep, 2012

1 commit

  • This is make naming consistent with the kernel and devicetree and in
    preparation of pulling out the common tegra20 code.

    Signed-off-by: Allen Martin
    Acked-by: Stephen Warren
    Tested-by: Thierry Reding
    Signed-off-by: Tom Warren

    Allen Martin
     

19 Mar, 2012

1 commit

  • A few subsystems are using the same define "NAMESIZE". This has been
    working so far because they define it to the same number. However, I
    want to change the size of eth_device's NAMESIZE, so rather than tweak
    the define names, simply drop references to it. Almost no one does,
    and the handful that do can easily be changed to a sizeof().

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

19 Dec, 2011

1 commit


06 Dec, 2011

2 commits


10 Oct, 2011

1 commit


03 Aug, 2011

1 commit

  • * 'master' of git://git.denx.de/u-boot-blackfin:
    Blackfin: jtag-console: fix timer usage
    Blackfin: switch to common display_options()
    Blackfin: serial: move early debug strings into .rodata section
    Blackfin: adi boards: also set stderr to nc with helper
    Blackfin: update anomaly lists to latest public info
    Blackfin: serial: convert to bfin_{read,write} helpers
    Blackfin: split out async setup
    Blackfin: adi boards: enable pretty flash progress output
    Blackfin: drop unused dma.h header from start code
    Blackfin: portmux: allow header to be included in assembly files
    Blackfin: cm-bf537e/cm-bf537u/tcm-bf537: enable mmc_spi support
    Blackfin: cm-bf537e/cm-bf537u/tcm-bf537: update network settings
    Blackfin: sync MMR read/write helpers with Linux
    Blackfin: gpio: optimize free path a little
    Blackfin: post: setup default CONFIG_SYS_POST_WORD_ADDR
    Blackfin: uart: fix printf warning
    Blackfin: add init.elf helper code
    Blackfin: dont reset SWRST on newer bf526 parts
    Blackfin: adi boards: enable multi serial support by default
    Blackfin: uart: add multiple serial support
    Blackfin: uart: move debug buffers into local bss

    Wolfgang Denk
     

26 Jul, 2011

2 commits

  • The current arch/driver specific UART posts basically boil down to setting
    the UART to loop back mode, then reading and writing data. If we ignore
    the loop back part, the rest can be built upon the existing common serial
    API. So let's do just that.

    First add a call back for serial drivers to implement loop back control.
    Then write a post test that walks all of the serial drivers, puts them
    into loop back mode, and verifies that reading/writing at all the diff
    baud rates is OK.

    If a serial driver doesn't support loop back mode (either it can't or
    it hasn't done so yet), then skip it. This should allow for people to
    easily migrate to the new post test with existing serial drivers.

    I haven't touched the few already existing uart post tests as I don't
    the hardware or knowledge of converting them over. So I've marked the
    new test as weak which will allow the existing tests to override the
    default until they are converted.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • The multi serial support has a "ctlr" field which almost no one uses,
    but everyone is forced to set to useless strings. So punt it.

    Funny enough, the only code that actually reads this field (the mpc8xx
    driver) has a typo where it meant to look for the SCC driver. Fix it
    while converting the check to use the name field.

    Signed-off-by: Mike Frysinger
    CC: Heiko Schocher
    CC: Anatolij Gustschin
    CC: Tom Rix
    CC: Minkyu Kang
    CC: Craig Nauman
    CC: Marek Vasut
    CC: Prafulla Wadaskar
    CC: Mahavir Jain

    Mike Frysinger
     

12 Jul, 2011

1 commit


21 Feb, 2011

1 commit


08 Sep, 2010

1 commit


26 Aug, 2010

1 commit


11 Aug, 2010

1 commit


06 May, 2010

1 commit


30 Apr, 2010

1 commit


25 Apr, 2010

3 commits

  • Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     
  • Extend mpc512x serial driver to support multiple PSC ports.

    Subsequent patches for PDM360NG board support make use of this
    functionality by defining CONFIG_SERIAL_MULTI in the board config
    file. Additionally the used PSC devices are specified by defining
    e.g. CONFIG_SYS_PSC1, CONFIG_SYS_PSC4 and CONFIG_SYS_PSC6.

    Support for PSC devices other than 1, 3, 4 and 6 is not added
    by this patch because these aren't used currently. In the future
    it can be easily added using DECLARE_PSC_SERIAL_FUNCTIONS(N) and
    INIT_PSC_SERIAL_STRUCTURE(N) macros in cpu/mpc512x/serial.c.
    Additionally you have to add code for registering added
    devices in serial_initialize() in common/serial.c.

    Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     
  • Subsequent patch extends mpc512x serial driver to support
    multiple PSC ports. The driver will provide an uninit()
    function to stop the serial controller and to disable the
    controller's clock. Adding uninit() entry to struct serial_device
    allows disabling the serial controller after usage of
    a stdio serial device.

    This patch adds uninit() entry to the struct serial_device
    and fixes initialization of this structure in the code
    accordingly.

    Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     

20 Dec, 2009

2 commits


14 Oct, 2009

1 commit