2011-08-15 10:09:52 +07:00
|
|
|
/*
|
|
|
|
* SRAM Memory Management
|
|
|
|
*
|
|
|
|
* Copyright (c) 2011 Marvell Semiconductors Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-12-30 12:16:31 +07:00
|
|
|
#ifndef __DMA_MMP_TDMA_H
|
|
|
|
#define __DMA_MMP_TDMA_H
|
2011-08-15 10:09:52 +07:00
|
|
|
|
|
|
|
#include <linux/genalloc.h>
|
|
|
|
|
|
|
|
/* ARBITRARY: SRAM allocations are multiples of this 2^N size */
|
|
|
|
#define SRAM_GRANULARITY 512
|
|
|
|
|
|
|
|
enum sram_type {
|
|
|
|
MMP_SRAM_UNDEFINED = 0,
|
|
|
|
MMP_ASRAM,
|
|
|
|
MMP_ISRAM,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct sram_platdata {
|
|
|
|
char *pool_name;
|
|
|
|
int granularity;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct gen_pool *sram_get_gpool(char *pool_name);
|
|
|
|
|
2013-12-30 12:16:31 +07:00
|
|
|
#endif /* __DMA_MMP_TDMA_H */
|