Commit 4272f98a authored by Javi Merino's avatar Javi Merino Committed by Russell King

ARM: 7164/3: PL330: Fix the size of the dst_cache_ctrl field

dst_cache_ctrl affects bits 3, 1 and 0 of AWCACHE but it is a 3-bit
field in the Channel Control Register (see Table 3-21 of the DMA-330
Technical Reference Manual) and should be programmed as such.

Reference: <1320244259-10496-3-git-send-email-javi.merino@arm.com>
Signed-off-by: default avatarJavi Merino <javi.merino@arm.com>
Acked-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 8e43a905
...@@ -41,7 +41,7 @@ enum pl330_dstcachectrl { ...@@ -41,7 +41,7 @@ enum pl330_dstcachectrl {
DCCTRL1, /* Bufferable only */ DCCTRL1, /* Bufferable only */
DCCTRL2, /* Cacheable, but do not allocate */ DCCTRL2, /* Cacheable, but do not allocate */
DCCTRL3, /* Cacheable and bufferable, but do not allocate */ DCCTRL3, /* Cacheable and bufferable, but do not allocate */
DINVALID1 = 8, DINVALID1, /* AWCACHE = 0x1000 */
DINVALID2, DINVALID2,
DCCTRL6, /* Cacheable write-through, allocate on writes only */ DCCTRL6, /* Cacheable write-through, allocate on writes only */
DCCTRL7, /* Cacheable write-back, allocate on writes only */ DCCTRL7, /* Cacheable write-back, allocate on writes only */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment