Skip to content
Snippets Groups Projects
  1. Mar 06, 2012
  2. Mar 04, 2012
    • Thomas Weber's avatar
      b199c6e2
    • Linus Walleij's avatar
      integrator: remove fragile delay loop from PCI code · fca94c3f
      Linus Walleij authored
      
      The reference implementation of the PCI initialization code almost
      everywhere contain this fragile loop of "a few usecs", and its
      use of volatile variables to delay a number of bus cycles is indeed
      uncertain.
      
      Reading the manual "Integrator/AP Users Guide", page 5-15 it is
      clearly stated:
      
      "Wait until 230ms after the end of the reset period before
      accessing V360EPC internal registers. The V360EPC supports the
      use of a serial configuration PROM and the software must wait for
      the device to detect the absence of this PROM before accessing any
      registers. The required delay is a function of the PCI Clock, but
      at the lower frequency (25MHz) is 230ms".
      
      So let's simply wait 230ms per the spec.
      
      This solves the compilation error that looked like this:
      pci.c: In function ‘pci_init_board’:
      pci.c:286:18: warning: variable ‘j’ set but not used
      
      Reported-by: default avatarWolfgang Denk <wd@denx.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      fca94c3f
    • Linus Walleij's avatar
      pci: move pciauto_config_init() to pci.h · a1e47b66
      Linus Walleij authored
      
      Fixing build regressions for the Integrator I get find that a few
      boards try to work around the missing declaration of
      pciauto_config_init() by declaring it in the local scope. This
      does not make sense when the sibling functions are in <pci.h>
      so move the function to the header, ridding the build error
      in the Integrator and getting rid of the local declarations
      here and there.
      
      Reported-by: default avatarWolfgang Denk <wd@denx.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      a1e47b66
  3. Mar 03, 2012
  4. Feb 29, 2012
    • prabhakar.csengg@gmail.com's avatar
      Ethernut 5: fix build error · 2271e7c6
      prabhakar.csengg@gmail.com authored
      
      Fix build error for ethernut5 board due to prototype change
      for function board_mmc_getcd().
      ethernut5.c:238: error: conflicting types for 'board_mmc_getcd'
      u-boot/include/mmc.h:318: note: previous declaration of 'board_mmc_getcd'
      was here
      make[2]: *** [ethernut5.o] Error 1
      
      Signed-off-by: default avatarPrabhakar Lad <prabhakar.csengg@gmail.com>
      Cc: Tim Schendekehl <tim.schendekehl@egnite.de>
      Cc: Thierry Reding <thierry.reding@avionic-design.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: egnite GmbH <info@egnite.de>
      2271e7c6
  5. Feb 28, 2012
  6. Feb 27, 2012
    • Aneesh V's avatar
      armv7: omap3: leave outer cache enabled · f1f2c3ca
      Aneesh V authored
      
      Mainline kernel for OMAP3 doesn't enable L2 cache
      It expects L2$ to be enabled by ROM-code/bootloader.
      
      Leaving L2$ enabled can be troublesome in cases where
      the L2 cache is not under CP15 control, such as in
      Cortex-A9. This problem is explained in detail in
      the commit dc7100f4
      
      However, this problem doesn't apply to Cortex-A8
      because L2$ in Cortex-A8 is under CP15 control and
      hence the generic armv7 maintenance opertions work
      for it.
      
      As such we can make an exception for OMAP3 and
      leave the L2$ enabled when we jump to kernel. This
      is done by removing the strongly-linked implementation
      of v7_outer_cache_disable() and allowing it to fall
      back to the weakly linked implementation that doesn't
      do anything.
      
      Signed-off-by: default avatarAneesh V <aneesh@ti.com>
      f1f2c3ca
Loading