1. 03 4月, 2014 2 次提交
    • P
      lib: uuid: code refactor for proper maintain between uuid bin and string · d718ded0
      Przemyslaw Marczak 提交于
      Changes in lib/uuid.c to:
      - uuid_str_to_bin()
      - uuid_bin_to_str()
      
      New parameter is added to specify input/output string format in listed functions
      This change allows easy recognize which UUID type is or should be stored in given
      string array. Binary data of UUID and GUID is always stored in big endian, only
      string representations are different as follows.
      
      String byte: 0                                  36
      String char: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      string UUID:    be     be   be   be       be
      string GUID:    le     le   le   be       be
      
      This patch also updates functions calls and declarations in a whole code.
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: trini@ti.com
      d718ded0
    • P
      part_efi: move uuid<->string conversion functions into lib/uuid.c · a96a0e61
      Przemyslaw Marczak 提交于
      This commit introduces cleanup for uuid library.
      Changes:
      - move uuid<->string conversion functions into lib/uuid.c so they can be
        used by code outside part_efi.c.
      - rename uuid_string() to uuid_bin_to_str() for consistency with existing
        uuid_str_to_bin()
      - add an error return code to uuid_str_to_bin()
      - update existing code to the new library functions.
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: trini@ti.com
      a96a0e61
  2. 02 4月, 2014 1 次提交
  3. 29 3月, 2014 4 次提交
  4. 24 3月, 2014 3 次提交
    • P
      mmc: Split mmc struct, rework mmc initialization (v2) · 93bfd616
      Pantelis Antoniou 提交于
      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: NPantelis Antoniou <panto@antoniou-consulting.com>
      93bfd616
    • P
      mmc: Convert mmc struct's name array to a pointer · 22cb7d33
      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: NPantelis Antoniou <panto@antoniou-consulting.com>
      22cb7d33
    • P
      mmc: Remove ops from struct mmc and put in mmc_ops · ab769f22
      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: NPantelis Antoniou <panto@antoniou-consulting.com>
      ab769f22
  5. 23 3月, 2014 4 次提交
    • H
      am335x, dfu: add DFU_MANIFEST_POLL_TIMEOUT to the siemens boards · 401341d6
      Heiko Schocher 提交于
      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: NHeiko Schocher <hs@denx.de>
      Reviewed-by: NLukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      401341d6
    • H
      usb: dfu: introduce dfuMANIFEST state · 001a8319
      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: NHeiko Schocher <hs@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      001a8319
    • H
      usb, dfu: extract flush code into seperate function · a2199afe
      Heiko Schocher 提交于
      move the flushing code into an extra function dfu_flush(),
      so it can be used from other code.
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      a2199afe
    • P
      sandbox: Enable CONFIG_CMD_LZMADEC in sandbox.h · def23217
      Patrice Bouchand 提交于
      As Simon Glass requested it, here's a patch that enables
      CONFIG_CMD_LZMADEC in sandbox.
      Signed-off-by: NPatrice Bouchand <pbfwdlist@gmail.com>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      def23217
  6. 18 3月, 2014 16 次提交
  7. 13 3月, 2014 7 次提交
  8. 11 3月, 2014 1 次提交
    • S
      usb: create common header virtual root hub descriptors · eb838e7d
      Stephen Warren 提交于
      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 <thomas@corelatus.se>
      Cc: Shinya Kuribayashi <skuribay@pobox.com>
      Cc: Gary Jennejohn <garyj@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Eric Millbrandt <emillbrandt@coldhaus.com>
      Cc: Pierre Aubert <p.aubert@staubli.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Denis Peter <d.peter@mpl.ch>
      Cc: Rodolfo Giometti <giometti@linux.it>
      Cc: Zhang Wei <wei.zhang@freescale.com>
      Cc: Mateusz Zalega <m.zalega@samsung.com>
      Cc: Remy Bohmer <linux@bohmer.net>
      Cc: Markus Klotzbuecher <mk@denx.de>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Gary Jennejohn <garyj@denx.de>
      Cc: C Nauman <cnauman@diagraph.com>
      Cc: David Müller <d.mueller@elsoft.ch>
      Cc: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Cc: Thomas Abraham <t-abraham@ti.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Andrew Murray <amurray@embedded-bits.co.uk>
      Cc: Matej Frančeškin <matej.franceskin@comtrade.com>
      Cc: Cliff Cai <cliff.cai@analog.com>
      Cc: Bryan Wu <cooloney@gmail.com>
      Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
      eb838e7d
  9. 10 3月, 2014 2 次提交