Re: [U-Boot] [PATCH v2 3/7] net: phy: breakdown PHY_*_FEATURES defines

2016-01-27 Thread Joe Hershberger
On Wed, Jan 13, 2016 at 7:59 AM, Alexey Brodkin
 wrote:
> From: Florian Fainelli 
>
> Breakdown the PHY_*_FEATURES into per speed defines such that we can
> easily re-use them individually.
>
> Signed-off-by: Florian Fainelli 
> Signed-off-by: Alexey Brodkin 
> Cc: Joe Hershberger 

Acked-by: Joe Hershberger 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 3/7] net: phy: breakdown PHY_*_FEATURES defines

2016-01-13 Thread Alexey Brodkin
From: Florian Fainelli 

Breakdown the PHY_*_FEATURES into per speed defines such that we can
easily re-use them individually.

Signed-off-by: Florian Fainelli 
Signed-off-by: Alexey Brodkin 
Cc: Joe Hershberger 
---

Changes v1 -> v2:
 No changes, this is just a resent in series with other related patches.

 include/phy.h | 22 +++---
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/include/phy.h b/include/phy.h
index 66cf61b..b793e90 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -17,18 +17,26 @@
 
 #define PHY_MAX_ADDR 32
 
-#define PHY_BASIC_FEATURES (SUPPORTED_10baseT_Half | \
-SUPPORTED_10baseT_Full | \
-SUPPORTED_100baseT_Half | \
-SUPPORTED_100baseT_Full | \
-SUPPORTED_Autoneg | \
+#define PHY_DEFAULT_FEATURES   (SUPPORTED_Autoneg | \
 SUPPORTED_TP | \
 SUPPORTED_MII)
 
-#define PHY_GBIT_FEATURES  (PHY_BASIC_FEATURES | \
-SUPPORTED_1000baseT_Half | \
+#define PHY_10BT_FEATURES  (SUPPORTED_10baseT_Half | \
+SUPPORTED_10baseT_Full)
+
+#define PHY_100BT_FEATURES (SUPPORTED_100baseT_Half | \
+SUPPORTED_100baseT_Full)
+
+#define PHY_1000BT_FEATURES(SUPPORTED_1000baseT_Half | \
 SUPPORTED_1000baseT_Full)
 
+#define PHY_BASIC_FEATURES (PHY_10BT_FEATURES | \
+PHY_100BT_FEATURES | \
+PHY_DEFAULT_FEATURES)
+
+#define PHY_GBIT_FEATURES  (PHY_BASIC_FEATURES | \
+PHY_1000BT_FEATURES)
+
 #define PHY_10G_FEATURES   (PHY_GBIT_FEATURES | \
SUPPORTED_1baseT_Full)
 
-- 
2.4.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot