spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / arm / mach-mmp / include / mach / sram.h
blob239e0fc1bb1f9af55a1abecaf0a68b01d0faa214
1 /*
2 * linux/arch/arm/mach-mmp/include/mach/sram.h
4 * SRAM Memory Management
6 * Copyright (c) 2011 Marvell Semiconductors Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
14 #ifndef __ASM_ARCH_SRAM_H
15 #define __ASM_ARCH_SRAM_H
17 #include <linux/genalloc.h>
19 /* ARBITRARY: SRAM allocations are multiples of this 2^N size */
20 #define SRAM_GRANULARITY 512
22 enum sram_type {
23 MMP_SRAM_UNDEFINED = 0,
24 MMP_ASRAM,
25 MMP_ISRAM,
28 struct sram_platdata {
29 char *pool_name;
30 int granularity;
33 extern struct gen_pool *sram_get_gpool(char *pool_name);
35 #endif /* __ASM_ARCH_SRAM_H */