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

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/ixp4xx: Drop boardfile probe path

The boardfiles for IXP4xx have been deleted. Delete all the
quirks and code dealing with that boot path and rely solely on
device tree boot.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220406205505.2332821-1-linus.walleij@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Linus Walleij and committed by
Daniel Lezcano
41929c9f b8b1ab13

+1 -37
+1 -1
drivers/clocksource/Kconfig
··· 80 80 bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST 81 81 depends on HAS_IOMEM 82 82 select CLKSRC_MMIO 83 - select TIMER_OF if OF 83 + select TIMER_OF 84 84 help 85 85 Enables support for the Intel XScale IXP4xx SoC timer. 86 86
-25
drivers/clocksource/timer-ixp4xx.c
··· 19 19 #include <linux/of_address.h> 20 20 #include <linux/of_irq.h> 21 21 #include <linux/platform_device.h> 22 - /* Goes away with OF conversion */ 23 - #include <linux/platform_data/timer-ixp4xx.h> 24 22 25 23 /* 26 24 * Constants to make it easy to access Timer Control/Status registers ··· 261 263 }; 262 264 builtin_platform_driver(ixp4xx_timer_driver); 263 265 264 - /** 265 - * ixp4xx_timer_setup() - Timer setup function to be called from boardfiles 266 - * @timerbase: physical base of timer block 267 - * @timer_irq: Linux IRQ number for the timer 268 - * @timer_freq: Fixed frequency of the timer 269 - */ 270 - void __init ixp4xx_timer_setup(resource_size_t timerbase, 271 - int timer_irq, 272 - unsigned int timer_freq) 273 - { 274 - void __iomem *base; 275 - 276 - base = ioremap(timerbase, 0x100); 277 - if (!base) { 278 - pr_crit("IXP4xx: can't remap timer\n"); 279 - return; 280 - } 281 - ixp4xx_timer_register(base, timer_irq, timer_freq); 282 - } 283 - EXPORT_SYMBOL_GPL(ixp4xx_timer_setup); 284 - 285 - #ifdef CONFIG_OF 286 266 static __init int ixp4xx_of_timer_init(struct device_node *np) 287 267 { 288 268 void __iomem *base; ··· 291 315 return ret; 292 316 } 293 317 TIMER_OF_DECLARE(ixp4xx, "intel,ixp4xx-timer", ixp4xx_of_timer_init); 294 - #endif
-11
include/linux/platform_data/timer-ixp4xx.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef __TIMER_IXP4XX_H 3 - #define __TIMER_IXP4XX_H 4 - 5 - #include <linux/ioport.h> 6 - 7 - void __init ixp4xx_timer_setup(resource_size_t timerbase, 8 - int timer_irq, 9 - unsigned int timer_freq); 10 - 11 - #endif