22 Oct, 2012

6 commits

  • Add section for the linker-generated lists into all possible linker
    files, so that everyone can easily use these lists. This is mostly
    a mechanical adjustment.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     
  • This patch adds support for linker-generated array. These arrays
    are a generalization of the U-Boot command declaration approach.

    Basically, the idea is to generate an array, where elements of the
    array are statically initialized at compile time and each element
    is declared separatelly at different place. Such array is assembled
    together into continuous piece of memory by linker and a pointer to
    it's first entry can then be retrieved via accessor.

    The actual implementation relies on placing any variable that is to
    represent an element of LG-array into particular subsection of the
    .u_boot_list linker section . The subsection is determined by user
    options. Once compiled, it is possible to dump all symbols placed
    in .u_boot_list section and the subsections in which they should be
    and generate appropriate bounds for each requested subsection of the
    .u_boot_list section. Each such subsection thus contains __start and
    __end entries at the begining and end respecitively.

    This allows for simple run-time traversing of the array, since the
    symbols are properly defined.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    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: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger
    Acked-by: Joe Hershberger
    Tested-by: Joe Hershberger

    Marek Vasut
     
  • 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: Shengzhou Liu
    Acked-by: Marek Vasut

    Shengzhou Liu
     
  • 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: Vincent Palatin
    Acked-by: Simon Glass

    Vincent Palatin
     
  • 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: Gabe Black
    Signed-off-by: Simon Glass
    Reviewed-by: Marek Vasut

    Gabe Black
     

20 Oct, 2012

24 commits


19 Oct, 2012

10 commits