Skip to content
Snippets Groups Projects
  1. Jul 04, 2011
    • Aneesh V's avatar
      armv7: integrate cache maintenance support · c2dd0d45
      Aneesh V authored
      
      - Enable I-cache on bootup
      - Enable MMU and D-cache immediately after relocation
      	- Do necessary initialization before enabling d-cache and MMU
      - Changes to cleanup_before_linux()
      	- Make changes according to the new framework
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      c2dd0d45
    • Aneesh V's avatar
      armv7: rename cache related CONFIG flags · e47f2db5
      Aneesh V authored
      
      Replace the cache related CONFIG flags with more meaningful
      names. Following are the changes:
      
      CONFIG_L2_OFF	     -> CONFIG_SYS_L2CACHE_OFF
      CONFIG_SYS_NO_ICACHE -> CONFIG_SYS_ICACHE_OFF
      CONFIG_SYS_NO_DCACHE -> CONFIG_SYS_DCACHE_OFF
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      V2:
       * Changed CONFIG_L2_OFF -> CONFIG_SYS_NO_L2CACHE
      V4:
       * Changed all three flags to the final names suggested as above
         and accordingly changed the commit message
      e47f2db5
    • Aneesh V's avatar
      armv7: cache maintenance operations for armv7 · 2c451f78
      Aneesh V authored
      
      - Add a framework for layered cache maintenance
      	- separate out SOC specific outer cache maintenance from
      	  maintenance of caches known to CPU
      
      - Add generic ARMv7 cache maintenance operations that affect all
        caches known to ARMv7 CPUs. For instance in Cortex-A8 these
        opertions will affect both L1 and L2 caches. In Cortex-A9
        these will affect only L1 cache
      
      - D-cache operations supported:
      	- Invalidate entire D-cache
      	- Invalidate D-cache range
      	- Flush(clean & invalidate) entire D-cache
      	- Flush D-cache range
      - I-cache operations supported:
      	- Invalidate entire I-cache
      
      - Add maintenance functions for TLB, branch predictor array etc.
      
      - Enable -march=armv7-a so that armv7 assembly instructions can be
        used
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      2c451f78
    • Aneesh V's avatar
      arm: make default implementation of cache_flush() weakly linked · 4c93da7c
      Aneesh V authored
      
      make default implementation of cache_flush() weakly linked so that
      sub-architectures can override it
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      4c93da7c
  2. Jul 01, 2011
  3. Jun 30, 2011
  4. Jun 29, 2011
    • Mike Frysinger's avatar
      cfi_flash: reverse geometry for newer STM parts · 4c2105cb
      Mike Frysinger authored
      
      For newer STM parts where CFI >= 1.1, there is a byte in the extended
      structure that declares the flash layout type (just like the AMD parts),
      so key off of that to find out when we need to reverse the geometry.
      
      This can be seen with M29W640 parts where U-Boot does:
      Bank # 1: CFI conformant FLASH (16 x 16)  Size: 8 MB in 135 Sectors
        AMD Standard command set, Manufacturer ID: 0x20, Device ID: 0x22ED
        Erase timeout: 8192 ms, write timeout: 1 ms
        Buffer write timeout: 1 ms, buffer size: 16 bytes
      
        Sector Start Addresses:
        20000000   RO   20002000   RO   20004000   RO   20006000   RO   20008000   RO
        2000A000   RO   2000C000   RO   2000E000   RO   20010000   RO   20020000   RO
        ...
      
      But Linux does:
      physmap platform flash device: 00800000 at 20000000
      physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank.
                       Manufacturer ID 0x000020 Chip ID 0x0022ed
      physmap-flash.0: Swapping erase regions for top-boot CFI table.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      4c2105cb
  5. Jun 27, 2011
  6. Jun 25, 2011
  7. Jun 23, 2011
  8. Jun 22, 2011
    • Mike Frysinger's avatar
      tools: make it possible to build tools unconfigured · 2ad6e27d
      Mike Frysinger authored
      On Sunday, June 19, 2011 13:55:13 Ilya Yanok wrote:
      > On 18.06.2011 23:03, Mike Frysinger wrote:
      > >>  - tools/Makefile put common/env_embedded.o and envcrc.o to object list
      > >>
      > >> conditionally. This fixes errors during dependency generation.
      > >
      > > pretty sure this breaks board builds.  if the only thing this fixes is a
      >
      > I'm sorry but I can't see how this can break the builds. Could you
      > please be more specific? I've tried to build some boards, it actually
      > works...
      
      i might be thinking of a different env_embedded situation.  a different
      problem with your patch to tools/Makefile: you copied the same logic multiple
      times which means more bitrot.
      
      why dont you do something like:
      
      > > harmless warning when generating dependency files, then i say ignore it.
      > > after all, this is how it has always worked in the past and no one really
      > > cared.
      >
      > Yep, they are harmless but they are not warnings but rather scary errors
      > actually. ;) I think it's better to fix them.
      
      i guess my threshold for being scared is a bit higher :p
      -mike
      2ad6e27d
    • Ilya Yanok's avatar
      Makefile: move $(VERSION_FILE) rule out of ifeq configured · 28abd48f
      Ilya Yanok authored
      
      mkimage relies on autogenerated version so we need to move
      $(VERSION_FILE) rule out of ifeq and make tools rule depend on it to be
      able to run 'make tools' from the unconfigured tree.
      
      Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      28abd48f
    • Ilya Yanok's avatar
      config.mk: move LDSCRIPT processing to the top-level Makefile · d51dfff7
      Ilya Yanok authored
      
      LDSCRIPT is used only from the top-level Makefile and only when the
      system is configured so we can move LDSCRIPT and CONFIG_SYS_LDSCRIPT
      related logic into the top level Makefile and under configured condition
      to avoid errors when building tools from unconfigured tree.
      
      Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      d51dfff7
Loading