1. 14 1月, 2016 10 次提交
    • S
      net: mvneta: Convert to driver model · e3b9c98a
      Stefan Roese 提交于
      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: NStefan 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
    • S
      arm: mvebu: armada-388-gp.dts: Add ethernet aliases · 202ededd
      Stefan Roese 提交于
      Adding these aliases enables the update of the MAC addresses from
      within U-Boot.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      202ededd
    • S
      arm: mvebu: Add armada-xp-maxbcm.dts for maxbcm board · 18c1272f
      Stefan Roese 提交于
      This is needed for the upcoming ethernet DM conversion of the maxbcm
      board. The configuration of the PHY is then extracted from the DT
      instead of using the defines from the config header.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      18c1272f
    • S
      arm: mvebu: Add SPI driver model support · 09a54c00
      Stefan Roese 提交于
      This patch enables the DM support for the SPI driver and the
      SPI NOR flash chips. Some MVEBU boards boot from SPI NOR, so
      adding the aliases and enabling CONFIG_DM_SEQ_ALIAS is needed
      here.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Cc: Simon Glass <sjg@chromium.org>
      09a54c00
    • S
      spi: kirkwood_spi.c: Add driver model support · 9985bdb1
      Stefan Roese 提交于
      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: NStefan 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
    • S
      spi: kirkwood_spi.c: Prepare for driver model support · 18dd3b22
      Stefan Roese 提交于
      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: NStefan 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
    • S
      arm: mvebu: Add DM and OF_CONTROL support to SPL · 6451223a
      Stefan Roese 提交于
      This patch adds full DM support to the SPL on MVEBU. Currently
      only serial is supported. Other drivers will follow.
      
      This patch also adds the necessary config values for the DEBUG UART
      to the MVEBU defconfig files. This came in handy while implementing
      this DM support.
      
      Additionally, the mvebu specific SPL linker script is removed and
      this common one is used instead:
      
         arch/arm/cpu/u-boot-spl.lds
      
      This common linker script already handles all special cases. No need
      to reinvent the wheel for MVEBU here.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Cc: Simon Glass <sjg@chromium.org>
      6451223a
    • S
      arm: mvebu: ddr: Fix compilation warning · cdf1d240
      Stefan Roese 提交于
      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: NStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      cdf1d240
    • S
      arm: mvebu/kirkwood: Use common timer functions · 2fbc18fe
      Stefan Roese 提交于
      By using the common timer functions for mvebu/kirkwood we can get rid of quite
      a lot of code.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Simon Guinot <simon.guinot@sequanux.org>
      Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      2fbc18fe
    • S
      part_dos.c: Don't wrap to negative after 2G sectors · d29892ba
      Stefan Monnier 提交于
      In order to support large IDE disks we need to make certain types be
      lbaint_t now.
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Signed-off-by: NStefan Monnier <monnier@iro.umontreal.ca>
      d29892ba
  2. 13 1月, 2016 30 次提交