5a3a388fbe
On OMAP2/3, the gp-timer code can be used for a 32kHz timer simply by setting the source to be the 32k clock instead of sys_clk. This patch uses the mach-omap2/timer-gp.c code for 32kHz timer on OMAP2, moving the logic into mach-omap2/timer-gp.c, and not using plat-omap/timer32k.c which, for OMAP2, is redundant with the timer-gp code. Also, if CONFIG_OMAP_32K_TIMER is enabled, the gptimer-based clocksource is not used. Instead the default 32k sync counter is used as the clocksource (see the clocksource in plat-omap/common.c.) This is important for sleep/suspend so there is a valid counter during sleep. Note that the suspend/sleep code needs fixing to check for overflows of this counter. In addition, the OMAP2/3 details are removed from timer32k.c leaving that with only OMAP1 specifics. A follow-up patch will move it from plat-omap common code to mach-omap1. Signed-off-by: Kevin Hilman <khilman@mvista.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
29 lines
654 B
Makefile
29 lines
654 B
Makefile
#
|
|
# Makefile for the linux kernel.
|
|
#
|
|
|
|
# Common support
|
|
obj-y := common.o sram.o sram-fn.o clock.o devices.o dma.o mux.o gpio.o \
|
|
usb.o fb.o
|
|
obj-m :=
|
|
obj-n :=
|
|
obj- :=
|
|
|
|
ifeq ($(CONFIG_ARCH_OMAP1),y)
|
|
obj-$(CONFIG_OMAP_32K_TIMER) += timer32k.o
|
|
endif
|
|
|
|
# OCPI interconnect support for 1710, 1610 and 5912
|
|
obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o
|
|
|
|
obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
|
|
|
|
obj-$(CONFIG_CPU_FREQ) += cpu-omap.o
|
|
obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o
|
|
obj-$(CONFIG_OMAP_DEBUG_DEVICES) += debug-devices.o
|
|
obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o
|
|
obj-$(CONFIG_I2C_OMAP) += i2c.o
|
|
|
|
# OMAP mailbox framework
|
|
obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox.o
|
|
|