]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c54b6d6c3bfd9a4c711710062595c375aeaed2a
treeab632ad8c169552a44be1545d6587a9f8d2efba1
parent909ccb3b93e315da2516935005e9185dc70ba0a6
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