Skip to content
Snippets Groups Projects
  1. Aug 11, 2008
  2. Jul 14, 2008
  3. Jul 13, 2008
  4. Jul 08, 2008
  5. Jun 05, 2008
    • Shinya Kuribayashi's avatar
      [MIPS] lib_mips/time.c: Fix CP0 count register usage and timer routines · a55d4817
      Shinya Kuribayashi authored
      
      MIPS port has two problems in timer routines. One is now we assume CFG_HZ
      equals to CP0 counter frequency, but this is wrong. CFG_HZ has to be 1000
      in the U-Boot system.
      
      The other is we don't have a proper time management counter like timestamp
      other ARCHs have. We need the 32-bit millisecond clock counter.
      
      This patch introduces timestamp and CYCLES_PER_JIFFY. timestamp is a
      32-bit non-overflowing CFG_HZ counter, and CYCLES_PER_JIFFY is the number
      of calculated CP0 counter cycles in a CFG_HZ.
      
      STRATEGY:
      
      * Fix improper CFG_HZ value to have 1000
      
      * Use CFG_MIPS_TIMER_FREQ for timer counter frequency, instead.
      
      * timer_init: initialize timestamp and set up the first timer expiration.
        Note that we don't need to initialize CP0 count/compare registers here
        as they have been already zeroed out on the system reset. Leave them as
        they are.
      
      * get_timer: calculate how many timestamps have been passed, then return
        base-relative timestamp. Make sure we can easily count missed timestamps
        regardless of CP0 count/compare value.
      
      * get_ticks: return the current timestamp, that is get_timer(0).
      
      Most parts are from good old Linux v2.6.16 kernel.
      
      v2:
      - Remove FIXME comments as they turned out to be trivial.
      - Use CP0 compare register as a global variable for expirelo.
      - Kill a global variable 'cycles_per_jiffy'. Use #define CYCLES_PER_JIFFY
        instead.
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      a55d4817
    • Shinya Kuribayashi's avatar
      [MIPS] lib_mips/time.c: Fix udelay · 199e4f65
      Shinya Kuribayashi authored
      
      What we have to do is just to wait for given micro-seconds. No need to
      take into account current time, get_timer and CFG_HZ.
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      199e4f65
    • Shinya Kuribayashi's avatar
      [MIPS] lib_mips/time.c: Replace CP0 access functions with existing macros · c7e38e41
      Shinya Kuribayashi authored
      
      We already have many pre-defined CP0 access macros in <asm/mipsregs.h>.
      This patch replaces mips_{compare,count}_set and mips_count_get with
      existing macros.
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      c7e38e41
  6. May 29, 2008
  7. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  8. Apr 18, 2008
  9. Mar 12, 2008
  10. Feb 29, 2008
  11. Feb 27, 2008
  12. Feb 25, 2008
    • Marian Balakowicz's avatar
      [new uImage] Add dual format uImage support framework · d5934ad7
      Marian Balakowicz authored
      
      This patch adds framework for dual format images. Format detection is added
      and the bootm controll flow is updated to include cases for new FIT format
      uImages.
      
      When the legacy (image_header based) format is detected appropriate
      legacy specific handling is invoked. For the new (FIT based) format uImages
      dual boot framework has a minial support, that will only print out a
      corresponding debug messages. Implementation of the FIT specific handling will
      be added in following patches.
      
      Signed-off-by: default avatarMarian Balakowicz <m8@semihalf.com>
      d5934ad7
  13. Feb 22, 2008
  14. Feb 07, 2008
  15. Nov 17, 2007
    • Jean-Christophe PLAGNIOL-VILLARD's avatar
      Fixed mips_io_port_base build errors. · 5c15010e
      Jean-Christophe PLAGNIOL-VILLARD authored
      
      This patch has been sent on:
      - 29 Sep 2007
      
      Although mips_io_port_base is currently a part of IDE command, it is quite
      fundamental for MIPS I/O port access such as in[bwl] and out[bwl]. So move
      it to MIPS general part, and introduce `set_io_port_base()' from Linux.
      
      This patch is triggered by multiple definition of `mips_io_port_base' build
      error on gth2 (and tb0229 also needs this fix.)
      
      board/gth2/libgth2.a(gth2.o): In function `log_serial_char':
      /home/skuribay/devel/u-boot.git/board/gth2/gth2.c:47: multiple definition of `mips_io_port_base'
      common/libcommon.a(cmd_ide.o):/home/skuribay/devel/u-boot.git/common/cmd_ide.c:712: first defined here
      make: *** [u-boot] Error 1
      
      Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      5c15010e
  16. Jul 13, 2007
  17. Jul 10, 2007
  18. Jul 09, 2007
  19. Jul 03, 2007
  20. Oct 08, 2006
  21. Sep 01, 2006
    • Marian Balakowicz's avatar
      Add support for a saving build objects in a separate directory. · f9328639
      Marian Balakowicz authored
      Modifications are based on the linux kernel approach and
      support two use cases:
      
        1) Add O= to the make command line
        'make O=/tmp/build all'
      
        2) Set environement variable BUILD_DIR to point to the desired location
        'export BUILD_DIR=/tmp/build'
        'make'
      
      The second approach can also be used with a MAKEALL script
      'export BUILD_DIR=/tmp/build'
      './MAKEALL'
      
      Command line 'O=' setting overrides BUILD_DIR environent variable.
      
      When none of the above methods is used the local build is performed and
      the object files are placed in the source directory.
      f9328639
  22. Mar 31, 2006
  23. Dec 03, 2005
  24. Dec 01, 2005
  25. Oct 28, 2005
  26. Jul 01, 2004
  27. May 29, 2004
  28. Feb 07, 2004
    • Wolfgang Denk's avatar
      * Patch by liang a lei, 9 Jan 2004: · f4863a7a
      Wolfgang Denk authored
        Fix Intel 28F128J3 ID in include/flash.h
      
      * Patch by Masami Komiya, 09 Jan 2004:
        add support for TB0229 board (NEC VR4131 MIPS processor)
      
      * Patch by Leon Kukovec, 12 Dec 2003:
        changed extern __inline__ into static __inline__ in
        include/linux/byteorder/swab.h
      f4863a7a
  29. Dec 27, 2003
    • Wolfgang Denk's avatar
      * Make CPU clock on ICA-IP board controllable by a "cpuclk" · 7cb22f97
      Wolfgang Denk authored
        environment variable which can set to "100", "133", or "150". The
        CPU clock will be configured accordingly upon next reboot. Other
        values are ignored. In case of an invalid or undefined "cpuclk"
        value, the compile-time default CPU clock speed will be used.
      
      * Enable Quad-UART on BMS2003 board (initialize the PCMCIA memory
        window that is used to access the UART registers by the Linux driver)
      
      * Patch by Reinhard Meyer, 20 Dec 2003:
        Fix clock calculation for the MPC5200 for higher clock frequencies
        (above 2**32 / 10 = 429.5 MHz).
      7cb22f97
  30. Dec 07, 2003
    • Wolfgang Denk's avatar
      * Patches by David Mller, 14 Nov 2003: · a2663ea4
      Wolfgang Denk authored
        - board/mpl/common/common_util.c
          * implement support for BZIP2 compressed images
          * various cleanups (printf -> puts, ...)
        - board/mpl/common/flash.c
          * report correct errors to upper layers
          * check the erase fail and VPP low bits in status reg
        - board/mpl/vcma9/cmd_vcma9.c
        - board/mpl/vcma9/flash.c
          * various cleanups (printf -> puts, ...)
        - common/cmd_usb.c
          * fix typo in comment
        - cpu/arm920t/usb_ohci.c
          * support for S3C2410 is missing in #if line
        - drivers/cs8900.c
          * reinit some registers in case of error (cable missing, ...)
        - fs/fat/fat.c
          * support for USB/MMC devices is missing in #if line
        - include/configs/MIP405.h
        - include/configs/PIP405.h
          * enable BZIP2 support
          * enlarge malloc space to 1MiB because of BZIP2 support
        - include/configs/VCMA9.h
          * enable BZIP2 support
          * enlarge malloc space to 1MiB because of BZIP2 support
          * enable USB support
        - lib_arm/armlinux.c
          * change calling convention of ARM Linux kernel as
            described on http://www.arm.linux.org.uk/developer/booting.php
      
      * Patch by Thomas Lange, 14 Nov 2003:
        Split dbau1x00 into dbau1000, dbau1100 and dbau1500 configs to
        support all these AMD boards.
      
      * Patch by Thomas Lange, 14 Nov 2003:
        Workaround for mips au1x00 physical memory accesses (the au1x00
        uses a 36 bit bus internally and cannot access physical memory
        directly. Use the uncached SDRAM address instead of the physical
        one.)
      a2663ea4
  31. Oct 09, 2003
Loading