hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/mips/kernel/spram.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MIPS SPRAM support
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 *
95 * Copyright (C) 2007, 2008 MIPS Technologies, Inc.
106 */
....@@ -213,11 +209,11 @@
213209 case CPU_P6600:
214210 config0 = read_c0_config();
215211 /* FIXME: addresses are Malta specific */
216
- if (config0 & (1<<24)) {
212
+ if (config0 & MIPS_CONF_ISP) {
217213 probe_spram("ISPRAM", 0x1c000000,
218214 &ispram_load_tag, &ispram_store_tag);
219215 }
220
- if (config0 & (1<<23))
216
+ if (config0 & MIPS_CONF_DSP)
221217 probe_spram("DSPRAM", 0x1c100000,
222218 &dspram_load_tag, &dspram_store_tag);
223219 }