[ar71xx] put in an implicit read-after-write to flush things out.

Note: I may need to revisit this for mips74k.
This commit is contained in:
Adrian Chadd 2016-12-29 17:31:07 +00:00
parent 4938d86764
commit ccfb1ab87c

View File

@ -527,7 +527,10 @@ typedef enum {
*((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((reg)))
#define ATH_WRITE_REG(reg, val) \
*((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((reg))) = (val)
do { \
*((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((reg))) = (val); \
(void) ATH_READ_REG(reg); \
} while (0)
static inline void
ar71xx_ddr_flush(uint32_t reg)