Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: versatile: delete old RealView clock implementation

The old RealView clock implementation is not used anymore
(nothing in the kernel calls realview_clk_init()) as we have
moved all clocks over to device tree. Delete it.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Linus Walleij and committed by
Stephen Boyd
cfe76a28 3542976d

-99
-1
drivers/clk/versatile/Makefile
··· 1 1 # Makefile for Versatile-specific clocks 2 2 obj-$(CONFIG_ICST) += icst.o clk-icst.o clk-versatile.o 3 3 obj-$(CONFIG_INTEGRATOR_IMPD1) += clk-impd1.o 4 - obj-$(CONFIG_ARCH_REALVIEW) += clk-realview.o 5 4 obj-$(CONFIG_CLK_SP810) += clk-sp810.o 6 5 obj-$(CONFIG_CLK_VEXPRESS_OSC) += clk-vexpress-osc.o
-97
drivers/clk/versatile/clk-realview.c
··· 1 - /* 2 - * Clock driver for the ARM RealView boards 3 - * Copyright (C) 2012 Linus Walleij 4 - * 5 - * This program is free software; you can redistribute it and/or modify 6 - * it under the terms of the GNU General Public License version 2 as 7 - * published by the Free Software Foundation. 8 - */ 9 - #include <linux/clkdev.h> 10 - #include <linux/err.h> 11 - #include <linux/io.h> 12 - #include <linux/clk-provider.h> 13 - 14 - #include "icst.h" 15 - #include "clk-icst.h" 16 - 17 - #define REALVIEW_SYS_OSC0_OFFSET 0x0C 18 - #define REALVIEW_SYS_OSC1_OFFSET 0x10 19 - #define REALVIEW_SYS_OSC2_OFFSET 0x14 20 - #define REALVIEW_SYS_OSC3_OFFSET 0x18 21 - #define REALVIEW_SYS_OSC4_OFFSET 0x1C /* OSC1 for RealView/AB */ 22 - #define REALVIEW_SYS_LOCK_OFFSET 0x20 23 - 24 - /* 25 - * Implementation of the ARM RealView clock trees. 26 - */ 27 - 28 - static const struct icst_params realview_oscvco_params = { 29 - .ref = 24000000, 30 - .vco_max = ICST307_VCO_MAX, 31 - .vco_min = ICST307_VCO_MIN, 32 - .vd_min = 4 + 8, 33 - .vd_max = 511 + 8, 34 - .rd_min = 1 + 2, 35 - .rd_max = 127 + 2, 36 - .s2div = icst307_s2div, 37 - .idx2s = icst307_idx2s, 38 - }; 39 - 40 - static const struct clk_icst_desc realview_osc0_desc __initconst = { 41 - .params = &realview_oscvco_params, 42 - .vco_offset = REALVIEW_SYS_OSC0_OFFSET, 43 - .lock_offset = REALVIEW_SYS_LOCK_OFFSET, 44 - }; 45 - 46 - static const struct clk_icst_desc realview_osc4_desc __initconst = { 47 - .params = &realview_oscvco_params, 48 - .vco_offset = REALVIEW_SYS_OSC4_OFFSET, 49 - .lock_offset = REALVIEW_SYS_LOCK_OFFSET, 50 - }; 51 - 52 - /* 53 - * realview_clk_init() - set up the RealView clock tree 54 - */ 55 - void __init realview_clk_init(void __iomem *sysbase, bool is_pb1176) 56 - { 57 - struct clk *clk; 58 - 59 - /* APB clock dummy */ 60 - clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, 0, 0); 61 - clk_register_clkdev(clk, "apb_pclk", NULL); 62 - 63 - /* 24 MHz clock */ 64 - clk = clk_register_fixed_rate(NULL, "clk24mhz", NULL, 0, 24000000); 65 - clk_register_clkdev(clk, NULL, "dev:uart0"); 66 - clk_register_clkdev(clk, NULL, "dev:uart1"); 67 - clk_register_clkdev(clk, NULL, "dev:uart2"); 68 - clk_register_clkdev(clk, NULL, "fpga:kmi0"); 69 - clk_register_clkdev(clk, NULL, "fpga:kmi1"); 70 - clk_register_clkdev(clk, NULL, "fpga:mmc0"); 71 - clk_register_clkdev(clk, NULL, "dev:ssp0"); 72 - if (is_pb1176) { 73 - /* 74 - * UART3 is on the dev chip in PB1176 75 - * UART4 only exists in PB1176 76 - */ 77 - clk_register_clkdev(clk, NULL, "dev:uart3"); 78 - clk_register_clkdev(clk, NULL, "dev:uart4"); 79 - } else 80 - clk_register_clkdev(clk, NULL, "fpga:uart3"); 81 - 82 - 83 - /* 1 MHz clock */ 84 - clk = clk_register_fixed_rate(NULL, "clk1mhz", NULL, 0, 1000000); 85 - clk_register_clkdev(clk, NULL, "sp804"); 86 - 87 - /* ICST VCO clock */ 88 - if (is_pb1176) 89 - clk = icst_clk_register(NULL, &realview_osc0_desc, 90 - "osc0", NULL, sysbase); 91 - else 92 - clk = icst_clk_register(NULL, &realview_osc4_desc, 93 - "osc4", NULL, sysbase); 94 - 95 - clk_register_clkdev(clk, NULL, "dev:clcd"); 96 - clk_register_clkdev(clk, NULL, "issp:clcd"); 97 - }
-1
include/linux/platform_data/clk-realview.h
··· 1 - void realview_clk_init(void __iomem *sysbase, bool is_pb1176);