| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * TI AM33XX SRAM EMIF Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016-2017 Texas Instruments Inc. |
|---|
| 5 | 6 | * Dave Gerlach |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public License |
|---|
| 9 | | - * version 2 as published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | 7 | */ |
|---|
| 16 | 8 | |
|---|
| 17 | 9 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 138 | 130 | emif_data->pm_functions.exit_sr = |
|---|
| 139 | 131 | sram_resume_address(emif_data, |
|---|
| 140 | 132 | (unsigned long)ti_emif_exit_sr); |
|---|
| 133 | + emif_data->pm_functions.run_hw_leveling = |
|---|
| 134 | + sram_resume_address(emif_data, |
|---|
| 135 | + (unsigned long)ti_emif_run_hw_leveling); |
|---|
| 141 | 136 | |
|---|
| 142 | 137 | emif_data->pm_data.regs_virt = |
|---|
| 143 | 138 | (struct emif_regs_amx3 *)emif_data->ti_emif_sram_data_virt; |
|---|
| .. | .. |
|---|
| 253 | 248 | static int ti_emif_resume(struct device *dev) |
|---|
| 254 | 249 | { |
|---|
| 255 | 250 | unsigned long tmp = |
|---|
| 256 | | - __raw_readl((void *)emif_instance->ti_emif_sram_virt); |
|---|
| 251 | + __raw_readl((void __iomem *)emif_instance->ti_emif_sram_virt); |
|---|
| 257 | 252 | |
|---|
| 258 | 253 | /* |
|---|
| 259 | 254 | * Check to see if what we are copying is already present in the |
|---|