ARM: davinci: add platform hook to fetch the SRAM pool
Adds sram_get_gen_pool() which allows platform code to get the machine's SRAM gen_pool. The gen_pool may be passed in platform data for driver genalloc use. Signed-off-by: Matt Porter <mporter@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
This commit is contained in:
@@ -18,6 +18,11 @@
|
||||
|
||||
static struct gen_pool *sram_pool;
|
||||
|
||||
struct gen_pool *sram_get_gen_pool(void)
|
||||
{
|
||||
return sram_pool;
|
||||
}
|
||||
|
||||
void *sram_alloc(size_t len, dma_addr_t *dma)
|
||||
{
|
||||
unsigned long vaddr;
|
||||
|
||||
Reference in New Issue
Block a user