1. 24 7月, 2021 1 次提交
  2. 08 6月, 2021 1 次提交
  3. 17 2月, 2021 5 次提交
  4. 03 2月, 2021 1 次提交
    • S
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass 提交于
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      401d1c4f
  5. 17 1月, 2021 1 次提交
  6. 16 1月, 2021 9 次提交
  7. 22 10月, 2020 1 次提交
  8. 08 8月, 2020 1 次提交
    • S
      console: Always define the console-recording functions · bd347155
      Simon Glass 提交于
      On boards without console recording these function are currently missing.
      It is more convenient for them to be present but to return dummy values.
      That way if we know that a test needs recording, we can check if it is
      available, and skip the test if not, while avoiding #ifdefs.
      
      Update the header file according and adjust console_record_reset_enable()
      to return an error if recording is not available.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      bd347155
  9. 09 7月, 2020 1 次提交
  10. 07 7月, 2020 1 次提交
  11. 19 6月, 2020 1 次提交
  12. 19 5月, 2020 1 次提交
  13. 13 2月, 2020 1 次提交
    • H
      common/console.c: discard volatile · a3a9e046
      Heinrich Schuchardt 提交于
      Avoid errors of like
      
      common/console.c: In function ‘console_record_reset’:
      common/console.c:615:16: error: passing argument 1 of ‘membuff_purge’
      discards ‘volatile’ qualifier from pointer target type
      [-Werror=discarded-qualifiers]
        615 |  membuff_purge(&gd->console_out);
            |                ^~~~~~~~~~~~~~~~
      
      by casting to non-volatile.
      
      The volatile property stems from declarations like
      
      arch/arm/include/asm/global_data.h:114:
      
      But there is no need to treat gd->console_out and gd->console_in as
      volatile in the context of common/console.c.
      
      Fixes: b6123128 ("console: Add a function to read a line of the output / eof")
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      a3a9e046
  14. 06 2月, 2020 1 次提交
  15. 07 11月, 2019 1 次提交
  16. 12 8月, 2019 2 次提交
  17. 08 8月, 2019 2 次提交
    • P
      console: execute flush on uart when silent is removed · 13551b91
      Patrick Delaunay 提交于
      Avoid to flush buffer when silent console is activated as the
      console can be reactivate later, after relocation, when the env will
      be updated with the saved one.
      
      Solve issue (missing beginning of U-Boot trace) when:
      - CONFIG_SILENT_CONSOLE is activated
      - silent=1 is defined in default environment (CONFIG_EXTRA_ENV_SETTINGS)
      - silent is removed in saved environment with:
            > env delete silent; env save
      
      Only functional when PRE_CONSOLE_BUFFER is activated.
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      13551b91
    • P
      console: update silent tag after env load · bf46be72
      Patrick Delaunay 提交于
      Update the "silent" property with the variable "silent" get from
      saved environment, it solves the issue when:
      - CONFIG_SILENT_CONSOLE and CONFIG_SYS_CONSOLE_IS_IN_ENV are activated
      - silent is not defined in default environment
      - silent is requested in saved environment with:
        > env set silent 1; env save
      
      On next reboot the console is not disabled as expected after relocation
      and the environment load from flash (the callback is not called when
      the INSERT is requested in the created hash table)
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      bf46be72
  18. 26 11月, 2018 1 次提交
  19. 11 9月, 2018 1 次提交
  20. 27 7月, 2018 2 次提交
  21. 19 6月, 2018 1 次提交
  22. 07 5月, 2018 2 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
    • T
      stdio_names: Ensure MAX_NAMES is defined before use, don't use 3 directly · 27b4225b
      Tom Rini 提交于
      With tighter build flags the fact that <stdio_dev.h> doesn't have a
      reference back to MAX_NAMES causes an error.  Include <stdio.h> here and
      then in common/console.c use MAX_NAMES rather than 3 when working with
      stdio_names.
      Reported-by: NPeter Robinson <pbrobinson@gmail.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Tested-by: NPeter Robinson <pbrobinson@gmail.com>
      27b4225b
  23. 08 12月, 2017 1 次提交
  24. 13 11月, 2017 1 次提交