Lines Matching +full:mmio +full:- +full:sram
1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-socfpga/pm.c
5 * Copyright (C) 2014-2015 Altera Corporation. All rights reserved.
7 * with code from pm-imx6.c
8 * Copyright 2011-2014 Freescale Semiconductor, Inc.
37 np = of_find_compatible_node(NULL, NULL, "mmio-sram"); in socfpga_setup_ocram_self_refresh()
39 pr_err("%s: Unable to find mmio-sram in dtb\n", __func__); in socfpga_setup_ocram_self_refresh()
40 return -ENODEV; in socfpga_setup_ocram_self_refresh()
46 ret = -ENODEV; in socfpga_setup_ocram_self_refresh()
50 ocram_pool = gen_pool_get(&pdev->dev, NULL); in socfpga_setup_ocram_self_refresh()
53 ret = -ENODEV; in socfpga_setup_ocram_self_refresh()
60 ret = -ENOMEM; in socfpga_setup_ocram_self_refresh()
71 ret = -ENOMEM; in socfpga_setup_ocram_self_refresh()
84 ret = -EFAULT; in socfpga_setup_ocram_self_refresh()
87 put_device(&pdev->dev); in socfpga_setup_ocram_self_refresh()
99 return -EFAULT; in socfpga_pm_suspend()
103 pr_debug("%s self-refresh loops request=%d exit=%d\n", __func__, in socfpga_pm_suspend()
118 return -EINVAL; in socfpga_pm_enter()
137 pr_info("SoCFPGA initialized for DDR self-refresh during suspend.\n"); in socfpga_pm_init()