1. 13 2月, 2017 1 次提交
    • M
      flash: complete CONFIG_SYS_NO_FLASH move with renaming · e856bdcf
      Masahiro Yamada 提交于
      We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
      not completed. Finish this work by the tool.
      
      During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
      Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
      than those of "#ifdef CONFIG_SYS_NO_FLASH".  Flipping the logic will
      make the code more readable.  Besides, negative meaning symbols do
      not fit in obj-$(CONFIG_...) style Makefiles.
      
      This commit was created as follows:
      
      [1] Edit "default n" to "default y" in the config entry in
          common/Kconfig.
      
      [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"
      
      [3] Rename the instances in defconfigs by the following:
        find . -path './configs/*_defconfig' | xargs sed -i \
        -e '/CONFIG_SYS_NO_FLASH=y/d' \
        -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'
      
      [4] Change the conditionals by the following:
        find . -name '*.[ch]' | xargs sed -i \
        -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
        -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
        -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
        -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'
      
      [5] Modify the following manually
        - Rename the rest of instances
        - Remove the description from README
        - Create the new Kconfig entry in drivers/mtd/Kconfig
        - Remove the old Kconfig entry from common/Kconfig
        - Remove the garbage comments from include/configs/*.h
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      e856bdcf
  2. 09 2月, 2017 1 次提交
  3. 08 2月, 2017 2 次提交
  4. 06 2月, 2017 11 次提交
  5. 29 1月, 2017 4 次提交
    • M
      ARM: uniphier: change CONFIG_SPL_PAD_TO to 128KB · c0efc314
      Masahiro Yamada 提交于
      The Boot ROM supports authentication feature to prevent malformed
      software from being run on products.  The signature is added at the
      tail of the second stage loader (= SPL in U-boot terminology).
      
      The size of the second stage loader was 64KB, and it was consistent
      across SoCs.  The situation changed when LD20 SoC appeared; it loads
      80KB second stage loader, and it is the only exception.
      
      Currently, CONFIG_SPL_PAD_TO is set to 64KB and U-Boot proper is
      loaded from the 64KB offset of non-volatile devices.  This means the
      signature of LD20 SoC (located at 80KB offset) corrupts the U-Boot
      proper image.
      
      Let's move the U-Boot proper image to 128KB offset.  It uses 48KB
      for nothing but padding, and we could actually locate the U-Boot
      proper at 80KB offset.  However, the power of 2 generally seems a
      better choice for the offset address.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      c0efc314
    • M
      Revert "armv8: release slave cores from CPU_RELEASE_ADDR" · 7b74c4b6
      Masahiro Yamada 提交于
      This reverts commit 8c36e99f.
      
      There is misunderstanding in commit 8c36e99f ("armv8: release
      slave cores from CPU_RELEASE_ADDR").  How to bring the slave cores
      into U-Boot proper is platform-specific.  So, it should be cared
      in SoC/board files instead of common/spl/spl.c.  As you see SPL
      is the acronym of Secondary Program Loader, there is generally
      something that runs before SPL (the First one is usually Boot ROM).
      
      How to wake up slave cores from the Boot ROM is really SoC specific.
      So, the intention for the spin table support is to bring the slave
      cores into U-Boot proper in an SoC specific manner.  (this must be
      done after relocation.  see below.)
      
      If you bring the slaves into SPL, it is SoC own code responsibility
      to transfer them to U-Boot proper.  The Spin Table defines the
      interface between a boot-loader and Linux kernel.  It is unrelated
      to the interface between SPL and U-Boot proper.
      
      One more thing is missing in the commit; spl_image->entry_point
      points to the entry address of U-Boot *before* relocation.  U-Boot
      relocates itself between board_init_f() and board_init_r().  This
      means the master CPU sees the different copy of the spin code than
      the slave CPUs enter.  The spin_table_update_dt() protects the code
      *after* relocation.  As a result, the slave CPUs spin in unprotected
      code, which leads to unstable behavior.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      7b74c4b6
    • A
      spl: Remove overwrite of relocated malloc limit · b3d2861e
      Andrew F. Davis 提交于
      spl_init on some boards is called after stack and heap relocation, on
      some platforms spl_relocate_stack_gd is called to handle setting the
      limit to its value CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN when simple
      SPL malloc is enabled during relocation. spl_init should then not
      re-assign the old pre-relocation limit when this is defined.
      Signed-off-by: NAndrew F. Davis <afd@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      b3d2861e
    • A
      malloc_simple: Add debug statements to memalign_simple · 1923d54b
      Andrew F. Davis 提交于
      Add debug statements to memalign_simple to match malloc_simple.
      Signed-off-by: NAndrew F. Davis <afd@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      1923d54b
  6. 28 1月, 2017 2 次提交
  7. 26 1月, 2017 9 次提交
  8. 24 1月, 2017 1 次提交
  9. 22 1月, 2017 1 次提交
    • U
      status_led: Kconfig migration · 2d8d190c
      Uri Mashiach 提交于
      Move all of the status LED feature to drivers/led/Kconfig.
      The LED status definitions were moved from the board configuration
      files to the defconfig files.
      
      TBD: Move all of the definitions in the include/status_led.h to the
      relevant board's defconfig files.
      
      Tested boards: CL-SOM-AM57x, CM-T335
      Signed-off-by: NUri Mashiach <uri.mashiach@compulab.co.il>
      2d8d190c
  10. 21 1月, 2017 7 次提交
  11. 20 1月, 2017 1 次提交
    • R
      bootm: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set · c2e7e72b
      Rick Altherr 提交于
      In 35fc84fa, bootm was refactored so plain 'bootm' and
      'bootm <subcommand>' shared a common implementation.
      The 'bootm ramdisk' command implementation is now part of the common
      implementation but not invoke by plain 'bootm' since the original
      implementation never did ramdisk relocation.  Instead, ramdisk
      relocation happened in image_setup_linux() which is typically called
      during the OS portion of 'bootm'.
      
      On ARM, parameters to the Linux kernel can either be passed by FDT or
      ATAGS. When using FDT, image_setup_linux() is called which also triggers
      ramdisk relocation.  When using ATAGS, image_setup_linux() is _not_
      called because it mostly does FDT setup.
      
      Instead of calling image_setup_linux() in both FDT and ATAGS cases,
      include BOOTM_STATE_RAMDISK in the requested states during a plain
      'bootm' if CONFIG_SYS_BOOT_RAMDISK_HIGH is set and remove the ramdisk
      relocation from image_setup_linux().  This causes ramdisk relocation to
      happen on any system where CONFIG_SYS_BOOT_RAMDISK_HIGH regardless of
      the OS being booted. Also remove IMAGE_ENABLE_RAMDISK_HIGH as it was
      only used by the now-removed code from image_setup_linux().
      Signed-off-by: NRick Altherr <raltherr@google.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NJoel Stanley <joel@jms.id.au>
      c2e7e72b