Skip to content
Snippets Groups Projects
  1. Feb 27, 2017
  2. Feb 17, 2017
  3. Feb 12, 2017
    • Masahiro Yamada's avatar
      flash: compile common/flash.c iif CONFIG_MTD_NO_FLASH is enabled · 554c73c0
      Masahiro Yamada authored
      
      The whole of common/flash.c is guarded by #if defined() ... #endif.
      Move the conditional to common/Makefile.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      554c73c0
    • Masahiro Yamada's avatar
      flash: complete CONFIG_SYS_NO_FLASH move with renaming · e856bdcf
      Masahiro Yamada authored
      
      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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      e856bdcf
  4. Feb 08, 2017
  5. Feb 07, 2017
  6. Feb 06, 2017
  7. Jan 29, 2017
    • Masahiro Yamada's avatar
      ARM: uniphier: change CONFIG_SPL_PAD_TO to 128KB · c0efc314
      Masahiro Yamada authored
      
      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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      c0efc314
  8. Jan 28, 2017
  9. Jan 25, 2017
  10. Jan 24, 2017
  11. Jan 21, 2017
  12. Jan 20, 2017
    • Emmanuel Vadot's avatar
      bootm: qnx: Disable data cache before booting QNX image · 995eab8b
      Emmanuel Vadot authored
      
      Instead of disabling the data cache in the bootelf command, disabling
      it in the do_bootm_qnxelf function.
      Some ELF binary might want the cache enabled.
      
      Signed-off-by: default avatarEmmanuel Vadot <manu@bidouilliste.com>
      995eab8b
    • Tom Rini's avatar
      board_init.c: Always use memset() · c67c8c60
      Tom Rini authored
      
      We can make the code read more easily here by simply using memset()
      always as when we don't have an optimized version of the function we
      will still have a version of this function around anyhow.
      
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      c67c8c60
    • Tom Rini's avatar
      ARM: Default to using optimized memset and memcpy routines · 40d5534c
      Tom Rini authored
      
      We have long had available optimized versions of the memset and memcpy
      functions that are borrowed from the Linux kernel.  We should use these
      in normal conditions as the speed wins in many workflows outweigh the
      relatively minor size increase.  However, we have a number of places
      where we're simply too close to size limits in SPL and must be able to
      make the size vs performance trade-off in those cases.
      
      Cc: Philippe Reynes <tremyfr@yahoo.fr>
      Cc: Eric Jarrige <eric.jarrige@armadeus.org>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Magnus Lilja <lilja.magnus@gmail.com>
      Cc: Lokesh Vutla <lokeshvutla@ti.com>
      Cc: Chander Kashyap <k.chander@samsung.com>
      Cc: Akshay Saraswat <akshay.s@samsung.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefan Roese <sr@denx.de>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      40d5534c
Loading