diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2019-10-20 17:43:15 +0300 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2019-11-02 00:31:28 +0300 |
commit | 5831fdb099ddeec9849658cd534fdcbb03aa6ff9 (patch) | |
tree | daf08595f995f465ef9a5e131ea8d0fc18760cec /arch/mips/loongson2ef/lemote-2f | |
parent | 71e2f4dd5a65bd8dbca0b77661e75eea471168f8 (diff) | |
download | linux-5831fdb099ddeec9849658cd534fdcbb03aa6ff9.tar.xz |
MIPS: Loongson2ef: clean up loongson64 related code
Remove unrelevent macros, defines and codes from loongson2ef mach.
Also rename some defines to match new naming.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: paul.burton@mips.com
Diffstat (limited to 'arch/mips/loongson2ef/lemote-2f')
-rw-r--r-- | arch/mips/loongson2ef/lemote-2f/clock.c | 4 | ||||
-rw-r--r-- | arch/mips/loongson2ef/lemote-2f/reset.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/loongson2ef/lemote-2f/clock.c b/arch/mips/loongson2ef/lemote-2f/clock.c index 1ced30e7aeef..414f282c8ab5 100644 --- a/arch/mips/loongson2ef/lemote-2f/clock.c +++ b/arch/mips/loongson2ef/lemote-2f/clock.c @@ -118,9 +118,9 @@ int clk_set_rate(struct clk *clk, unsigned long rate) clk->rate = rate; - regval = LOONGSON_CHIPCFG(0); + regval = readl(LOONGSON_CHIPCFG); regval = (regval & ~0x7) | (pos->driver_data - 1); - LOONGSON_CHIPCFG(0) = regval; + writel(regval, LOONGSON_CHIPCFG); return ret; } diff --git a/arch/mips/loongson2ef/lemote-2f/reset.c b/arch/mips/loongson2ef/lemote-2f/reset.c index 0db0934302ea..197dae4ffd23 100644 --- a/arch/mips/loongson2ef/lemote-2f/reset.c +++ b/arch/mips/loongson2ef/lemote-2f/reset.c @@ -24,7 +24,7 @@ static void reset_cpu(void) * reset cpu to full speed, this is needed when enabling cpu frequency * scalling */ - LOONGSON_CHIPCFG(0) |= 0x7; + writel(readl(LOONGSON_CHIPCFG) | 0x7, LOONGSON_CHIPCFG); } /* reset support for fuloong2f */ |