Lines Matching +full:fpga +full:- +full:1
1 // SPDX-License-Identifier: GPL-2.0
3 * SDK7786 FPGA SRAM Support.
14 #include <mach/fpga.h>
26 /* Enable FPGA SRAM */ in fpga_sram_init()
36 pr_err("FPGA memory unmapped.\n"); in fpga_sram_init()
37 return -ENXIO; in fpga_sram_init()
44 phys = (area << 26) + SZ_64M - SZ_4K; in fpga_sram_init()
47 * The FPGA SRAM resides in translatable physical space, so set in fpga_sram_init()
52 pr_err("Failed remapping FPGA memory.\n"); in fpga_sram_init()
53 return -ENXIO; in fpga_sram_init()
56 pr_info("Adding %dKiB of FPGA memory at 0x%08lx-0x%08lx " in fpga_sram_init()
58 SZ_2K >> 10, phys, phys + SZ_2K - 1, area); in fpga_sram_init()
60 ret = gen_pool_add(sram_pool, (unsigned long)vaddr, SZ_2K, -1); in fpga_sram_init()