Author: adrian
Date: Tue Jan  6 07:37:33 2015
New Revision: 276739
URL: https://svnweb.freebsd.org/changeset/base/276739

Log:
  Add an APB base/size for the QCA955X for an upcoming QCA955x specific
  APB mux.
  
  It's larger than the AR71xx because it needs to replace the nexus
  for some devices (notably wifi) and the wifi driver (if_ath_ahb.c)
  reads the SPI data directly at early boot whilst it's memory mapped
  in.
  
  I'm eventually going to rip it out and replace it with a firmware
  interface similar to what exists for the if_ath_pci.c path -
  something early on (likely something new that I'll write) will
  suck in the calibration data into a firmware API blob and that'll
  be accessed from if_ath_ahb.c.
  
  But, one thing at a time.
  
  Tested:
  
  * QCA955x SoC, AP135 development board

Modified:
  head/sys/mips/atheros/qca955xreg.h

Modified: head/sys/mips/atheros/qca955xreg.h
==============================================================================
--- head/sys/mips/atheros/qca955xreg.h  Tue Jan  6 07:35:05 2015        
(r276738)
+++ head/sys/mips/atheros/qca955xreg.h  Tue Jan  6 07:37:33 2015        
(r276739)
@@ -35,6 +35,19 @@
 #define        REV_ID_MAJOR_QCA9558            0x1130
 #define        QCA955X_REV_ID_REVISION_MASK    0xf
 
+/* Big enough to cover APB and SPI, and most peripherals */
+/*
+ * it needs to cover SPI because right now the if_ath_ahb
+ * code uses rman to map in the SPI address into memory
+ * to read data instead of us squirreling it away at early
+ * boot-time and using the firmware interface.
+ *
+ * if_ath_ahb.c should use the same firmware interface
+ * that if_ath_pci.c uses.
+ */
+#define QCA955X_APB_BASE        0x18000000
+#define QCA955X_APB_SIZE        0x08000000
+
 #define        QCA955X_PCI_MEM_BASE0           0x10000000
 #define        QCA955X_PCI_MEM_BASE1           0x12000000
 #define        QCA955X_PCI_MEM_SIZE            0x02000000
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to