summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros/ar71xxreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/atheros/ar71xxreg.h')
-rw-r--r--sys/mips/atheros/ar71xxreg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xxreg.h b/sys/mips/atheros/ar71xxreg.h
index a87151f..e6b7b8e 100644
--- a/sys/mips/atheros/ar71xxreg.h
+++ b/sys/mips/atheros/ar71xxreg.h
@@ -491,5 +491,15 @@ ar71xx_ahb_freq(void)
return (freq);
}
+static inline void
+ar71xx_ddr_flush(uint32_t reg)
+{
+ ATH_WRITE_REG(reg, 1);
+ while ((ATH_READ_REG(reg) & 0x1))
+ ;
+ ATH_WRITE_REG(reg, 1);
+ while ((ATH_READ_REG(reg) & 0x1))
+ ;
+}
#endif /* _AR71XX_REG_H_ */
OpenPOWER on IntegriCloud