Changeset 44716


Ignore:
Timestamp:
2015-03-13T03:59:43+01:00 (3 years ago)
Author:
nbd
Message:

atheros: v3.18: relocate PCI host DMA base definition

Put AR2315_PCI_HOST_SDRAM_BASEADDR macro to DMA header, since this is
arbitrary value and not some hw specific constant. Also this relocation
decouples dma from HW specific header.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-3.18/100-board.patch

    r44715 r44716  
    498498--- /dev/null 
    499499+++ b/arch/mips/include/asm/mach-ath25/dma-coherence.h 
    500 @@ -0,0 +1,76 @@ 
     500@@ -0,0 +1,82 @@ 
    501501+/* 
    502502+ * This file is subject to the terms and conditions of the GNU General Public 
     
    512512+ 
    513513+#include <linux/device.h> 
    514 +#include <ar2315_regs.h> 
     514+ 
     515+/* 
     516+ * We need some arbitrary non-zero value to be programmed to the BAR1 register 
     517+ * of PCI host controller to enable DMA. The same value should be used as the 
     518+ * offset to calculate the physical address of DMA buffer for PCI devices. 
     519+ */ 
     520+#define AR2315_PCI_HOST_SDRAM_BASEADDR 0x20000000 
    515521+ 
    516522+static inline dma_addr_t ath25_dev_offset(struct device *dev) 
     
    624630--- /dev/null 
    625631+++ b/arch/mips/include/asm/mach-ath25/ar2315_regs.h 
    626 @@ -0,0 +1,608 @@ 
     632@@ -0,0 +1,601 @@ 
    627633+/* 
    628634+ * Register definitions for AR2315+ 
     
    12171223+#define AR2315_IRCFG_SEQ_END_WIN_THRESH        0x001f0000 
    12181224+#define AR2315_IRCFG_NUM_BACKOFF_WORDS 0x01e00000 
    1219 + 
    1220 +/* 
    1221 + * We need some arbitrary non-zero value to be programmed to the BAR1 register 
    1222 + * of PCI host controller to enable DMA. The same value should be used as the 
    1223 + * offset to calculate the physical address of DMA buffer for PCI devices. 
    1224 + */ 
    1225 +#define AR2315_PCI_HOST_SDRAM_BASEADDR 0x20000000 
    12261225+ 
    12271226+/* ??? access BAR */ 
Note: See TracChangeset for help on using the changeset viewer.