07 Oct, 2014

1 commit


06 Oct, 2014

14 commits

  • Add code necessary to program the FPGA part of SoCFPGA from U-Boot
    with an RBF blob. This patch also integrates the code into the
    FPGA driver framework in U-Boot so it can be used via the 'fpga'
    command.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    V2: Move the not-CPU specific stuff into drivers/fpga/ and base
    this on the cleaned up altera FPGA support.

    Pavel Machek
     
  • Make the SoCFPGA MMC stub pick clock via the clock manager
    frequency accessors instead of hard-coding the frequency.

    Also fix calloc() misuse.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen

    Pavel Machek
     
  • …ic/drivers/net-20141006', 'topic/tools/mkimage-20141006' and 'topic/arm/cache-20141006' into HEAD

    Marek Vasut
     
  • Add a few new variables to make the cache handling less cryptic.
    Add a variable for DMA and DATA descriptor start and end, so the
    correctness of the code is easier to inspect.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Pavel Machek
    Acked-by: Chin Liang See

    Marek Vasut
     
  • Fix remaining cache alignment issues in the DWC Ethernet driver.
    Please note that the cache handling in the driver is making the
    code hideous and thus the next patch cleans that up. In order to
    make this change reviewable though, the cleanup is split from it.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Old saying says that more than three exclamation marks in a row are
    sign of mental disease. Cleanup micrel.c.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Chin Liang See

    Pavel Machek
     
  • The dw_mmc driver was responding to errors with debug(). Change that
    to prinf()/puts() respectively so that any errors are immediately
    obvious. Also adjust english in comments.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Pantelis Antoniou
    Acked-by: Chin Liang See

    Pavel Machek
     
  • Add a table of FPGA family with matching functions associated with
    it and make all the code just look up the family in that table and
    call the associated function instead of the horrible switch voodoo
    which was duplicated all over the place.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Make the function return either 0 or -EINVAL, that is, normal
    expected error codes and success codes instead of true/false
    nonsense.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Move the function to the top of the file to avoid forward declaration.
    No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Further improve the indentation in the rest of the file, where
    the indentation is initially a bit less brutal. There is no
    functional change in this patch.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Boldly go, where no programmer has gone before and just clean up
    the indentation mayhem. No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    Marek Vasut
     
  • Clean up the printf() statements and get rid of the PRINTF()
    macro by replacing it with debug_cond().

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Partially revert commit 0d01f66d235118 (CFI: cfi_flash write fix for AMD
    legacy).

    flash_full_status_check() used to skip status register parsing when
    flash_status_check() returns OK. This is wrong since flash_status_check()
    must return OK for other status bits to be valid.

    Cc: Ed Swarthout
    Signed-off-by: Baruch Siach
    Signed-off-by: Stefan Roese

    Baruch Siach
     

03 Oct, 2014

6 commits

  • dw_mmc driver was responding to errors with debug(). Change that to
    prinf so that any errors are immediately obvious. Also adjust english
    in comments.

    Signed-off-by: Pavel Machek
    Acked-by: Pantelis Antoniou

    Pavel Machek
     
  • After setting the bus width, the extended CSD register is read. Some selected
    fields are compared with previously read extended CSD register fields. In this
    comparison the EXT_CSD_ERASE_GROUP_DEF field is compared. But this field is
    previously written under certain circumstances. And then the comparison fails.

    Only compare read-only fields. Therefore compare field EXT_CSD_HC_WP_GRP_SIZE
    instead of field EXT_CSD_ERASE_GROUP_DEF.

    Signed-off-by: Mario Schuknecht
    Acked-by: Pantelis Antoniou

    Mario Schuknecht
     
  • In function mvebu_mmc_write notice command timeout. It is possible that a
    command is done, but a timeout occurred.

    Enable timeout in set bus function.

    Set window registers. Without that I could not use the driver on a Kirkwood
    88F6282 SoC.

    Set high capacity and 52MHz driver feature.

    Signed-off-by: Mario Schuknecht
    Reviewed-by: Stefan Roese
    Acked-by: Pantelis Antoniou

    Mario Schuknecht
     
  • The capacity and lba for an MMC device with part_num 0 reflects the
    whole device. When mmc_switch_part() successfully switches to a
    partition, the capacity is changed to that partition. As partition 0
    does not physically exist, attempts to switch back to the whole device
    will indicate an error, but the capacity setting for the whole device
    must still be restored to match the partition.

    Signed-off-by: Peter A. Bigot
    Tested-by: Tom Rini
    Acked-by: Pantelis Antoniou

    Peter Bigot
     
  • if we set manually this bit on the eMMC card using mmc_switch(...),
    we also have to set it within our (before read) internal structure
    'ext_csd'.

    Otherwise following checks on this will fail.

    Acked-by: Pantelis Antoniou
    Signed-off-by: Hannes Petermaier

    Hannes Petermaier
     
  • Wait data transfer till the data end bit other than the data block end
    bit is set.

    Acked-by: Pantelis Antoniou
    Signed-off-by: Sonic Zhang

    Sonic Zhang
     

