diff options
Diffstat (limited to 'target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c')
-rw-r--r-- | target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c b/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c index 296dd5c7a2..080656fd8a 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/pmu.c @@ -29,8 +29,8 @@ ifxmips_pmu_enable (unsigned int module) { int err = 1000000; - writel(readl(IFXMIPS_PMU_PWDCR) & ~module, IFXMIPS_PMU_PWDCR); - while (--err && (readl(IFXMIPS_PMU_PWDSR) & module)) {} + ifxmips_w32(ifxmips_r32(IFXMIPS_PMU_PWDCR) & ~module, IFXMIPS_PMU_PWDCR); + while (--err && (ifxmips_r32(IFXMIPS_PMU_PWDSR) & module)) {} if (!err) panic("activating PMU module failed!"); @@ -40,6 +40,6 @@ EXPORT_SYMBOL(ifxmips_pmu_enable); void ifxmips_pmu_disable (unsigned int module) { - writel(readl(IFXMIPS_PMU_PWDCR) | module, IFXMIPS_PMU_PWDCR); + ifxmips_w32(ifxmips_r32(IFXMIPS_PMU_PWDCR) | module, IFXMIPS_PMU_PWDCR); } EXPORT_SYMBOL(ifxmips_pmu_disable); |