net/ftgmac100: add a 'aspeed' property

The Aspeed SoCs have a different definition of the end of the ring
buffer bit. Add a property to specify which set of bits should be used
by the NIC.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
Cédric Le Goater 2017-04-14 10:35:01 +02:00 committed by Jason Wang
parent bd44300d1a
commit 1335fe3eb2
2 changed files with 19 additions and 2 deletions

View file

@ -55,6 +55,10 @@ typedef struct FTGMAC100State {
uint32_t phy_advertise;
uint32_t phy_int;
uint32_t phy_int_mask;
bool aspeed;
uint32_t txdes0_edotr;
uint32_t rxdes0_edorr;
} FTGMAC100State;
#endif