1. 20 12月, 2009 2 次提交
    • T
      USB add macros for debugging usb device setup. · 988365a2
      Tom Rix 提交于
      When developing usb device features, it is useful to print out
      common usb structures.
      Signed-off-by: NTom Rix <Tom.Rix@windriver.com>
      988365a2
    • T
      USB Consolidate descriptor definitions · 8f8bd565
      Tom Rix 提交于
      The header files usb.h and usbdescriptors.h have the same nameed
      structure definitions for
      
      usb_config_descriptor
      usb_interface_descriptor
      usb_endpoint_descriptor
      usb_device_descriptor
      usb_string_descriptor
      
      These are out right duplicates in usb.h
      
      usb_device_descriptor
      usb_string_descriptor
      
      This one has extra unused elements
      
      usb_endpoint_descriptor
      
      	unsigned char	bRefresh
      	unsigned char	bSynchAddress;
      
      These in usb.h have extra elements at the end of the usb 2.0
      specified descriptor and are used.
      
      usb_config_descriptor
      usb_interface_descriptor
      
      The change is to consolidate the definition of the descriptors
      to usbdescriptors.h.  The dublicates in usb.h are removed.
      The extra element structure will have their name shorted by
      removing the '_descriptor' suffix.
      
      So
      
      usb_config_descriptor -> usb_config
      usb_interface_descriptor -> usb_interface
      
      For these, the common descriptor elements are accessed now
      by an element 'desc'.
      
      As an example
      
      -	if (iface->bInterfaceClass != USB_CLASS_HUB)
      +	if (iface->desc.bInterfaceClass != USB_CLASS_HUB)
      
      This has been compile tested on MAKEALL arm, ppc and mips.
      Signed-off-by: NTom Rix <Tom.Rix@windriver.com>
      8f8bd565
  2. 16 12月, 2009 3 次提交
  3. 15 12月, 2009 2 次提交
  4. 12 12月, 2009 1 次提交
  5. 10 12月, 2009 1 次提交
    • P
      mpc83xx: boot time regression, move LCRR setup back to cpu_init_f · 3b887ca8
      Peter Korsgaard 提交于
      Commit c7190f02 (retain POR values of non-configured ACR, SPCR, SCCR,
      and LCRR bitfields) moved the LCRR assignment to after relocation
      to RAM because of the potential problem with changing the local bus
      clock while executing from flash.
      
      This change unfortunately adversely affects the boot time, as running
      all code up to cpu_init_r can cause significant slowdown.
      
      E.G. on a 8347 board a bootup time increase of ~600ms has been observed:
      
         0.020 CPU:   e300c1, MPC8347_PBGA_EA, Rev: 3.0 at 400 MHz, CSB: 266.667 MHz
         0.168 RS:    232
         0.172 I2C:   ready
         0.176 DRAM:  64 MB
         1.236 FLASH: 32 MB
      
      Versus:
      
         0.016 CPU:   e300c1, MPC8347_PBGA_EA, Rev: 3.0 at 400 MHz, CSB: 266.667 MHz
         0.092 RS:    232
         0.092 I2C:   ready
         0.096 DRAM:  64 MB
         0.644 FLASH: 32 MB
      
      So far no boards have needed the late LCRR setup, so simply revert it
      for now - If it is needed at a later time, those boards can either do
      their own final LCRR setup in board code (E.G. in board_early_init_r),
      or we can introduce a CONFIG_SYS_LCRR_LATE config option to only do
      the setup in cpu_init_r.
      Signed-off-by: NPeter Korsgaard <jacmet@sunsite.dk>
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      3b887ca8
  6. 09 12月, 2009 2 次提交
  7. 08 12月, 2009 21 次提交
  8. 06 12月, 2009 1 次提交
  9. 05 12月, 2009 7 次提交
    • W
      Merge branch 'master' into next · 2a49bf31
      Wolfgang Denk 提交于
      Conflicts:
      	board/esd/plu405/plu405.c
      	drivers/rtc/ftrtc010.c
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      2a49bf31
    • M
      lzma: ignore unset filesizes · f68ab43d
      Mike Frysinger 提交于
      The Linux kernel build system changed how it compresses things with LZMA
      such that the header no longer contains the filesize (it is instead set to
      all F's).  So if we get a LZMA image that has -1 for the 64bit field,
      let's just assume that the decompressed size is unknown and continue on.
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      f68ab43d
    • D
      README: Rearrange paragraphs to regain linear arrangement. · cccfc2ab
      Detlev Zundel 提交于
      Two later additions to the Configuration Option section unfortunately
      split the description of Show boot progress and the list of its call outs.
      Signed-off-by: NDetlev Zundel <dzu@denx.de>
      cccfc2ab
    • J
      zlib: Optimize decompression · cd514aeb
      Joakim Tjernlund 提交于
      This patch optimizes the direct copy procedure.
      Uses get_unaligned() but only in one place.
      The copy loop just above this one can also use this
      optimization, but I havn't done so as I have not tested if it
      is a win there too.
      On my MPC8321 this is about 17% faster on my JFFS2 root FS
      than the original. No speed test has been performed in u-boot.
      
      Size increase on ppc: 484 bytes
      Signed-off-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      Acked-by: NPeter Korsgaard <jacmet@sunsite.dk>
      cd514aeb
    • P
      add lzop decompression support · 20dde48b
      Peter Korsgaard 提交于
      Add lzop decompression support to the existing lzo bitstream handling
      (think gzip versus zlib), and support it for uImage decompression if
      CONFIG_LZO is enabled.
      
      Lzop doesn't compress as good as gzip (~10% worse), but decompression
      is very fast (~0.7s faster here on a slow ppc). The lzop decompression
      code is based on Albin Tonnerre's recent ARM Linux lzo support patch.
      
      Cc: albin.tonnerre@free-electrons.com
      Signed-off-by: NPeter Korsgaard <jacmet@sunsite.dk>
      20dde48b
    • P
      tools/mkimage: Print FIT image contents after creation · c81296c1
      Peter Tyser 提交于
      Previously, there was no indication to the user that a FIT image was
      successfully created after executing mkimage.  For example:
      
        $ mkimage -f uImage.its uImage.itb
        DTC: dts->dtb  on file "uImage.its"
      
      Adding some additional output after creating a FIT image lets the user
      know exactly what is contained in their image, eg:
      
        $ mkimage -f uImage.its uImage.itb
        DTC: dts->dtb  on file "uImage.its"
        FIT description: Linux kernel 2.6.32-rc7-00201-g7550d6f-dirty
        Created:         Tue Nov 24 15:43:01 2009
         Image 0 (kernel@1)
          Description:  Linux Kernel 2.6.32-rc7-00201-g7550d6f-dirty
          Type:         Kernel Image
          Compression:  gzip compressed
          Data Size:    2707311 Bytes = 2643.86 kB = 2.58 MB
          Architecture: PowerPC
          OS:           Linux
          Load Address: 0x00000000
          Entry Point:  0x00000000
          Hash algo:    crc32
          Hash value:   efe0798b
          Hash algo:    sha1
          Hash value:   ecafba8c95684f2c8fec67e33c41ec88df1534d7
         Image 1 (fdt@1)
          Description:  Flattened Device Tree blob
          Type:         Flat Device Tree
          Compression:  uncompressed
          Data Size:    12288 Bytes = 12.00 kB = 0.01 MB
          Architecture: PowerPC
          Hash algo:    crc32
          Hash value:   a5cab676
          Hash algo:    sha1
          Hash value:   168722b13e305283cfd6603dfe8248cc329adea6
         Default Configuration: 'config@1'
         Configuration 0 (config@1)
          Description:  Default Linux kernel
          Kernel:       kernel@1
          FDT:          fdt@1
      
      This brings the behavior of creating a FIT image in line with creating a
      standard uImage, which also prints out the uImage contents after
      creation.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      c81296c1
    • P
      tools/fit_image.c: Remove unused fit_set_header() · 8e1c8966
      Peter Tyser 提交于
      The FIT fit_set_header() function was copied from the standard uImage's
      image_set_header() function during mkimage reorganization.  However, the
      fit_set_header() function is not used since FIT images use a standard
      device tree blob header.
      Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
      8e1c8966