Skip to content

Commit 7452ca5

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu from Greg Ungerer: "This contains five fixes. Four fix build problems introduced by recent clean up and merging of the m68k timer and ptrace code. The other fixes the 528x ColdFire CPU QSPI base address definition, missed in the ColdFire QSPI cleanup." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: make syscall_trace_enter/leave exist for non-MMU classic m68k types m68knommu: fix 68360 local setting of timer interrupt handler m68knommu: fix 68328 local setting of timer interrupt handler m68k: fix inclusion of arch_gettimeoffset for non-MMU 68k classic CPU types m68knommu: m528x qspi definition fix
2 parents b842971 + 70c778f commit 7452ca5

5 files changed

Lines changed: 13 additions & 8 deletions

File tree

‎arch/m68k/include/asm/m528xsim.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
/*
8787
* QSPI module.
8888
*/
89-
#define MCFQSPI_IOBASE (MCF_IPSBAR + 0x340)
89+
#define MCFQSPI_BASE (MCF_IPSBAR + 0x340)
9090
#define MCFQSPI_SIZE 0x40
9191

9292
#define MCFQSPI_CS0 147

‎arch/m68k/kernel/ptrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ asmlinkage void syscall_trace(void)
286286
}
287287
}
288288

289-
#ifdef CONFIG_COLDFIRE
289+
#if defined(CONFIG_COLDFIRE) || !defined(CONFIG_MMU)
290290
asmlinkage int syscall_trace_enter(void)
291291
{
292292
int ret = 0;

‎arch/m68k/kernel/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void __init time_init(void)
8585
mach_sched_init(timer_interrupt);
8686
}
8787

88-
#ifdef CONFIG_M68KCLASSIC
88+
#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
8989

9090
u32 arch_gettimeoffset(void)
9191
{
@@ -108,4 +108,4 @@ static int __init rtc_init(void)
108108

109109
module_init(rtc_init);
110110

111-
#endif /* CONFIG_M68KCLASSIC */
111+
#endif /* CONFIG_ARCH_USES_GETTIMEOFFSET */

‎arch/m68k/platform/68328/timers.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#endif
5454

5555
static u32 m68328_tick_cnt;
56+
static irq_handler_t timer_interrupt;
5657

5758
/***************************************************************************/
5859

@@ -62,7 +63,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)
6263
TSTAT &= 0;
6364

6465
m68328_tick_cnt += TICKS_PER_JIFFY;
65-
return arch_timer_interrupt(irq, dummy);
66+
return timer_interrupt(irq, dummy);
6667
}
6768

6869
/***************************************************************************/
@@ -99,7 +100,7 @@ static struct clocksource m68328_clk = {
99100

100101
/***************************************************************************/
101102

102-
void hw_timer_init(void)
103+
void hw_timer_init(irq_handler_t handler)
103104
{
104105
/* disable timer 1 */
105106
TCTL = 0;
@@ -115,6 +116,7 @@ void hw_timer_init(void)
115116
/* Enable timer 1 */
116117
TCTL |= TCTL_TEN;
117118
clocksource_register_hz(&m68328_clk, TICKS_PER_JIFFY*HZ);
119+
timer_interrupt = handler;
118120
}
119121

120122
/***************************************************************************/

‎arch/m68k/platform/68360/config.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extern void m360_cpm_reset(void);
3535
#define OSCILLATOR (unsigned long int)33000000
3636
#endif
3737

38+
static irq_handler_t timer_interrupt;
3839
unsigned long int system_clock;
3940

4041
extern QUICC *pquicc;
@@ -52,7 +53,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)
5253

5354
pquicc->timer_ter1 = 0x0002; /* clear timer event */
5455

55-
return arch_timer_interrupt(irq, dummy);
56+
return timer_interrupt(irq, dummy);
5657
}
5758

5859
static struct irqaction m68360_timer_irq = {
@@ -61,7 +62,7 @@ static struct irqaction m68360_timer_irq = {
6162
.handler = hw_tick,
6263
};
6364

64-
void hw_timer_init(void)
65+
void hw_timer_init(irq_handler_t handler)
6566
{
6667
unsigned char prescaler;
6768
unsigned short tgcr_save;
@@ -94,6 +95,8 @@ void hw_timer_init(void)
9495

9596
pquicc->timer_ter1 = 0x0003; /* clear timer events */
9697

98+
timer_interrupt = handler;
99+
97100
/* enable timer 1 interrupt in CIMR */
98101
setup_irq(CPMVEC_TIMER1, &m68360_timer_irq);
99102

0 commit comments

Comments
 (0)