summaryrefslogtreecommitdiffstats
path: root/include/platform_data
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2016-07-02 07:59:47 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-05 09:02:41 +0200
commite5c6340f42a9430ca55e49a0d935c59eddb5fbe4 (patch)
tree05596b96daa024474080f6e1b214300d6d08ee9c /include/platform_data
parent257abdaa36c87ce82fc41873c2004fe356301dad (diff)
downloadbarebox-e5c6340f42a9430ca55e49a0d935c59eddb5fbe4.tar.gz
barebox-e5c6340f42a9430ca55e49a0d935c59eddb5fbe4.tar.xz
net: smc911x: Add parsing devicetree options
This patch adds parsing basic devicetree options for the smc911x driver: reg-io-width, reg-shift and smsc,force-(in/ex)ternal-phy, which makes driver usable for most DTS-based boards. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/platform_data')
-rw-r--r--include/platform_data/eth-smc911x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/platform_data/eth-smc911x.h b/include/platform_data/eth-smc911x.h
index 4a802ee52c..c97a2967c9 100644
--- a/include/platform_data/eth-smc911x.h
+++ b/include/platform_data/eth-smc911x.h
@@ -12,7 +12,7 @@
* Pass pointer to this structure as part of device_d -> platform_data
*/
struct smc911x_plat {
- int shift;
+ u32 shift;
unsigned int flags;
unsigned int phy_mask; /* external PHY only: mask out PHYs,
e.g. ~(1 << 5) to use PHY addr 5 */