1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2009 Freescale Semiconductor, Inc.
5 * Cache SRAM handling for QorIQ platform
7 * Author: Vivek Mahajan <vivek.mahajan@freescale.com>
9 * This file is derived from the original work done
10 * by Sylvain Munaut for the Bestcomm SRAM allocator.
13 #ifndef __ASM_POWERPC_FSL_85XX_CACHE_SRAM_H__
14 #define __ASM_POWERPC_FSL_85XX_CACHE_SRAM_H__
16 #include <asm/rheap.h>
17 #include <linux/spinlock.h>
23 struct mpc85xx_cache_sram
{
24 phys_addr_t base_phys
;
31 extern void mpc85xx_cache_sram_free(void *ptr
);
32 extern void *mpc85xx_cache_sram_alloc(unsigned int size
,
33 phys_addr_t
*phys
, unsigned int align
);
35 #endif /* __AMS_POWERPC_FSL_85XX_CACHE_SRAM_H__ */