diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2016-07-02 07:59:47 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-05 09:02:41 +0200 |
commit | e5c6340f42a9430ca55e49a0d935c59eddb5fbe4 (patch) | |
tree | 05596b96daa024474080f6e1b214300d6d08ee9c /include/platform_data | |
parent | 257abdaa36c87ce82fc41873c2004fe356301dad (diff) | |
download | barebox-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.h | 2 |
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 */ |