sram.h 736 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * linux/arch/arm/mach-mmp/include/mach/sram.h
  3. *
  4. * SRAM Memory Management
  5. *
  6. * Copyright (c) 2011 Marvell Semiconductors Inc.
  7. *
  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.
  11. *
  12. */
  13. #ifndef __ASM_ARCH_SRAM_H
  14. #define __ASM_ARCH_SRAM_H
  15. #include <linux/genalloc.h>
  16. /* ARBITRARY: SRAM allocations are multiples of this 2^N size */
  17. #define SRAM_GRANULARITY 512
  18. enum sram_type {
  19. MMP_SRAM_UNDEFINED = 0,
  20. MMP_ASRAM,
  21. MMP_ISRAM,
  22. };
  23. struct sram_platdata {
  24. char *pool_name;
  25. int granularity;
  26. };
  27. extern struct gen_pool *sram_get_gpool(char *pool_name);
  28. #endif /* __ASM_ARCH_SRAM_H */