hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/memory/ti-emif-pm.c
....@@ -1,17 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * TI AM33XX SRAM EMIF Driver
34 *
45 * Copyright (C) 2016-2017 Texas Instruments Inc.
56 * 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.
157 */
168
179 #include <linux/err.h>
....@@ -138,6 +130,9 @@
138130 emif_data->pm_functions.exit_sr =
139131 sram_resume_address(emif_data,
140132 (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);
141136
142137 emif_data->pm_data.regs_virt =
143138 (struct emif_regs_amx3 *)emif_data->ti_emif_sram_data_virt;
....@@ -253,7 +248,7 @@
253248 static int ti_emif_resume(struct device *dev)
254249 {
255250 unsigned long tmp =
256
- __raw_readl((void *)emif_instance->ti_emif_sram_virt);
251
+ __raw_readl((void __iomem *)emif_instance->ti_emif_sram_virt);
257252
258253 /*
259254 * Check to see if what we are copying is already present in the