diff options
author | Zhao Qiang <qiang.zhao@freescale.com> | 2015-11-30 10:48:54 +0800 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-12-22 17:10:18 -0600 |
commit | 0e6e01ff694ee222acc5a9184211678473c948e3 (patch) | |
tree | b3c1809b02b0b8accf5b7b8ca82c632842799e7a /arch/powerpc/include/asm/cpm.h | |
parent | b26981c8f743d3cb64a6907eb1f5c6c4ba6ca672 (diff) | |
download | linux-0e6e01ff694ee222acc5a9184211678473c948e3.tar.bz2 |
CPM/QE: use genalloc to manage CPM/QE muram
Use genalloc to manage CPM/QE muram instead of rheap.
Signed-off-by: Zhao Qiang <qiang.zhao@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/cpm.h')
-rw-r--r-- | arch/powerpc/include/asm/cpm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/cpm.h b/arch/powerpc/include/asm/cpm.h index 4398a6cdcf53..46e86b50abf3 100644 --- a/arch/powerpc/include/asm/cpm.h +++ b/arch/powerpc/include/asm/cpm.h @@ -2,6 +2,7 @@ #define __CPM_H #include <linux/compiler.h> +#include <linux/genalloc.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/of.h> @@ -161,6 +162,8 @@ int cpm_muram_init(void); unsigned long cpm_muram_alloc(unsigned long size, unsigned long align); int cpm_muram_free(unsigned long offset); unsigned long cpm_muram_alloc_fixed(unsigned long offset, unsigned long size); +unsigned long cpm_muram_alloc_common(unsigned long size, genpool_algo_t algo, + void *data); void __iomem *cpm_muram_addr(unsigned long offset); unsigned long cpm_muram_offset(void __iomem *addr); dma_addr_t cpm_muram_dma(void __iomem *addr); |