| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 8 | 4 | * |
|---|
| 9 | 5 | * Copyright (C) 2007, 2008 MIPS Technologies, Inc. |
|---|
| 10 | 6 | */ |
|---|
| .. | .. |
|---|
| 213 | 209 | case CPU_P6600: |
|---|
| 214 | 210 | config0 = read_c0_config(); |
|---|
| 215 | 211 | /* FIXME: addresses are Malta specific */ |
|---|
| 216 | | - if (config0 & (1<<24)) { |
|---|
| 212 | + if (config0 & MIPS_CONF_ISP) { |
|---|
| 217 | 213 | probe_spram("ISPRAM", 0x1c000000, |
|---|
| 218 | 214 | &ispram_load_tag, &ispram_store_tag); |
|---|
| 219 | 215 | } |
|---|
| 220 | | - if (config0 & (1<<23)) |
|---|
| 216 | + if (config0 & MIPS_CONF_DSP) |
|---|
| 221 | 217 | probe_spram("DSPRAM", 0x1c100000, |
|---|
| 222 | 218 | &dspram_load_tag, &dspram_store_tag); |
|---|
| 223 | 219 | } |
|---|