ARM: S5P6442: Add clock support for S5P6442
Subsystems (3)
PATCH v3 2/7 ARM: S5P6442: Add clock support for S5P6442
This patch adds clock support for S5P6442. This patch adds the clock register definitions and the various system clocks in S5P6442.
Signed-off-by Adityapratap Sharma <[email protected]>
Signed-off-by Atul Dahiya <[email protected]>
Signed-off-by Kukjin Kim <[email protected]>
--- arch/arm/mach-s5p6442/Makefile | 2 +- arch/arm/mach-s5p6442/clock.c | 394 +++++++++++++++++++++++ arch/arm/mach-s5p6442/include/mach/pwm-clock.h | 69 ++++ arch/arm/mach-s5p6442/include/mach/regs-clock.h | 103 ++++++ arch/arm/mach-s5p6442/include/mach/tick.h | 26 ++ 5 files changed, 594 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-s5p6442/Makefile create mode 100644 arch/arm/mach-s5p6442/clock.c create mode 100644 arch/arm/mach-s5p6442/include/mach/pwm-clock.h create mode 100644 arch/arm/mach-s5p6442/include/mach/regs-clock.h create mode 100644 arch/arm/mach-s5p6442/include/mach/tick.h
arch/arm/mach-s5p6442/Makefile +1 -1
@@ -12,7 +12,7 @@ obj- := # Core support for S5P6442 system -obj-$(CONFIG_CPU_S5P6442) += cpu.o init.o +obj-$(CONFIG_CPU_S5P6442) += cpu.o init.o clock.o # machine support
arch/arm/mach-s5p6442/clock.c new file +394 -0
394 lines not on this page · raw message
arch/arm/mach-s5p6442/include/mach/pwm-clock.h new file +69 -0
69 lines not on this page · raw message
arch/arm/mach-s5p6442/include/mach/regs-clock.h new file +103 -0
103 lines not on this page · raw message
arch/arm/mach-s5p6442/include/mach/tick.h new file +26 -0
@@ -0,0 +1,26 @@ +/* linux/arch/arm/mach-s5p6442/include/mach/tick.h +* +* Copyright (c) 2010 Samsung Electronics Co., Ltd. +* http://www.samsung.com/ +* +* Based on arch/arm/mach-s3c6400/include/mach/tick.h +* +* S5P6442 - Timer tick support definitions +* +* 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_ARCH_TICK_H +#define __ASM_ARCH_TICK_H __FILE__ + +static inline u32 s3c24xx_ostimer_pending (void ) +{ +u32 pend =__raw_readl (VA_VIC0 +VIC_RAW_STATUS ); +return pend & (1 << (IRQ_TIMER4_VIC -S5P_IRQ_VIC0 (0 ))); +} + +#define TICK_MAX (0xffffffff) + +#endif /* __ASM_ARCH_TICK_H */
Signature · 1 line
1.6.2.5