mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
[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:
parent
4938d86764
commit
ccfb1ab87c
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue