1. 07 Aug, 2017 2 commits
  2. 08 Feb, 2017 1 commit
    • Simon Glass's avatar
      dm: core: Replace of_offset with accessor · e160f7d4
      Simon Glass authored
      
      
      At present devices use a simple integer offset to record the device tree
      node associated with the device. In preparation for supporting a live
      device tree, which uses a node pointer instead, refactor existing code to
      access this field through an inline function.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      e160f7d4
  3. 08 Dec, 2016 1 commit
    • Marek Vasut's avatar
      net: phy: micrel: Fix error handling · 75c056d7
      Marek Vasut authored and Joe Hershberger's avatar Joe Hershberger committed
      
      
      Fix the following error, the $ret variable handling must
      be part of the loop, while due to the missing parenthesis
      it was not.
      
      drivers/net/phy/micrel.c: In function ‘ksz9021_of_config’:
      drivers/net/phy/micrel.c:303:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
        for (i = 0; i < ARRAY_SIZE(ofcfg); i++)
        ^~~
      drivers/net/phy/micrel.c:305:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
         if (ret)
         ^~
      drivers/net/phy/micrel.c: In function ‘ksz9031_of_config’:
      drivers/net/phy/micrel.c:411:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
        for (i = 0; i < ARRAY_SIZE(ofcfg); i++)
        ^~~
      drivers/net/phy/micrel.c:413:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
         if (ret)
         ^~
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      75c056d7
  4. 07 Nov, 2016 1 commit
  5. 21 Jun, 2016 1 commit
    • Alexey Firago's avatar
      net: phy: micrel: add support for KSZ886x switches in MIIM mode · 79887749
      Alexey Firago authored and Joe Hershberger's avatar Joe Hershberger committed
      
      
      This patch adds a phy driver for the Micrel KSZ886x switches.
      
      Similarly to the KSZ8895, SoC MAC is directly connected to the switch
      MAC on the switch CPU port, so the link to the switch is always up.
      
      KSZ886x switches can be used in the following configuration modes:
      - Unmanaged mode with config stored in external EEPROM
      - Managed mode over SPI
      - Managed mode over I2C
      - Managed mode over mdio/mdc (aka MIIM or SMI)
      
      This patch supports only unmanaged and MIIM modes.
      
      Based on Micrel KSZ886x driver from Linux kernel and
      Micrel KSZ8895 driver from U-Boot.
      
      Verified with the KSZ8863MLL.
      Signed-off-by: default avatarAlexey Firago <alexey_firago@mentor.com>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      79887749
  6. 24 May, 2016 1 commit
  7. 08 Feb, 2016 1 commit
    • Mugunthan V N's avatar
      drivers: net: phy: micrel: fix build errors with CONFIG_DM_ETH · 347348f9
      Mugunthan V N authored and Tom Rini's avatar Tom Rini committed
      
      
      When Micrel phy is selected without CONFIG_PHY_MICREL_KSZ9031 or
      CONFIG_PHY_MICREL_KSZ9021 there  is a build error. Fixing this
      by adding proper ifdefs
      
      drivers/net/phy/micrel.c:370:39: error: array type has incomplete element type
       static const struct ksz90x1_reg_field ksz9031_ctl_grp[] =
                                             ^
      drivers/net/phy/micrel.c:372:39: error: array type has incomplete element type
       static const struct ksz90x1_reg_field ksz9031_clk_grp[] =
                                             ^
      drivers/net/phy/micrel.c: In function ‘ksz9031_of_config’:
      drivers/net/phy/micrel.c:377:23: error: array type has incomplete element type
        struct ksz90x1_ofcfg ofcfg[] = {
                             ^
      drivers/net/phy/micrel.c:379:13: error: ‘ksz90x1_rxd_grp’ undeclared (first use in this function)
         { MII_KSZ9031_EXT_RGMII_RX_DATA_SKEW, 2, ksz90x1_rxd_grp, 4 },
                   ^
      drivers/net/phy/micrel.c:379:13: note: each undeclared identifier is reported only once for each function it appears in
      drivers/net/phy/micrel.c:380:13: error: ‘ksz90x1_txd_grp’ undeclared (first use in this function)
         { MII_KSZ9031_EXT_RGMII_TX_DATA_SKEW, 2, ksz90x1_txd_grp, 4 },
                   ^
      drivers/net/phy/micrel.c:386:3: warning: implicit declaration of function ‘ksz90x1_of_config_group’ [-Wimplicit-function-declaration]
         ret = ksz90x1_of_config_group(phydev, &(ofcfg[i]));
         ^
      drivers/net/phy/micrel.c:377:23: warning: unused variable ‘ofcfg’ [-Wunused-variable]
        struct ksz90x1_ofcfg ofcfg[] = {
                             ^
      drivers/net/phy/micrel.c: At top level:
      drivers/net/phy/micrel.c:370:39: warning: ‘ksz9031_ctl_grp’ defined but not used [-Wunused-variable]
       static const struct ksz90x1_reg_field ksz9031_ctl_grp[] =
                                             ^
      drivers/net/phy/micrel.c:372:39: warning: ‘ksz9031_clk_grp’ defined but not used [-Wunused-variable]
       static const struct ksz90x1_reg_field ksz9031_clk_grp[] =
                                             ^
      scripts/Makefile.build:277: recipe for target 'drivers/net/phy/micrel.o' failed
      make[1]: *** [drivers/net/phy/micrel.o] Error 1
      Makefile:1201: recipe for target 'drivers/net/phy' failed
      make: *** [drivers/net/phy] Error 2
      make: *** Waiting for unfinished jobs....
      Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
      Reviewed-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      347348f9
  8. 28 Jan, 2016 2 commits
  9. 20 Dec, 2015 1 commit
    • Marek Vasut's avatar
      net: phy: micrel: Configure KSZ9021/KSZ9031 skew from OF · 22854bda
      Marek Vasut authored
      
      
      Add code to process the KSZ9021/KSZ9031 OF props if they are present
      and configure skew registers based on the information from the OF.
      This code is only enabled if the DM support for ethernet is also
      enabled.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      
      V2: - Implement struct ksz90x1_reg_field to describe the skew register
            fields more accurately.
          - Fix RXDV/TXEN skew register default value and offset.
      22854bda
  10. 29 Oct, 2015 2 commits
  11. 20 Apr, 2015 1 commit
  12. 30 Jan, 2015 1 commit
    • Philippe De Muyter's avatar
      net: phy: micrel: add support for KSZ8895 switch in SMI mode · b7a5b084
      Philippe De Muyter authored and Joe Hershberger's avatar Joe Hershberger committed
      
      
      This patch adds a phy driver for the Micrel KSZ8895 switch.  As the SoC MAC
      is directly connected to the switch MAC the link to the switch is always up.
      
      But the KSZ8895 switch can be hardwired in three configuration modes :
      - not configurable with eventually an eeprom-stored configuration
      - configurable by the mdio/mdc connection (SMI protocol)
      - configurable by a SPI connection.
      
      In not configurable mode, the switch starts automatically, but in the
      other modes, it must be started programmatically, by writing 1 in
      configuration register 1.
      We only support the not configurable and mdio/mdc (aka SMI) modes here.
      Signed-off-by: default avatarPhilippe De Muyter <phdm@macqel.be>
      Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
      Signed-off-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      b7a5b084
  13. 06 Oct, 2014 1 commit
  14. 22 Nov, 2013 2 commits
  15. 24 Jul, 2013 1 commit
  16. 25 Jun, 2013 2 commits
  17. 11 Jul, 2012 1 commit
  18. 27 Feb, 2012 1 commit
  19. 20 Dec, 2011 1 commit
  20. 20 Apr, 2011 1 commit
  21. 13 Apr, 2010 1 commit
  22. 15 Jan, 2008 1 commit
  23. 27 Dec, 2007 1 commit
  24. 13 May, 2007 1 commit
  25. 27 Jun, 2003 1 commit
    • wdenk's avatar
      * Code cleanup: · 8bde7f77
      wdenk authored
        - remove trailing white space, trailing empty lines, C++ comments, etc.
        - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
      
      * Patches by Kenneth Johansson, 25 Jun 2003:
        - major rework of command structure
          (work done mostly by Michal Cendrowski and Joakim Kristiansen)
      8bde7f77
  26. 27 Mar, 2003 1 commit
  27. 14 Dec, 2000 1 commit
  28. 12 Nov, 2000 1 commit