mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
arm: kirkwood: make it CONFIG_TIMER aware
If we switch to CONFIG_TIMER, we don't need the legacy timer macros and functions anymore. Add the proper guards to exclude them from compiling. Cc: Pali Rohár <pali@kernel.org> Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
f395cf9cac
commit
78c9b85df8
@ -51,8 +51,10 @@
|
|||||||
#endif /* CONFIG_IDE */
|
#endif /* CONFIG_IDE */
|
||||||
|
|
||||||
/* Use common timer */
|
/* Use common timer */
|
||||||
|
#ifndef CONFIG_TIMER
|
||||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||||
#define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14)
|
#define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14)
|
||||||
#define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TCLK
|
#define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TCLK
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _KW_CONFIG_H */
|
#endif /* _KW_CONFIG_H */
|
||||||
|
@ -15,7 +15,10 @@ ifdef CONFIG_ARCH_KIRKWOOD
|
|||||||
obj-y = dram.o
|
obj-y = dram.o
|
||||||
obj-y += gpio.o
|
obj-y += gpio.o
|
||||||
obj-y += mbus.o
|
obj-y += mbus.o
|
||||||
|
|
||||||
|
ifndef CONFIG_TIMER
|
||||||
obj-y += timer.o
|
obj-y += timer.o
|
||||||
|
endif
|
||||||
|
|
||||||
else # CONFIG_ARCH_KIRKWOOD
|
else # CONFIG_ARCH_KIRKWOOD
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user