]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MIPS: Move timer code to arch/mips/cpu/$(CPU)/
authorShinya Kuribayashi <skuribay@pobox.com>
Fri, 6 May 2011 15:18:13 +0000 (00:18 +0900)
committerShinya Kuribayashi <skuribay@pobox.com>
Mon, 9 May 2011 15:12:31 +0000 (00:12 +0900)
Current timer routines (arch/mips/lib/timer.c) are implemented assuming
that MIPS32 coprocessor (CP0) resources, Counter and Compare registers
in this case, are available.  But this doesn't always work.

We need to make sure that all MIPS-based systems don't necessarily use
CP0 counter/compare registers as time keeping resources.  And some MIPS
variant processors might come with different hardware specs with genuine
MIPS32 CP0 registers.

With this change, each $(CPU)/ directory can have its own timer code.

Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
arch/mips/cpu/mips32/Makefile
arch/mips/cpu/mips32/time.c [moved from arch/mips/lib/time.c with 100% similarity]
arch/mips/lib/Makefile

index e315c1bb8cf7a876a8281aa1596273283a4a221c..eb8e00544db79685b2620cc1d0893927a51a57e9 100644 (file)
@@ -27,7 +27,7 @@ LIB   = $(obj)lib$(CPU).o
 
 START  = start.o
 SOBJS-y        = cache.o
-COBJS-y        = cpu.o interrupts.o
+COBJS-y        = cpu.o interrupts.o time.o
 
 SRCS   := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
index 4e90704425aadb30b463dcce6420662007bd865e..9244f3151a76fa243e672f6b15be7809b45e8172 100644 (file)
@@ -33,7 +33,6 @@ COBJS-y       += bootm_qemu_mips.o
 else
 COBJS-y        += bootm.o
 endif
-COBJS-y        += time.o
 
 SRCS   := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))