1. 22 10月, 2012 4 次提交
    • M
      common: Add symbol handling for generic lists into Makefile · 97b24d3d
      Marek Vasut 提交于
      This patch adds essential components for generation of the contents of
      the linker section that is used by the linker-generated array. All of
      the contents is held in a separate file, u-boot.lst, which is generated
      at runtime just before U-Boot is linked.
      
      The purpose of this code is to especially generate the appropriate
      boundary symbols around each subsection in the section carrying the
      linker-generated arrays. Obviously, the interim linker code for actual
      placement of the variables into the section is generated too. The
      generated file, u-boot.lst, is included into u-boot.lds via the linker
      INCLUDE directive in u-boot.lds .
      
      Adjustments are made in the Makefile and spl/Makefile so that the
      u-boot.lds and u-boot-spl.lds depend on their respective .lst files.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
      Tested-by: NJoe Hershberger <joe.hershberger@ni.com>
      97b24d3d
    • S
      powerpc/usb: fix bug of CPU hang when missing USB PHY clock · 047cea36
      Shengzhou Liu 提交于
      when missing USB PHY clock, u-boot will hang during USB
      initialization when issuing "usb start". We should check
      USBGP[PHY_CLK_VALID] bit to avoid CPU hanging in this case.
      
      Due to controller issue of PHY_CLK_VALID in ULPI mode, we set
      USB_EN before checking PHY_CLK_VALID, otherwise PHY_CLK_VALID
      doesn't work.
      Signed-off-by: NShengzhou Liu <Shengzhou.Liu@freescale.com>
      Acked-by: NMarek Vasut <marex@denx.de>
      047cea36
    • V
      usb: fallback safely when a configuration descriptor is too large · 8b8d779d
      Vincent Palatin 提交于
      When a USB configuration descriptor was larger than our USB buffer
      (512 bytes), we were skipping the full descriptor reading but then we
      were still parsing and using it, triggering memory corruptions.
      Now in that case, it just skips this device enumeration and displays the
      appropriate message to the user, so he can fix the buffer if he wants.
      
      This bug was triggered by some UVC webcams which have very large
      configuration descriptors (e.g. a couple of kB) describing all their
      supported video encodings.
      Signed-off-by: NVincent Palatin <vpalatin@chromium.org>
      Acked-by: NSimon Glass <sjg@chromium.org>
      8b8d779d
    • G
      usb: Support the CONFIG_SYS_64BIT_LBA option · e81e79ed
      Gabe Black 提交于
      usb_storage wouldn't compile when the CONFIG_SYS_64BIT_LBA option is
      turned on because the used fixed size data types in their exported
      functions when they should have used lbaint_t for the block count
      parameter. That meant that when the sizes happened to be the same, when
      using a 28 bit LBA, the driver would build, but when it wasn't, a 48 bit
      LBA, things broke.
      
      This change adjusts the signatures to use the right type and makes small
      adjustments in the affected functions.
      Signed-off-by: NGabe Black <gabeblack@chromium.org>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NMarek Vasut <marex@denx.de>
      e81e79ed
  2. 20 10月, 2012 24 次提交
  3. 19 10月, 2012 10 次提交
  4. 18 10月, 2012 2 次提交