diff options
author | Duc Dang <dhdang@apm.com> | 2012-03-05 04:58:22 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-07 02:07:42 +0400 |
commit | ae5d33723e325392c48bc0ff481d9ec8d646a0ed (patch) | |
tree | ec5c0a9b4454f0c7e6c999f64b8ec6cde52ccf7f /drivers/net/ethernet/ibm/emac/emac.h | |
parent | 8dfc2b45ffc722c4291f24f1f40c64e448b9b5b4 (diff) | |
download | linux-ae5d33723e325392c48bc0ff481d9ec8d646a0ed.tar.xz |
powerpc/44x: Add more changes for APM821XX EMAC driver
This patch includes:
Configure EMAC PHY clock source (clock from PHY or internal clock).
Do not advertise PHY half duplex capability as APM821XX EMAC does not support half duplex mode.
Add changes to support configuring jumbo frame for APM821XX EMAC.
[ Fix coding style -DaveM ]
Signed-off-by: Duc Dang <dhdang@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/emac/emac.h')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/emac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/emac/emac.h b/drivers/net/ethernet/ibm/emac/emac.h index b44bd243fb58..5afcc27ceebb 100644 --- a/drivers/net/ethernet/ibm/emac/emac.h +++ b/drivers/net/ethernet/ibm/emac/emac.h @@ -212,6 +212,8 @@ struct emac_regs { #define EMAC4_RMR_RFAF_64_1024 0x00000006 #define EMAC4_RMR_RFAF_128_2048 0x00000007 #define EMAC4_RMR_BASE EMAC4_RMR_RFAF_128_2048 +#define EMAC4_RMR_MJS_MASK 0x0001fff8 +#define EMAC4_RMR_MJS(s) (((s) << 3) & EMAC4_RMR_MJS_MASK) /* EMACx_ISR & EMACx_ISER */ #define EMAC4_ISR_TXPE 0x20000000 |