1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * SRAM Memory Management
5 * Copyright (c) 2011 Marvell Semiconductors Inc.
8 #ifndef __DMA_MMP_TDMA_H
9 #define __DMA_MMP_TDMA_H
11 #include <linux/genalloc.h>
13 /* ARBITRARY: SRAM allocations are multiples of this 2^N size */
14 #define SRAM_GRANULARITY 512
17 MMP_SRAM_UNDEFINED = 0,
22 struct sram_platdata {
27 #ifdef CONFIG_MMP_SRAM
28 extern struct gen_pool *sram_get_gpool(char *pool_name);
30 static inline struct gen_pool *sram_get_gpool(char *pool_name)
36 #endif /* __DMA_MMP_TDMA_H */