X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a7c087dc66fe93974b9380327e472d1150976e15..db2602aef4a7d2a9047941be5ff3957bc1d5b52e:/target/linux/ifxmips/files/arch/mips/danube/pmu.c diff --git a/target/linux/ifxmips/files/arch/mips/danube/pmu.c b/target/linux/ifxmips/files/arch/mips/danube/pmu.c index 5bb66dbe5..296dd5c7a 100644 --- a/target/linux/ifxmips/files/arch/mips/danube/pmu.c +++ b/target/linux/ifxmips/files/arch/mips/danube/pmu.c @@ -1,5 +1,5 @@ /* - * arch/mips/danube/pmu.c + * arch/mips/ifxmips/pmu.c * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,24 +22,24 @@ #include #include #include -#include +#include void -danube_pmu_enable (unsigned int module) +ifxmips_pmu_enable (unsigned int module) { int err = 1000000; - writel(readl(DANUBE_PMU_PWDCR) & ~module, DANUBE_PMU_PWDCR); - while (--err && (readl(DANUBE_PMU_PWDSR) & module)) {} + writel(readl(IFXMIPS_PMU_PWDCR) & ~module, IFXMIPS_PMU_PWDCR); + while (--err && (readl(IFXMIPS_PMU_PWDSR) & module)) {} if (!err) panic("activating PMU module failed!"); } -EXPORT_SYMBOL(danube_pmu_enable); +EXPORT_SYMBOL(ifxmips_pmu_enable); void -danube_pmu_disable (unsigned int module) +ifxmips_pmu_disable (unsigned int module) { - writel(readl(DANUBE_PMU_PWDCR) | module, DANUBE_PMU_PWDCR); + writel(readl(IFXMIPS_PMU_PWDCR) | module, IFXMIPS_PMU_PWDCR); } -EXPORT_SYMBOL(danube_pmu_disable); +EXPORT_SYMBOL(ifxmips_pmu_disable);