diff options
author | adrian <adrian@FreeBSD.org> | 2015-03-04 03:52:50 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-03-04 03:52:50 +0000 |
commit | 8f1977d6ce2dbbbf400667f0aeab6e27df5dd7d1 (patch) | |
tree | 8ad86b43ea02bda1e3b86eace05e5fed522e4b09 /sys/mips/atheros/qca955x_chip.c | |
parent | bc2ba88d1cf22507277eb9632763d18e87f7a7d5 (diff) | |
download | FreeBSD-src-8f1977d6ce2dbbbf400667f0aeab6e27df5dd7d1.zip FreeBSD-src-8f1977d6ce2dbbbf400667f0aeab6e27df5dd7d1.tar.gz |
Add ethernet MAC DDR flush hookups for QCA955x.
Tested:
* AP135
Diffstat (limited to 'sys/mips/atheros/qca955x_chip.c')
-rw-r--r-- | sys/mips/atheros/qca955x_chip.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/mips/atheros/qca955x_chip.c b/sys/mips/atheros/qca955x_chip.c index 5ee27d5..1b2bb32 100644 --- a/sys/mips/atheros/qca955x_chip.c +++ b/sys/mips/atheros/qca955x_chip.c @@ -209,22 +209,23 @@ qca955x_chip_set_pll_ge(int unit, int speed, uint32_t pll) static void qca955x_chip_ddr_flush_ge(int unit) { -#if 0 + switch (unit) { case 0: - ar71xx_ddr_flush(AR934X_DDR_REG_FLUSH_GE0); + ar71xx_ddr_flush(QCA955X_DDR_REG_FLUSH_GE0); break; case 1: - ar71xx_ddr_flush(AR934X_DDR_REG_FLUSH_GE1); + ar71xx_ddr_flush(QCA955X_DDR_REG_FLUSH_GE1); break; default: printf("%s: invalid DDR flush for arge unit: %d\n", __func__, unit); return; } -#endif } +/* XXX TODO: USB flush, PCIe flush, wmac flush */ + static void qca955x_chip_ddr_flush_ip2(void) { |