Skip to content
Snippets Groups Projects
  1. Jan 21, 2016
  2. Jan 20, 2016
  3. Jan 19, 2016
  4. Jan 16, 2016
  5. Jan 15, 2016
  6. Jan 14, 2016
    • Phil Sutter's avatar
      mvebu: axp: Rename MV_DDR_32BIT to CONFIG_DDR_32BIT · 4444d230
      Phil Sutter authored
      
      This should make it clear that this symbol is meant to be defined by
      board headers.
      
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      4444d230
    • Phil Sutter's avatar
      drivers/pci/pci_mvebu: Fix for boards with X4 lanes · 9a045278
      Phil Sutter authored
      
      Armada XP has support for X4 lanes, boards specify this in their
      serdes_cfg. During PEX init in high_speed_env_lib.c, the configuration
      is stored in GEN_PURP_RES_2_REG.
      
      When enumerating PEX, subsequent interfaces of an X4 lane must be
      skipped. Otherwise the enumeration hangs up the board.
      
      The way this is implemented here is not exactly beautiful, but it mimics
      how Marvell's BSP does it. Alternatively we could get the information
      using board_serdes_cfg_get(), but that won't lead to clean code, either.
      
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      9a045278
    • Phil Sutter's avatar
      axp: Fix debugging support in DDR3 write leveling · 7e1e59a7
      Phil Sutter authored
      
      If MV_DEBUG_WL is defined, DEBUG_WL_S and DEBUG_WL_D macros are missing.
      In addition to that, get rid of debug output printing non-existent
      counter variable.
      
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      7e1e59a7
    • Phil Sutter's avatar
      drivers/pci: Fix for debug builds without CONFIG_PCI_ENUM_ONLY · 11131467
      Phil Sutter authored
      
      The debug printing references bar_res, which exists only if
      CONFIG_PCI_ENUM_ONLY is not defined. Therefore move it into the ifdef'd
      area.
      
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      11131467
    • Stefan Roese's avatar
      arm: mvebu: Move SoC selection (A38X vs AXP) into Kconfig · 81e33f4b
      Stefan Roese authored
      
      Until now, the SoC selection for the ARCH_MVEBU platforms has been done
      in the config header. Using CONFIG_ARMADA_XP in a non-clear way. As
      it needed to get selected for AXP and A38x based boards. This patch
      now changes this to move the SoC selection to Kconfig. And also
      uses CONFIG_ARCH_MVEBU as a common define for both AXP and A38x.
      This makes things a bit clearer - especially for new board additions.
      
      Additionally the defines CONFIG_SYS_MVEBU_DDR_AXP and
      CONFIG_SYS_MVEBU_DDR_A38X are replaced with the already available
      CONFIG_ARMADA_38X and CONFIG_ARMADA_XP.
      
      And CONFIG_DDR3 is removed, as its not referenced anywhere.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      81e33f4b
    • Stefan Roese's avatar
      arm: mvebu: Make ECC support configurable on Armada XP · 698ffab2
      Stefan Roese authored
      
      Currently, ECC support is enabled for all Armada XP boards. So the
      DDR3 driver tries to configure the controller with ECC support, even
      on boards without ECC. This patch makes this ECC optional which now
      can be configured on a board-per-board basis.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Phil Sutter <phil@nwl.cc>
      698ffab2
    • Tor Krill's avatar
      sata: Add SATA driver with DMA support for Marvell Kirkwood and Armada XP · 169789dc
      Tor Krill authored
      This patch adds a new SATA driver for the Marvell Kirkwood and Armada
      370 / XP SoC's.
      
      This driver supports the SATA controller of some Mavell SoC's.
      Here a (most likely incomplete) list of the supported SoC's:
      - Kirkwood
      - Armada 370
      - Armada XP
      
      This driver implementation is an alternative to the already available
      driver via the "ide" commands interface (drivers/block/mvsata_ide.c).
      But this driver only supports PIO mode and as this new driver also
      supports transfer via DMA, its much faster.
      
      Please note, that the newer SoC's (e.g. Armada 38x) are not supported
      by this driver. As they have an AHCI compatible SATA controller
      integrated.
      
      The original version of this driver was sent by Tor Krill to the U-Boot
      list a few years ago. Here the link:
      
      http://lists.denx.de/pipermail/u-boot/2010-June/073147.html
      
      
      
      Changes by Stefan:
      - Coding-style cleanup
      - Support for Armada XP added
      - MBUS window setup added
      - D-cache flush and invalidation added - works with dcache enabled on
        Armada XP
      - Removed mdelay() from ata_wait_register() and add timer based timeout
        detection to speed up the transfer
      
      Signed-off-by: default avatarTor Krill <tor@excito.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Tom Rini <trini@konsulko.com>
      169789dc
    • Stefan Roese's avatar
      net: mvneta: Convert to driver model · e3b9c98a
      Stefan Roese authored
      
      Update this driver to support driver model. As all MVEBU boards using
      this driver are converted with this patch, the non-driver-model code
      can be removed completely. This is also the reason why this patch
      is quite big and includes a) the driver change and b) the
      platform change. As its not git-bisect save otherwise.
      
      With this conversion, some parameters are now extracted from the
      DT instread of using the config header defines. The supported
      properties right now are:
      
      PHY-mode ("phy-mode") and PHY-address ("reg").
      
      The base addresses for the ethernet controllers can be removed from
      the header files as well.
      
      Please note that this patch also removes the E1000 network driver
      from some MVEBU config headers. This is necessary, as with DM_ETH
      configured and the e1000 driver enabled, the PCI driver also needs
      to support DM. But the MVEBU PCI(e) driver still needs to get
      ported to DM. When this is done, the E1000 driver can be enabled
      again.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Simon Glass <sjg@chromium.org>
      e3b9c98a
    • Stefan Roese's avatar
      spi: kirkwood_spi.c: Add driver model support · 9985bdb1
      Stefan Roese authored
      
      This patch adds driver model support to the kirkwood SPI driver. Which
      is also used on the MVEBU SoC's, now being converted to DM. Non-DM
      support is still available for the "older" platforms using this
      driver, like kirkwood.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Jagan Teki <jteki@openedev.com>
      Cc: Simon Glass <sjg@chromium.org>
      9985bdb1
    • Stefan Roese's avatar
      spi: kirkwood_spi.c: Prepare for driver model support · 18dd3b22
      Stefan Roese authored
      
      This patch prepares the Kirkwood SPI driver, also used on the MVEBU board
      (Armada XP / 38x), for the conversion to driver model.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Jagan Teki <jteki@openedev.com>
      Cc: Simon Glass <sjg@chromium.org>
      18dd3b22
    • Stefan Roese's avatar
      arm: mvebu: ddr: Fix compilation warning · cdf1d240
      Stefan Roese authored
      
      gcc 5.1 generates this new warning (for Armada 38x platforms):
      
      drivers/ddr/marvell/a38x/ddr3_debug.c: In function 'hws_ddr3_tip_read_training_result':
      drivers/ddr/marvell/a38x/ddr3_debug.c:177:40: warning: 'sizeof' on array
        function parameter 'result' will return size of 'enum hws_result (*)[1]' [-Wsizeof-array-argument]
        memcpy(result, training_result, sizeof(result));
                                              ^
      drivers/ddr/marvell/a38x/ddr3_debug.c:171:31: note: declared here
        u32 dev_num, enum hws_result result[MAX_STAGE_LIMIT][MAX_INTERFACE_NUM])
                                     ^
      
      Since this functions is not referenced anywhere, lets just remove it.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      cdf1d240
    • Vladimir Zapolskiy's avatar
      net: lpc32xx: fix ignored MDIO busy wait status on read · 79206c04
      Vladimir Zapolskiy authored
      
      The change fixes PHY write operation, which incorrectly waits for
      released busy state before issuing a write operation, this breaks
      sequential write/read operation logic, because read operation
      starts immediately on request and it completes, when busy state is
      gone.
      
      Instead of adding the second preceding busy state check to read
      function, do busy state release check after issuing a write operation,
      this method of operation is also recommended by the LPC32xx User's
      Manual, see MII Mgmt Indicators Register notes:
      
        For PHY Write if scan is not used:
        1. Write 0 to MCMD
        2. Write PHY address and register address to MADR
        3. Write data to MWTD
        4. Wait for busy bit to be cleared in MIND
      
      Reported-by: default avatarAlexandre Messier <amessier@tycoint.com>
      Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      Tested-by: default avatarAlexandre Messier <amessier@tycoint.com>
      79206c04
    • Vladimir Zapolskiy's avatar
      serial: lpc32xx hsuart: port driver to driver model · f21069ed
      Vladimir Zapolskiy authored
      
      The change ports NXP LPC32xx 14-clock UART device driver to driver
      model.
      
      Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      f21069ed
    • Stephen Warren's avatar
      ums: support multiple LUNs at once · 02585eb3
      Stephen Warren authored
      
      Extend the ums command to accept a list of block devices. Each of these
      will be exported as a separate LUN. An example use-case would be:
      
      ums 0 mmc 0,0.1,0.2
      
      ... which would export LUNs for eMMC 0's user data, boot0, and boot1 HW
      partitions. This is useful since it allows the host access to everything
      on the eMMC without having to somehow stop the ums command from executing
      and restart it with different parameters.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      02585eb3
    • Stephen Warren's avatar
      mmc: store hwpart in the block device · 873cc1d7
      Stephen Warren authored
      
      This will allow us to have multiple block device structs each referring
      to the same eMMC device, yet different HW partitions.
      
      For now, there is still a single block device per eMMC device. As before,
      this block device always accesses whichever HW partition was most recently
      selected. Clients wishing to make use of multiple block devices referring
      to different HW partitions can simply take a copy of this block device
      once it points at the correct HW partition, and use each one as they wish.
      This feature will be used by the next patch.
      
      In the future, perhaps get_device() could be enhanced to return a
      dynamically allocated block device struct, to avoid the client needing to
      copy it in order to maintain multiple block devices. However, this would
      require all users to be updated to free those block device structs at some
      point, which is rather a large change.
      
      Most callers of mmc_switch_part() wish to permanently switch the default
      MMC block device's HW partition. Enhance mmc_switch_part() so that it does
      this. This removes the need for callers to do this. However,
      common/env_mmc.c needs to save and restore the current HW partition. Make
      it do this more explicitly.
      
      Replace use of mmc_switch_part() with mmc_select_hwpart() in order to
      remove duplicate code that skips the call if that HW partition is already
      selected.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      873cc1d7
Loading