xtensa: fix high memory/reserved memory collision
[cris-mirror.git] / include / linux / platform_data / dma-mmp_tdma.h
blob422d4504dbacd78f0f76beaef86043a3527fc9cc
1 /*
2 * SRAM Memory Management
4 * Copyright (c) 2011 Marvell Semiconductors Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
12 #ifndef __DMA_MMP_TDMA_H
13 #define __DMA_MMP_TDMA_H
15 #include <linux/genalloc.h>
17 /* ARBITRARY: SRAM allocations are multiples of this 2^N size */
18 #define SRAM_GRANULARITY 512
20 enum sram_type {
21 MMP_SRAM_UNDEFINED = 0,
22 MMP_ASRAM,
23 MMP_ISRAM,
26 struct sram_platdata {
27 char *pool_name;
28 int granularity;
31 #ifdef CONFIG_MMP_SRAM
32 extern struct gen_pool *sram_get_gpool(char *pool_name);
33 #else
34 static inline struct gen_pool *sram_get_gpool(char *pool_name)
36 return NULL;
38 #endif
40 #endif /* __DMA_MMP_TDMA_H */