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.
35 np = of_find_compatible_node(NULL, NULL, "mmio-sram"); in socfpga_setup_ocram_self_refresh()
37 pr_err("%s: Unable to find mmio-sram in dtb\n", __func__); in socfpga_setup_ocram_self_refresh()
38 return -ENODEV; in socfpga_setup_ocram_self_refresh()
44 ret = -ENODEV; in socfpga_setup_ocram_self_refresh()
48 ocram_pool = gen_pool_get(&pdev->dev, NULL); in socfpga_setup_ocram_self_refresh()
51 ret = -ENODEV; in socfpga_setup_ocram_self_refresh()
58 ret = -ENOMEM; in socfpga_setup_ocram_self_refresh()
69 ret = -ENOMEM; in socfpga_setup_ocram_self_refresh()
82 ret = -EFAULT; in socfpga_setup_ocram_self_refresh()
85 put_device(&pdev->dev); in socfpga_setup_ocram_self_refresh()
97 return -EFAULT; in socfpga_pm_suspend()
101 pr_debug("%s self-refresh loops request=%d exit=%d\n", __func__, in socfpga_pm_suspend()
116 return -EINVAL; in socfpga_pm_enter()
135 pr_info("SoCFPGA initialized for DDR self-refresh during suspend.\n"); in socfpga_pm_init()