From: Vineet Gupta <Vineet.Gupta1@synopsys.com> To: <linux-snps-arc@lists.infradead.org>, <Alexey.Brodkin@synopsys.com>, Noam Camus <noamc@ezchip.com> Cc: <linux-kernel@vger.kernel.org>, Vineet Gupta <Vineet.Gupta1@synopsys.com> Subject: [PATCH 9/9] ARC: RIP arc_{get|set}_core_freq() clk API Date: Tue, 2 Feb 2016 16:28:59 +0530 [thread overview] Message-ID: <1454410739-24444-10-git-send-email-vgupta@synopsys.com> (raw) In-Reply-To: <1454410739-24444-1-git-send-email-vgupta@synopsys.com> From: Alexey Brodkin <abrodkin@synopsys.com> There are no more users of this - so RIP! Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> [vgupta: update changelog] Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> --- arch/arc/include/asm/clk.h | 22 ---------------------- arch/arc/kernel/Makefile | 2 +- arch/arc/kernel/clk.c | 21 --------------------- arch/arc/kernel/devtree.c | 7 ------- 4 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 arch/arc/include/asm/clk.h delete mode 100644 arch/arc/kernel/clk.c diff --git a/arch/arc/include/asm/clk.h b/arch/arc/include/asm/clk.h deleted file mode 100644 index bf9d29f5bd53..000000000000 --- a/arch/arc/include/asm/clk.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef _ASM_ARC_CLK_H -#define _ASM_ARC_CLK_H - -/* Although we can't really hide core_freq, the accessor is still better way */ -extern unsigned long core_freq; - -static inline unsigned long arc_get_core_freq(void) -{ - return core_freq; -} - -extern int arc_set_core_freq(unsigned long); - -#endif diff --git a/arch/arc/kernel/Makefile b/arch/arc/kernel/Makefile index e7f3625a19b5..4f16967a0871 100644 --- a/arch/arc/kernel/Makefile +++ b/arch/arc/kernel/Makefile @@ -9,7 +9,7 @@ CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' obj-y := arcksyms.o setup.o irq.o time.o reset.o ptrace.o process.o devtree.o -obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o clk.o +obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o obj-$(CONFIG_ISA_ARCOMPACT) += entry-compact.o intc-compact.o obj-$(CONFIG_ISA_ARCV2) += entry-arcv2.o intc-arcv2.o diff --git a/arch/arc/kernel/clk.c b/arch/arc/kernel/clk.c deleted file mode 100644 index 10c7b0b5a079..000000000000 --- a/arch/arc/kernel/clk.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#include <asm/clk.h> - -unsigned long core_freq = 80000000; - -/* - * As of now we default to device-tree provided clock - * In future we can determine this in early boot - */ -int arc_set_core_freq(unsigned long freq) -{ - core_freq = freq; - return 0; -} diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c index e155126c79b1..1b2234517d65 100644 --- a/arch/arc/kernel/devtree.c +++ b/arch/arc/kernel/devtree.c @@ -14,7 +14,6 @@ #include <linux/memblock.h> #include <linux/of.h> #include <linux/of_fdt.h> -#include <asm/clk.h> #include <asm/mach_desc.h> #ifdef CONFIG_SERIAL_EARLYCON @@ -63,8 +62,6 @@ const struct machine_desc * __init setup_machine_fdt(void *dt) { const struct machine_desc *mdesc; unsigned long dt_root; - const void *clk; - int len; if (!early_init_dt_scan(dt)) return NULL; @@ -74,10 +71,6 @@ const struct machine_desc * __init setup_machine_fdt(void *dt) machine_halt(); dt_root = of_get_flat_dt_root(); - clk = of_get_flat_dt_prop(dt_root, "clock-frequency", &len); - if (clk) - arc_set_core_freq(of_read_ulong(clk, len/4)); - arc_set_early_base_baud(dt_root); return mdesc; -- 2.5.0
WARNING: multiple messages have this Message-ID (diff)
From: Vineet.Gupta1@synopsys.com (Vineet Gupta) To: linux-snps-arc@lists.infradead.org Subject: [PATCH 9/9] ARC: RIP arc_{get|set}_core_freq() clk API Date: Tue, 2 Feb 2016 16:28:59 +0530 [thread overview] Message-ID: <1454410739-24444-10-git-send-email-vgupta@synopsys.com> (raw) In-Reply-To: <1454410739-24444-1-git-send-email-vgupta@synopsys.com> From: Alexey Brodkin <abrodkin@synopsys.com> There are no more users of this - so RIP! Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com> [vgupta: update changelog] Signed-off-by: Vineet Gupta <vgupta at synopsys.com> Signed-off-by: Vineet Gupta <vgupta at synopsys.com> --- arch/arc/include/asm/clk.h | 22 ---------------------- arch/arc/kernel/Makefile | 2 +- arch/arc/kernel/clk.c | 21 --------------------- arch/arc/kernel/devtree.c | 7 ------- 4 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 arch/arc/include/asm/clk.h delete mode 100644 arch/arc/kernel/clk.c diff --git a/arch/arc/include/asm/clk.h b/arch/arc/include/asm/clk.h deleted file mode 100644 index bf9d29f5bd53..000000000000 --- a/arch/arc/include/asm/clk.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef _ASM_ARC_CLK_H -#define _ASM_ARC_CLK_H - -/* Although we can't really hide core_freq, the accessor is still better way */ -extern unsigned long core_freq; - -static inline unsigned long arc_get_core_freq(void) -{ - return core_freq; -} - -extern int arc_set_core_freq(unsigned long); - -#endif diff --git a/arch/arc/kernel/Makefile b/arch/arc/kernel/Makefile index e7f3625a19b5..4f16967a0871 100644 --- a/arch/arc/kernel/Makefile +++ b/arch/arc/kernel/Makefile @@ -9,7 +9,7 @@ CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' obj-y := arcksyms.o setup.o irq.o time.o reset.o ptrace.o process.o devtree.o -obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o clk.o +obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o obj-$(CONFIG_ISA_ARCOMPACT) += entry-compact.o intc-compact.o obj-$(CONFIG_ISA_ARCV2) += entry-arcv2.o intc-arcv2.o diff --git a/arch/arc/kernel/clk.c b/arch/arc/kernel/clk.c deleted file mode 100644 index 10c7b0b5a079..000000000000 --- a/arch/arc/kernel/clk.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#include <asm/clk.h> - -unsigned long core_freq = 80000000; - -/* - * As of now we default to device-tree provided clock - * In future we can determine this in early boot - */ -int arc_set_core_freq(unsigned long freq) -{ - core_freq = freq; - return 0; -} diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c index e155126c79b1..1b2234517d65 100644 --- a/arch/arc/kernel/devtree.c +++ b/arch/arc/kernel/devtree.c @@ -14,7 +14,6 @@ #include <linux/memblock.h> #include <linux/of.h> #include <linux/of_fdt.h> -#include <asm/clk.h> #include <asm/mach_desc.h> #ifdef CONFIG_SERIAL_EARLYCON @@ -63,8 +62,6 @@ const struct machine_desc * __init setup_machine_fdt(void *dt) { const struct machine_desc *mdesc; unsigned long dt_root; - const void *clk; - int len; if (!early_init_dt_scan(dt)) return NULL; @@ -74,10 +71,6 @@ const struct machine_desc * __init setup_machine_fdt(void *dt) machine_halt(); dt_root = of_get_flat_dt_root(); - clk = of_get_flat_dt_prop(dt_root, "clock-frequency", &len); - if (clk) - arc_set_core_freq(of_read_ulong(clk, len/4)); - arc_set_early_base_baud(dt_root); return mdesc; -- 2.5.0
next prev parent reply other threads:[~2016-02-02 11:00 UTC|newest] Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-02-02 10:58 [PATCH 0/9] ARC clockevent/clocksource modernization Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` [PATCH 1/9] ARC: [dts] Add clk feeding into timers to DTs Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` [PATCH 2/9] ARC: [dts] Introduce Timer bindings Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 12:48 ` Alexey Brodkin 2016-02-02 12:48 ` Alexey Brodkin 2016-02-02 12:48 ` Alexey Brodkin 2016-02-02 13:15 ` Alexey Brodkin 2016-02-02 13:15 ` Alexey Brodkin 2016-02-02 13:15 ` Alexey Brodkin 2016-02-02 14:29 ` Vineet Gupta 2016-02-02 14:29 ` Vineet Gupta 2016-02-02 14:29 ` Vineet Gupta 2016-02-02 15:36 ` Alexey Brodkin 2016-02-02 15:36 ` Alexey Brodkin 2016-02-02 15:36 ` Alexey Brodkin 2016-02-02 22:57 ` Alexey Brodkin 2016-02-02 22:57 ` Alexey Brodkin 2016-02-02 22:57 ` Alexey Brodkin 2016-02-03 13:44 ` Alexey Brodkin 2016-02-03 13:44 ` Alexey Brodkin 2016-02-03 13:44 ` Alexey Brodkin 2016-02-03 13:50 ` Alexey Brodkin 2016-02-03 13:50 ` Alexey Brodkin 2016-02-03 13:50 ` Alexey Brodkin 2016-02-02 22:03 ` Rob Herring 2016-02-02 22:03 ` Rob Herring 2016-02-02 22:03 ` Rob Herring 2016-02-03 8:04 ` Vineet Gupta 2016-02-03 8:04 ` Vineet Gupta 2016-02-03 15:39 ` Rob Herring 2016-02-03 15:39 ` Rob Herring 2016-02-03 15:39 ` Rob Herring 2016-02-16 8:44 ` Vineet Gupta 2016-02-16 8:44 ` Vineet Gupta 2016-02-16 8:44 ` Vineet Gupta 2016-02-02 10:58 ` [PATCH 3/9] ARC: clockevent: switch to cpu notifier for clockevent setup Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` [PATCH 4/9] ARC: clockevent: Prepare for DT based probe Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` [PATCH 5/9] ARC: clockevent: " Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` [PATCH 6/9] ARC: clocksource: " Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-08 12:10 ` Daniel Lezcano 2016-02-08 12:10 ` Daniel Lezcano 2016-02-08 12:23 ` Vineet Gupta 2016-02-08 12:23 ` Vineet Gupta 2016-02-10 13:38 ` Daniel Lezcano 2016-02-10 13:38 ` Daniel Lezcano 2016-02-02 10:58 ` [PATCH 7/9] ARC: use fixed frequencies in arc_set_early_base_baud() Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 12:53 ` Alexey Brodkin 2016-02-02 12:53 ` Alexey Brodkin 2016-02-02 13:43 ` christian.ruppert 2016-02-02 13:43 ` christian.ruppert 2016-02-02 14:26 ` Alexey Brodkin 2016-02-02 14:26 ` Alexey Brodkin 2016-02-02 10:58 ` [PATCH 8/9] ARC: [plat-axs] Don't use arc_{get|set}_core_freq() for manipulating core clk Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta 2016-02-02 10:58 ` Vineet Gupta [this message] 2016-02-02 10:58 ` [PATCH 9/9] ARC: RIP arc_{get|set}_core_freq() clk API Vineet Gupta
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1454410739-24444-10-git-send-email-vgupta@synopsys.com \ --to=vineet.gupta1@synopsys.com \ --cc=Alexey.Brodkin@synopsys.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-snps-arc@lists.infradead.org \ --cc=noamc@ezchip.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.