1. 30 Jan, 2015 1 commit
    • Martin Dorwig's avatar
      Export redesign · 49cad547
      Martin Dorwig authored
      this is an atempt to make the export of functions typesafe.
      I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.
      The EXPORT_FUNC macro now has 3 fixed parameters and one
      variadic parameter
      The first is the name of the exported function,
      the rest of the parameters are used to format a functionpointer
      in the jumptable,
      
      the EXPORT_FUNC macros are expanded three times,
      1. to declare the members of the struct
      2. to initialize the structmember pointers
      3. to call the functions in stubs.c
      Signed-off-by: default avatarMartin Dorwig <dorwig@tetronik.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      (resending to the list since my tweaks are not quite trivial)
      49cad547
  2. 14 Jan, 2015 1 commit
  3. 08 Dec, 2014 1 commit
    • Simon Glass's avatar
      Fix console functions for U-Boot API · d8727713
      Simon Glass authored
      Commit 709ea543 made a subtle change to the way the U-Boot API jump table
      is set up. So at present putc(), getc(), tstc() and puts() do not work
      correctly from functions that use the U-Boot API.
      
      Previously these were set to the stdio functions, but these now take a
      parameter specifying which stdio device to use. Instead, we should change
      them to use the global functions which do not have a parameter.
      
      This is a slight change in behaviour. The functions will now output to
      all selected stdio devices - for example putc() will output a character to
      all devices selected by stdout. However in most cases there is only one,
      and it isn't necessarily incorrect behaviour anyway.
      
      The API version is not changed since it is compatible with what was there
      before.
      Reported-by: default avatarMartin Dorwig <dorwig@tektronik.com>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      d8727713
  4. 25 Oct, 2014 1 commit
  5. 24 Sep, 2014 1 commit
    • Simon Glass's avatar
      sandbox: Disable Ctrl-C · 8969ea3e
      Simon Glass authored
      This is not supported properly on sandbox, and interferes with running
      tests, since when a test script is piped in, some commands will call
      ctrlc() which will drop characters from the test script.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      8969ea3e
  6. 23 Jul, 2014 3 commits
    • Simon Glass's avatar
      Add a flag indicating when the serial console is ready · 093f79ab
      Simon Glass authored
      For sandbox we have a fallback console which is used very early in
      U-Boot, before serial drivers are available. Rather than try to guess
      when to switch to the real console, add a flag so we can be sure. This
      makes sure that sandbox can always output a panic() message, for example,
      and avoids silent failure (which is very annoying in sandbox).
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      093f79ab
    • Simon Glass's avatar
      console: Remove vprintf() optimisation for sandbox · 7793ac96
      Simon Glass authored
      If the console is not present, we try to reduce overhead by stopping any
      output in vprintf(), before it gets to putc(). This is of dubious merit
      in general, but in the case of sandbox it is incorrect since we have a
      fallback console which reports errors very early in U-Boot. If this is
      defeated U-Boot can hang or exit with no indication of what is wrong.
      
      Remove the optimisation for sandbox.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      7793ac96
    • Simon Glass's avatar
      stdio: Pass device pointer to stdio methods · 709ea543
      Simon Glass authored
      At present stdio device functions do not get any clue as to which stdio
      device is being acted on. Some implementations go to great lengths to work
      around this, such as defining a whole separate set of functions for each
      possible device.
      
      For driver model we need to associate a stdio_dev with a device. It doesn't
      seem possible to continue with this work-around approach.
      
      Instead, add a stdio_dev pointer to each of the stdio member functions.
      
      Note: The serial drivers have the same problem, but it is not strictly
      necessary to fix that to get driver model running. Also, if we convert
      serial over to driver model the problem will go away.
      
      Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.
      
      22: stdio: Pass device pointer to stdio methods
             arm: (for 2/2 boards)  all +244.0  bss -4.0  text +248.0
         powerpc: (for 1/1 boards)  all +428.0  text +428.0
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Reviewed-by: default avatarMarek Vasut <marex@denx.de>
      709ea543
  7. 23 May, 2014 1 commit
  8. 09 Jan, 2014 1 commit
    • Simon Glass's avatar
      sandbox: Allow the console to work earlier · 91b136c7
      Simon Glass authored
      With sandbox, errors and problems may be reported before console_init_f()
      is executed. For example, an argument may not parse correctly or U-Boot may
      panic(). At present this output is swallowed so there is no indication what
      is going wrong.
      
      Adjust the console to deal with a very early sandbox setup, by detecting that
      there is no global_data yet, and calling os functions in that case.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      91b136c7
  9. 24 Jul, 2013 1 commit
  10. 13 Dec, 2012 3 commits
  11. 11 Dec, 2012 1 commit
    • Simon Glass's avatar
      console: Enable function to display console info · 78c112c9
      Simon Glass authored
      The CONFIG_SYS_CONSOLE_INFO_QUIET option should suppress the console
      information, but allow boards to display it later if required. Adjust
      the code to support this.
      
      This is used to avoid printing the information while the LCD display
      is not ready, since it only becomes ready when stdio init is complete.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      78c112c9
  12. 23 Mar, 2012 1 commit
  13. 17 Dec, 2011 1 commit
  14. 09 Dec, 2011 1 commit
    • Simon Glass's avatar
      Add board_pre_console_putc to deal with early console output · 295d3942
      Simon Glass authored
      This patch adds support for console output before the console is inited.
      The main purpose of this is to deal with a very early panic() which would
      otherwise cause a silent hang.
      
      A new board_pre_console_putc() function is added to the board API. If
      provided by the board it will be called in the event of console output
      before the console is ready. This function should turn on all UARTs and
      spray the character out if it possibly can.
      
      The feature is controlled by a new CONFIG_PRE_CONSOLE_PUTC option.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarGraeme Russ <graeme.russ@gmail.com>
      295d3942
  15. 05 Oct, 2011 1 commit
    • Graeme Russ's avatar
      console: Implement pre-console buffer · 9558b48a
      Graeme Russ authored
      Allow redirection of console output prior to console initialisation to a
      temporary buffer.
      
      To enable this functionality, the board (or arch) must define:
       - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer
       - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer
       - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes)
      
      The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes
      Any earlier characters are silently dropped.
      9558b48a
  16. 01 Oct, 2011 1 commit
  17. 09 Dec, 2010 1 commit
  18. 28 Nov, 2010 1 commit
  19. 04 Jul, 2010 1 commit
  20. 23 Jun, 2010 1 commit
    • Wolfgang Denk's avatar
      Remove AmigaOneG3SE board · 953b7e62
      Wolfgang Denk authored
      The AmigaOneG3SE board has been orphaned or a very long time, and
      broken for more than 12 releases resp. more than 3 years.  As nobody
      seems to be interested any more in this stuff we may as well ged rid
      of it, especially as it clutters many areas of the code so it is a
      continuous pain for all kinds of ongoing work.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      953b7e62
  21. 21 Mar, 2010 1 commit
    • Anatolij Gustschin's avatar
      console.c: fix problem with splashimage · a7490816
      Anatolij Gustschin authored
      If a board uses cfb_console driver and splash image
      and also defines CONFIG_SILENT_CONSOLE, the user is
      locked out even if "silent" is not set. It is not
      possible to get any output, neither on vga console
      device nor on serial console after redirecting the
      output to the serial console, since the GD_FLG_SILENT
      flag remains set.
      
      Fix the problem by redirecting the output from frame
      buffer to serial console if splashimage is used.
      Only suppress the output if "silent" environment
      variable was set and don't set the GD_FLG_SILENT
      flag arbitrarily.
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      a7490816
  22. 30 Aug, 2009 1 commit
  23. 18 Jul, 2009 1 commit
  24. 17 Jul, 2009 1 commit
    • Jean-Christophe PLAGNIOL-VILLARD's avatar
      stdio/device: rework function naming convention · 52cb4d4f
      Jean-Christophe PLAGNIOL-VILLARD authored
      So far the console API uses the following naming convention:
      
      	======Extract======
      	typedef struct device_t;
      
      	int	device_register (device_t * dev);
      	int	devices_init (void);
      	int	device_deregister(char *devname);
      	struct list_head* device_get_list(void);
      	device_t* device_get_by_name(char* name);
      	device_t* device_clone(device_t *dev);
      	=======
      
      which is too generic and confusing.
      
      Instead of using device_XX and device_t we change this
      into stdio_XX and stdio_dev
      
      This will also allow to add later a generic device mechanism in order
      to have support for multiple devices and driver instances.
      Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      
      Edited commit message.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      52cb4d4f
  25. 17 Feb, 2009 2 commits
  26. 07 Dec, 2008 1 commit
    • Gary Jennejohn's avatar
      IOMUX: Add console multiplexing support. · 16a28ef2
      Gary Jennejohn authored
      Modifications to support console multiplexing.  This is controlled using
      CONFIG_SYS_CONSOLE_MUX in the board configuration file.
      
      This allows a user to specify multiple console devices in the environment
      with a command like this: setenv stdin serial,nc.  As a result, the user can
      enter text on both the serial and netconsole interfaces.
      
      All devices - stdin, stdout and stderr - can be set in this manner.
      
      1) common/iomux.c and include/iomux.h contain the environment setting
      implementation.
      2) doc/README.iomux contains a somewhat more detailed description.
      3) The implementation in (1) is called from common/cmd_nvedit.c to
      handle setenv and from common/console.c to handle initialization of
      input/output devices at boot time.
      4) common/console.c also contains the code needed to poll multiple console
      devices for input and send output to all devices registered for output.
      5) include/common.h includes iomux.h and common/Makefile generates iomux.o
      when CONFIG_SYS_CONSOLE_MUX is set.
      Signed-off-by: default avatarGary Jennejohn <garyj@denx.de>
      16a28ef2
  27. 18 Oct, 2008 1 commit
  28. 06 Sep, 2008 1 commit
  29. 31 Aug, 2008 1 commit
  30. 20 May, 2008 1 commit
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  31. 05 May, 2007 1 commit
  32. 25 Apr, 2007 1 commit
  33. 31 Mar, 2006 1 commit
  34. 31 Mar, 2005 1 commit
  35. 18 Apr, 2004 1 commit
    • wdenk's avatar
      * Cleanup, minor fixes · 6e592385
      wdenk authored
      * Patch by Rune Torgersen, 16 Apr 2004:
        LBA48 fixes
      
      * Patches by Pantelis Antoniou, 16 Apr 2004:
        - Fix some compile problems;
          add "once" functionality for the netretry variable
      6e592385