stmmac: pci: introduce Intel Quark X1000 runtime detection
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Jan 2015 19:44:48 +0000 (21:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2015 05:08:08 +0000 (21:08 -0800)
commit0763d955b46e9b4c875cf1a7ab8576fb79fd1398
treeab632ad8c169552a44be1545d6587a9f8d2efba1
parent5b99a6b6cc563e29265502b2b3df39c872022c22
stmmac: pci: introduce Intel Quark X1000 runtime detection

This patch introduces run-time board detection through DMI and MAC-PHY
configuration function used by quark_default_data() during initialization. It
fills up the phy_addr for Galileo and Galileo Gen2 boards to indicate that the
Ethernet MAC controller is or is not connected to any PHY.

The implementation takes into consideration for future expansion in Quark
series boards that may have different PHY address that is linked to its MAC
controllers.

This piece of work is derived from Bryan O'Donoghue's initial work for Quark
X1000 enabling.

Signed-off-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c