27 Sep, 2014

2 commits


26 Sep, 2014

5 commits


25 Sep, 2014

11 commits

  • When accumulated ECC is enabled, the DQ_MAP for ECC[4:7] needs to be set
    to 0, i.e. 0->0, 1->1, etc., required by controller logic, even these pins
    are not actually connected.

    Also fix a bug when reading from DDR register to use proper accessor for
    correct endianess.

    Signed-off-by: York Sun

    York Sun
     
  • The driver was written using old DDR3 spec which only covers low speeds.
    The value would be suboptimal for higher speeds. Fix both timing according
    to latest DDR3 spec, remove tCKE as an config option.

    Signed-off-by: York Sun

    York Sun
     
  • U-boot has been initializing DDR for the main memory. The presumption
    is the memory stays as a big continuous block, either linear or
    interleaved. This change is to support putting some DDR controllers
    to separated space without counting into main memory. The standalone
    memory controller could use different number of DIMM slots.

    Signed-off-by: York Sun

    York Sun
     
  • Freescale's flash control driver is using architecture specific timer API
    i.e. usec2ticks

    Replace usec2ticks with get_timer() (generic timer API)

    Signed-off-by: Prabhakar Kushwaha
    Acked-by: Scott Wood
    Reviewed-by: York Sun

    Prabhakar Kushwaha
     
  • [1] Move driver/core/, driver/input/ and drivers/input/ entries
    from the top Makefile to drivers/Makefile

    [2] Remove the conditional by CONFIG_DM in drivers/core/Makefile
    because the whole drivers/core directory is already selected
    by CONFIG_DM in the upper level

    [3] Likewise for CONFIG_DM_DEMO in drivers/demo/Makefile

    [4] Simplify common/Makefile - both CONFIG_DDR_SPD and
    CONFIG_SPD_EEPROM are boolean macros so they can directly
    select objects

    Signed-off-by: Masahiro Yamada
    Acked-by: Marek Vasut

    Masahiro Yamada
     
  • The macro MIN, MAX is defined as the aliase of min, max,
    respectively.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This would be useful to start moving various config options.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass
    Tested-by: Simon Glass

    Masahiro Yamada
     
  • Fix the following build error in case CONFIG_E1000_NO_NVM is enabled:
    CC drivers/net/e1000.o
    drivers/net/e1000.c: In function ‘e1000_initialize’:
    drivers/net/e1000.c:5365:5: error: ‘struct e1000_hw’ has no
    member named ‘eeprom_semaphore_present’
    make[1]: *** [drivers/net/e1000.o] Error 1
    make: *** [drivers/net] Error 2
    Acked-by: Marek Vasut

    Marcel Ziswiler
     
  • - update static function
    - additional debugging statements
    - update "fastboot command" information
    - add missing include file
    - update spelling

    Signed-off-by: Steve Rae

    Steve Rae
     
  • - implement 'fastboot flash' for eMMC devices

    Signed-off-by: Steve Rae
    Acked-by: Lukasz Majewski
    Reviewed-by: Marek Vasut

    Steve Rae
     
  • T1042QDS (T1042 is T1040 Personality without L2 switch) supports following
    sgmii interfaces with serdes protocol 0xA7
    -SGMII-MAC3 on Lane B - slot 7
    -SGMII-MAC5 on Lane H - slot 7
    -SGMII2.5G-MAC1 on Lane C - slot 6
    -SGMII2.5G-MAC2 on Lane D - slot 5

    Add support of above sgmii interfaces

    Signed-off-by: Priyanka Jain

    Priyanka Jain
     

24 Sep, 2014

1 commit