mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 00:40:55 +07:00
93d05f1ec6
To get more coverage, enable COMPILE_TEST for this driver. While at it, to fix build on other archs, select MMP_SRAM only for ARCH_MMP and also fix the platform header Suggested-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
41 lines
799 B
C
41 lines
799 B
C
/*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
#ifndef __DMA_MMP_TDMA_H
|
|
#define __DMA_MMP_TDMA_H
|
|
|
|
#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;
|
|
};
|
|
|
|
#ifdef CONFIG_MMP_SRAM
|
|
extern struct gen_pool *sram_get_gpool(char *pool_name);
|
|
#else
|
|
static inline struct gen_pool *sram_get_gpool(char *pool_name)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __DMA_MMP_TDMA_H */
|