Implement SC520 timers
PATCH 6/7 Implement SC520 timers
Implement SC520 timers
Signed-off-by Graeme Russ <[email protected]>
--- cpu/i386/Makefile | 2 cpu/i386/sc520/sc520_timer.c | 71 ++++++++----- cpu/i386/timer.c | 211 ---------------------------------------- include/asm-i386/u-boot-i386.h | 7 + lib_i386/Makefile | 2 lib_i386/pcat_timer.c | 102 +++++++++++++++++++ lib_i386/timer.c | 107 ++++++++++++++++++++ 7 files changed, 259 insertions(+), 243 deletions(-) delete mode 100644 cpu/i386/timer.c create mode 100644 lib_i386/pcat_timer.c create mode 100644 lib_i386/timer.c
cpu/i386/Makefile +1 -1
@@ -29,7 +29,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(CPU).a START = start.o start16.o resetvec.o -COBJS = serial.o interrupts.o exceptions.o cpu.o timer.o +COBJS = serial.o interrupts.o exceptions.o cpu.o SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
cpu/i386/sc520/sc520_timer.c +40 -31
87 lines not on this page · raw message
cpu/i386/timer.c deleted +0 -211
211 lines not on this page · raw message
include/asm-i386/u-boot-i386.h +7 -0
@@ -43,6 +43,13 @@ extern ulong i386boot_bios_size; /* size of BIOS emulation code *//* cpu/.../cpu.c */ int cpu_init (void ); + +/* cpu/.../timer.c */ +void timer_isr (void *); +typedef void (timer_fnc_t ) (void ); +int register_timer_isr (timer_fnc_t *isr_func); + +/* Architecture specific - can be in cpu/i386/, lib_i386/, or $(BOARD)/ */ int timer_init (void );/* cpu/.../interrupts.c */
lib_i386/Makefile +2 -0
@@ -39,7 +39,9 @@ COBJS-y += video_bios.o COBJS-y += video.o COBJS-y += zimage.o COBJS-y += interrupts.o +COBJS-y += timer.o COBJS-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o +COBJS-$(CONFIG_SYS_GENERIC_TIMER) += pcat_timer.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
lib_i386/pcat_timer.c new file +102 -0
102 lines not on this page · raw message
lib_i386/timer.c new file +107 -0
107 lines not on this page · raw message
Wolfgang Denk
AppliedPATCH 6/7 Implement SC520 timers
Dear Graeme Russ,
Quoted 10 lines · In message <[email protected]> you wrote:
Implement SC520 timers
Signed-off-by Graeme Russ <[email protected]>---
cpu/i386/Makefile | 2 =cpu/i386/sc520/sc520_timer.c | 71 ++++++++----- cpu/i386/timer.c | 211 ------------------------------------= ---- include/asm-i386/u-boot-i386.h | 7 +
Quoted 8 lines
lib_i386/Makefile | 2 =
lib_i386/pcat_timer.c | 102 +++++++++++++++++++ lib_i386/timer.c | 107 ++++++++++++++++++++ 7 files changed, 259 insertions(+), 243 deletions(-) delete mode 100644 cpu/i386/timer.c create mode 100644 lib_i386/pcat_timer.c create mode 100644 lib_i386/timer.c
Applied to "next" branch. Thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Niklaus Wirth has lamented that, whereas Europeans pronounce his name correctly (Ni-klows Virt), Americans invariably mangle it into (Nick-les Worth). Which is to say that Europeans call him by name, but Americans call him by value.