1. 09 2月, 2017 5 次提交
    • M
      aspeed: ast2500: Fix H-PLL and M-PLL clock rate calculation · d5ce3574
      maxims@google.com 提交于
      Fix H-PLL and M-PLL rate calculation in ast2500 clock driver.
      Without this fix, valid setting can lead to division by zero
      when requesting the rate of H-PLL or M-PLL clocks.
      Signed-off-by: NMaxim Sloyko <maxims@google.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      d5ce3574
    • V
      cmd: gpt: backup boot code before writing MBR · e163a931
      Vincent Tinelli 提交于
      On some cases the first 440 bytes of MBR are used to keep an additional
      information for ROM boot loader. 'gpt write' command doesn't preserve
      that area and makes boot code gone.
      
      Preserve boot code area when run 'gpt write' command.
      Signed-off-by: NVincent Tinelli <vincent.tinelli@intel.com>
      Signed-off-by: NBrennan Ashton <brn@deako.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      e163a931
    • M
      cmd: rework "license" command · d726f225
      Masahiro Yamada 提交于
      The previous commit ("add a new command to show .config contents")
      improves the basic infrastructure of "embed a compressed file into
      the U-Boot image, and print it by a command".  The same pattern for
      the "license" command.
      
      This commit reworks the command to improve the following:
      
      [1] Improve log style
      
      Kbuild style log
      
        GZIP    cmd/license_data.gz
        CHK     cmd/license_data_gz.h
        UPD     cmd/license_data_gz.h
        CHK     cmd/license_data_size.h
        UPD     cmd/license_data_size.h
      
      instead of the bare Make log:
      
      cat ./Licenses/gpl-2.0.txt | gzip -9 -c | \
      		tools/bin2header license_gzip > ./include/license.h
      
      [2] Collect related code into the "cmd" directory
      
      Prior to this commit, the license.h was created by tools/Makefile,
      placed under the "include" directory, included from cmd/license.c,
      and deleted by the top-level Makefile.  It is not a good idea to
      scatter related code.
      
      [3] Drop the fixed-malloc size LICENSE_MAX
      
      Just allocate the minimum required size of buffer because we know
      the size of the original gpl-2.0.txt.
      
      [4] Fix more issues
      
      Terminate the buffer with zero to prevent puts() from over-running.
      Add "static" to do_license.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      d726f225
    • M
      cmd: add a new command "config" to show .config contents · 61304dbe
      Masahiro Yamada 提交于
      This feature is inspired by /proc/config.gz of Linux.  In Linux,
      if CONFIG_IKCONFIG is enabled, the ".config" file contents are
      embedded in the kernel image.  If CONFIG_IKCONFIG_PROC is also
      enabled, the ".config" contents are exposed to /proc/config.gz.
      Users can do "zcat /proc/config.gz" to check which config options
      are enabled on the running kernel image.
      
      The idea is almost the same here; if CONFIG_CMD_CONFIG is enabled,
      the ".config" contents are compressed and saved in the U-Boot image,
      then printed by the new command "config".
      
      The usage is quite simple.  Enable CONFIG_CMD_CONFIG, then run
       > config
      from the command line interface.  The ".config" contents will be
      printed on the console.
      
      This feature increases the U-Boot image size by about 4KB (this is
      mostly due to the gzip-compressed .config file).  By default, it is
      enabled only for Sandbox because we do not care about the memory
      footprint on it.  Of course, this feature is architecture agnostic,
      so you can enable it on any board if the image size increase is
      acceptable for you.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      61304dbe
    • M
      scripts: import bin2c.c from Linux 4.10-rc6 · 6fb631ec
      Masahiro Yamada 提交于
      Import scripts/basic/bin2c.c of Linux.
      
      In Linux Kernel, this file was moved to scripts/basic directory by
      commit 8370edea81e3 ("bin2c: move bin2c in scripts/basic").
      
      In U-Boot, we do not need to follow that commit.  Just put it in the
      original directory "scripts".
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      6fb631ec
  2. 08 2月, 2017 2 次提交
  3. 07 2月, 2017 26 次提交
  4. 06 2月, 2017 7 次提交