mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
dmaengine: pl330: Fix dmac register write error
This is a workaround for dmac register write error by read once before write to make paddr is stable, which was caused by asynchronous between dmac_aclk and pclk. Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Change-Id: I32e03204d6399db4fe4f40479050cc45e04ddb1f
This commit is contained in:
@@ -37,6 +37,16 @@
|
||||
|
||||
#define PL330_QUIRK_BROKEN_NO_FLUSHP BIT(0)
|
||||
|
||||
#ifdef CONFIG_CPU_RV1126
|
||||
#undef writel
|
||||
#define writel(v, c) \
|
||||
do { \
|
||||
readl_relaxed(c); \
|
||||
__iowmb(); \
|
||||
writel_relaxed(v, c); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
enum pl330_cachectrl {
|
||||
CCTRL0, /* Noncacheable and nonbufferable */
|
||||
CCTRL1, /* Bufferable only */
|
||||
|
||||
Reference in New Issue
Block a user