diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2010-08-09 08:08:18 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-09-22 17:53:45 -0400 |
commit | 3ae0267fd569c2007235fb80cfe3b4a4c54c8f4b (patch) | |
tree | 1d300eead20bff1737b3e79c48ee0bd0640ea0dd /drivers/dma/ste_dma40_ll.h | |
parent | 0246e77b4d374bb37aa08c3fcadad20012e85ea0 (diff) |
DMAENGINE: ste_dma40: removed a few magic numbers
Make sure to extract the revision field explicitly and document
what bits are being accessed here without magic numbers.
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ste_dma40_ll.h')
-rw-r--r-- | drivers/dma/ste_dma40_ll.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/ste_dma40_ll.h b/drivers/dma/ste_dma40_ll.h index 0c468c310c18..7a6acecfccd5 100644 --- a/drivers/dma/ste_dma40_ll.h +++ b/drivers/dma/ste_dma40_ll.h | |||
@@ -163,6 +163,9 @@ | |||
163 | #define D40_DREG_PERIPHID0 0xFE0 | 163 | #define D40_DREG_PERIPHID0 0xFE0 |
164 | #define D40_DREG_PERIPHID1 0xFE4 | 164 | #define D40_DREG_PERIPHID1 0xFE4 |
165 | #define D40_DREG_PERIPHID2 0xFE8 | 165 | #define D40_DREG_PERIPHID2 0xFE8 |
166 | #define D40_DREG_PERIPHID2_REV_POS 4 | ||
167 | #define D40_DREG_PERIPHID2_REV_MASK (0xf << D40_DREG_PERIPHID2_REV_POS) | ||
168 | #define D40_DREG_PERIPHID2_DESIGNER_MASK 0xf | ||
166 | #define D40_DREG_PERIPHID3 0xFEC | 169 | #define D40_DREG_PERIPHID3 0xFEC |
167 | #define D40_DREG_CELLID0 0xFF0 | 170 | #define D40_DREG_CELLID0 0xFF0 |
168 | #define D40_DREG_CELLID1 0xFF4 | 171 | #define D40_DREG_CELLID1 0xFF4 |