diff options
author | Bo Shen | 2013-09-18 15:07:44 +0800 |
---|---|---|
committer | Andreas Bießmann | 2013-11-04 20:32:31 +0100 |
commit | 32e4f6bf2e35e99e1742c005e1ede4e0cf5f066c (patch) | |
tree | 162f3cf8b80d96149c4a1a8fe337139bd80be12d /drivers/net/macb.h | |
parent | 304db0b38cfb04cfdb05a740d5ef27da06ea98ea (diff) |
net: macb: get DMA bus width from design config register
Get DMA bus width from design config register
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers/net/macb.h')
-rw-r--r-- | drivers/net/macb.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/macb.h b/drivers/net/macb.h index de5214fe6e4..06f7c66dfd5 100644 --- a/drivers/net/macb.h +++ b/drivers/net/macb.h @@ -58,6 +58,9 @@ #define MACB_WOL 0x00c4 #define MACB_MID 0x00fc +/* GEM specific register offsets */ +#define GEM_DCFG1 0x0280 + /* Bitfields in NCR */ #define MACB_LB_OFFSET 0 #define MACB_LB_SIZE 1 @@ -242,6 +245,14 @@ #define MACB_IDNUM_SIZE 16 /* Bitfields in DCFG1 */ +#define GEM_DBWDEF_OFFSET 25 +#define GEM_DBWDEF_SIZE 3 + +/* constants for data bus width */ +#define GEM_DBW32 0 +#define GEM_DBW64 1 +#define GEM_DBW128 2 + /* Constants for CLK */ #define MACB_CLK_DIV8 0 #define MACB_CLK_DIV16 1 |