29 Mar, 2014

2 commits


28 Mar, 2014

2 commits


24 Mar, 2014

3 commits

  • The way that struct mmc was implemented was a bit of a mess;
    configuration and internal state all jumbled up in a single structure.

    On top of that the way initialization is done with mmc_register leads
    to a lot of duplicated code in drivers.

    Typically the initialization got something like this in every driver.

    struct mmc *mmc = malloc(sizeof(struct mmc));
    memset(mmc, 0, sizeof(struct mmc);
    /* fill in fields of mmc struct */
    /* store private data pointer */
    mmc_register(mmc);

    By using the new mmc_create call one just passes an mmc config struct
    and an optional private data pointer like this:

    struct mmc = mmc_create(&cfg, priv);

    All in tree drivers have been updated to the new form, and expect
    mmc_register to go away before long.

    Changes since v1:

    * Use calloc instead of manually calling memset.
    * Mark mmc_register as deprecated.

    Signed-off-by: Pantelis Antoniou

    Pantelis Antoniou
     
  • Using an array is pointless; even more pointless (and scary) is using
    sprintf to fill it without a format string.

    Signed-off-by: Pantelis Antoniou

    Pantelis Antoniou
     
  • Remove the in-structure ops and put them in mmc_ops with
    a constant pointer to it.

    This makes the mmc structure smaller as well as conserving
    code space (in theory).

    All in-tree drivers are converted as well; this is done in a
    single patch in order to not break git bisect.

    Changes since V1:
    Fix compilation b0rked issue on omap platforms where OMAP_GPIO was
    not set.

    Signed-off-by: Pantelis Antoniou

    Pantelis Antoniou
     

23 Mar, 2014

4 commits

  • as the siemens boards use dfu for updating a nand ubi partition
    add DFU_MANIFEST_POLL_TIMEOUT to them, so dfu host waits after
    complete transfer of the new image for DFU_MANIFEST_POLL_TIMEOUT
    ms before sending again an usb request. So the board have enough
    time to erase rest of the nand sectors.

    Signed-off-by: Heiko Schocher
    Reviewed-by: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Pantelis Antoniou

    Heiko Schocher
     
  • on nand flash using ubi, after the download of the new image into
    the flash, the "rest" of the nand sectors get erased while flushing
    the medium. With current u-boot version dfu-util may show:

    Starting download: [##################################################] finished!
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    unable to read DFU status

    as get_status is not answered while erasing sectors, if erasing
    needs some time.

    So do the following changes to prevent this:

    - introduce dfuManifest state
    According to dfu specification
    ( http://www.usb.org/developers/devclass_docs/usbdfu10.pdf ) section 7:
    "the device enters the dfuMANIFEST-SYNC state and awaits the solicitation
    of the status report by the host. Upon receipt of the anticipated
    DFU_GETSTATUS, the device enters the dfuMANIFEST state, where it
    completes its reprogramming operations."

    - when stepping into dfuManifest state, sending a PollTimeout
    DFU_MANIFEST_POLL_TIMEOUT in ms, to the host, so the host
    (dfu-util) waits the PollTimeout before sending a get_status again.

    Signed-off-by: Heiko Schocher
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Marek Vasut
    Cc: Pantelis Antoniou

    Heiko Schocher
     
  • move the flushing code into an extra function dfu_flush(),
    so it can be used from other code.

    Signed-off-by: Heiko Schocher
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Marek Vasut
    Cc: Pantelis Antoniou

    Heiko Schocher
     
  • As Simon Glass requested it, here's a patch that enables
    CONFIG_CMD_LZMADEC in sandbox.

    Signed-off-by: Patrice Bouchand
    Signed-off-by: Simon Glass

    Patrice Bouchand
     

18 Mar, 2014

16 commits


13 Mar, 2014

7 commits


11 Mar, 2014

3 commits

  • Tom Rini
     
  • Tom Rini
     
  • Many USB host controller drivers contain almost identical copies of the
    same virtual root hub descriptors. Put these into a common file to avoid
    duplication.

    Note that there were some very minor differences between the descriptors
    in the various files, such as:

    - USB 1.0 vs. USB 1.1
    - Manufacturer/Device ID
    - Max packet size
    - String content

    I assume these aren't relevant.

    Cc: Thomas Lange
    Cc: Shinya Kuribayashi
    Cc: Gary Jennejohn
    Cc: Wolfgang Denk
    Cc: Eric Millbrandt
    Cc: Pierre Aubert
    Cc: Stefan Roese
    Cc: Daniel Hellstrom
    Cc: Denis Peter
    Cc: Rodolfo Giometti
    Cc: Zhang Wei
    Cc: Mateusz Zalega
    Cc: Remy Bohmer
    Cc: Markus Klotzbuecher
    Cc: Minkyu Kang
    Cc: Gary Jennejohn
    Cc: C Nauman
    Cc: David Müller
    Cc: Yoshihiro Shimoda
    Cc: Nobuhiro Iwamatsu
    Cc: Thomas Abraham
    Cc: Tom Rini
    Cc: Andrew Murray
    Cc: Matej Frančeškin
    Cc: Cliff Cai
    Cc: Bryan Wu
    Signed-off-by: Stephen Warren

    Stephen Warren
     

10 Mar, 2014

3 commits