Lines Matching +full:- +full:sram
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/plat-omap/sram.c
5 * OMAP SRAM detection and management
10 * Copyright (C) 2009-2012 Texas Instruments
11 * Added OMAP4/5 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
27 #include <plat/sram.h>
29 #define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1)))
37 * Memory allocator for SRAM: calculates the new ceiling address
41 * to an 8-byte boundary.
47 available = omap_sram_ceil - (omap_sram_base + omap_sram_skip); in omap_sram_push_address()
50 pr_err("Not enough space in SRAM\n"); in omap_sram_push_address()
54 new_ceil -= size; in omap_sram_push_address()
63 void *sram; in omap_sram_push() local
68 sram = omap_sram_push_address(size); in omap_sram_push()
69 if (!sram) in omap_sram_push()
72 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push()
77 dst = fncpy(sram, funcp, size); in omap_sram_push()
86 * The SRAM context is lost during off-idle and stack
95 * Note that we cannot use ioremap for SRAM, as clock init needs SRAM early.
111 pr_err("SRAM: Could not map\n"); in omap_map_sram()
119 * beginning of SRAM for jumping to flash for reboot to work... in omap_map_sram()
122 omap_sram_size - omap_sram_skip); in omap_map_sram()