diff options
Diffstat (limited to 'arch/m68k/platform')
| -rw-r--r-- | arch/m68k/platform/68000/entry.S | 33 | ||||
| -rw-r--r-- | arch/m68k/platform/68000/m68EZ328.c | 3 | ||||
| -rw-r--r-- | arch/m68k/platform/68000/m68VZ328.c | 1 | ||||
| -rw-r--r-- | arch/m68k/platform/68000/timers.c | 2 | ||||
| -rw-r--r-- | arch/m68k/platform/68360/config.c | 2 | ||||
| -rw-r--r-- | arch/m68k/platform/68360/entry.S | 24 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/gpio.c | 34 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m520x.c | 8 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m523x.c | 10 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m5249.c | 10 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m525x.c | 2 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m5272.c | 2 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m527x.c | 10 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m528x.c | 10 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/m53xx.c | 8 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/pit.c | 2 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/sltimers.c | 4 | ||||
| -rw-r--r-- | arch/m68k/platform/coldfire/timers.c | 4 | 
18 files changed, 68 insertions, 101 deletions
diff --git a/arch/m68k/platform/68000/entry.S b/arch/m68k/platform/68000/entry.S index 7f91c2fde50..23ac054c6e1 100644 --- a/arch/m68k/platform/68000/entry.S +++ b/arch/m68k/platform/68000/entry.S @@ -27,7 +27,6 @@  .globl ret_from_exception  .globl ret_from_signal  .globl sys_call_table -.globl ret_from_interrupt  .globl bad_interrupt  .globl inthandler1  .globl inthandler2 @@ -137,7 +136,7 @@ inthandler1:  	movel	#65,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler2:  	SAVE_ALL_INT @@ -148,7 +147,7 @@ inthandler2:  	movel	#66,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler3:  	SAVE_ALL_INT @@ -159,7 +158,7 @@ inthandler3:  	movel	#67,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler4:  	SAVE_ALL_INT @@ -170,7 +169,7 @@ inthandler4:  	movel	#68,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler5:  	SAVE_ALL_INT @@ -181,7 +180,7 @@ inthandler5:  	movel	#69,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler6:  	SAVE_ALL_INT @@ -192,7 +191,7 @@ inthandler6:  	movel	#70,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler7:  	SAVE_ALL_INT @@ -203,7 +202,7 @@ inthandler7:  	movel	#71,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt +	bra	ret_from_exception  inthandler:  	SAVE_ALL_INT @@ -214,23 +213,7 @@ inthandler:  	movel	%d0,%sp@- 		/*  put vector # on stack*/  	jbsr	process_int		/*  process the IRQ*/  3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt - -ret_from_interrupt: -	jeq	1f -2: -	RESTORE_ALL -1: -	moveb	%sp@(PT_OFF_SR), %d0 -	and	#7, %d0 -	jhi	2b - -	/* check if we need to do software interrupts */ -	jeq	ret_from_exception - -	pea	ret_from_exception -	jra	do_softirq - +	bra	ret_from_exception  /*   * Handler for uninitialized and spurious interrupts. diff --git a/arch/m68k/platform/68000/m68EZ328.c b/arch/m68k/platform/68000/m68EZ328.c index 332b5e8605f..21952906e9e 100644 --- a/arch/m68k/platform/68000/m68EZ328.c +++ b/arch/m68k/platform/68000/m68EZ328.c @@ -69,7 +69,8 @@ void __init config_BSP(char *command, int len)    if (p) strcpy(p,command);    else command[0] = 0;  #endif -  + +  mach_sched_init = hw_timer_init;    mach_hwclk = m68328_hwclk;    mach_reset = m68ez328_reset;  } diff --git a/arch/m68k/platform/68000/m68VZ328.c b/arch/m68k/platform/68000/m68VZ328.c index fd6658358af..0e5e5a10a02 100644 --- a/arch/m68k/platform/68000/m68VZ328.c +++ b/arch/m68k/platform/68000/m68VZ328.c @@ -182,6 +182,7 @@ void __init config_BSP(char *command, int size)  	init_hardware(command, size); +	mach_sched_init = hw_timer_init;  	mach_hwclk = m68328_hwclk;  	mach_reset = m68vz328_reset;  } diff --git a/arch/m68k/platform/68000/timers.c b/arch/m68k/platform/68000/timers.c index ec30acbfe6d..99a98698bc9 100644 --- a/arch/m68k/platform/68000/timers.c +++ b/arch/m68k/platform/68000/timers.c @@ -70,7 +70,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)  static struct irqaction m68328_timer_irq = {  	.name	 = "timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = hw_tick,  }; diff --git a/arch/m68k/platform/68360/config.c b/arch/m68k/platform/68360/config.c index 0570741e550..d493ac43fe3 100644 --- a/arch/m68k/platform/68360/config.c +++ b/arch/m68k/platform/68360/config.c @@ -59,7 +59,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)  static struct irqaction m68360_timer_irq = {  	.name	 = "timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = hw_tick,  }; diff --git a/arch/m68k/platform/68360/entry.S b/arch/m68k/platform/68360/entry.S index 904fd9a4af4..447c33ef37f 100644 --- a/arch/m68k/platform/68360/entry.S +++ b/arch/m68k/platform/68360/entry.S @@ -29,7 +29,6 @@  .globl ret_from_exception  .globl ret_from_signal  .globl sys_call_table -.globl ret_from_interrupt  .globl bad_interrupt  .globl inthandler @@ -132,26 +131,9 @@ inthandler:  	movel	%sp,%sp@-  	movel	%d0,%sp@- 		/*  put vector # on stack*/ -	jbsr	do_IRQ			/*  process the IRQ*/ -3:     	addql	#8,%sp			/*  pop parameters off stack*/ -	bra	ret_from_interrupt - -ret_from_interrupt: -	jeq	1f -2: -	RESTORE_ALL -1: -	moveb	%sp@(PT_OFF_SR), %d0 -	and	#7, %d0 -	jhi	2b -	/* check if we need to do software interrupts */ - -	movel	irq_stat+CPUSTAT_SOFTIRQ_PENDING,%d0 -	jeq	ret_from_exception - -	pea	ret_from_exception -	jra	do_softirq - +	jbsr	do_IRQ			/*  process the IRQ */ +	addql	#8,%sp			/*  pop parameters off stack*/ +	jra	ret_from_exception  /*   * Handler for uninitialized and spurious interrupts. diff --git a/arch/m68k/platform/coldfire/gpio.c b/arch/m68k/platform/coldfire/gpio.c index 9cd2b5c7051..e7e428681ec 100644 --- a/arch/m68k/platform/coldfire/gpio.c +++ b/arch/m68k/platform/coldfire/gpio.c @@ -76,10 +76,7 @@ int __mcfgpio_direction_output(unsigned gpio, int value)  	local_irq_save(flags);  	data = mcfgpio_read(__mcfgpio_pddr(gpio)); -	if (value) -		data |= mcfgpio_bit(gpio); -	else -		data &= mcfgpio_bit(gpio); +	data |= mcfgpio_bit(gpio);  	mcfgpio_write(data, __mcfgpio_pddr(gpio));  	/* now set the data to output */ @@ -117,37 +114,51 @@ EXPORT_SYMBOL(__mcfgpio_free);  #ifdef CONFIG_GPIOLIB -int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset) +static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset)  {  	return __mcfgpio_direction_input(offset);  } -int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset) +static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset)  {  	return __mcfgpio_get_value(offset);  } -int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) +static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, +				    int value)  {  	return __mcfgpio_direction_output(offset, value);  } -void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, int value) +static void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, +			      int value)  {  	__mcfgpio_set_value(offset, value);  } -int mcfgpio_request(struct gpio_chip *chip, unsigned offset) +static int mcfgpio_request(struct gpio_chip *chip, unsigned offset)  {  	return __mcfgpio_request(offset);  } -void mcfgpio_free(struct gpio_chip *chip, unsigned offset) +static void mcfgpio_free(struct gpio_chip *chip, unsigned offset)  {  	__mcfgpio_free(offset);  } -struct bus_type mcfgpio_subsys = { +static int mcfgpio_to_irq(struct gpio_chip *chip, unsigned offset) +{ +#if defined(MCFGPIO_IRQ_MIN) +	if ((offset >= MCFGPIO_IRQ_MIN) && (offset < MCFGPIO_IRQ_MAX)) +#else +	if (offset < MCFGPIO_IRQ_MAX) +#endif +		return MCFGPIO_IRQ_VECBASE + offset; +	else +		return -EINVAL; +} + +static struct bus_type mcfgpio_subsys = {  	.name		= "gpio",  	.dev_name	= "gpio",  }; @@ -160,6 +171,7 @@ static struct gpio_chip mcfgpio_chip = {  	.direction_output	= mcfgpio_direction_output,  	.get			= mcfgpio_get_value,  	.set			= mcfgpio_set_value, +	.to_irq			= mcfgpio_to_irq,  	.base			= 0,  	.ngpio			= MCFGPIO_PIN_MAX,  }; diff --git a/arch/m68k/platform/coldfire/m520x.c b/arch/m68k/platform/coldfire/m520x.c index ea1be0e98ad..4040a3c9373 100644 --- a/arch/m68k/platform/coldfire/m520x.c +++ b/arch/m68k/platform/coldfire/m520x.c @@ -118,10 +118,9 @@ static void __init m520x_clk_init(void)  /***************************************************************************/ -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) -  static void __init m520x_qspi_init(void)  { +#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	u16 par;  	/* setup Port QS for QSPI with gpio CS control */  	writeb(0x3f, MCF_GPIO_PAR_QSPI); @@ -129,9 +128,8 @@ static void __init m520x_qspi_init(void)  	par = readw(MCF_GPIO_PAR_UART);  	par &= 0x00ff;  	writew(par, MCF_GPIO_PAR_UART); -} -  #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */ +}  /***************************************************************************/ @@ -176,9 +174,7 @@ void __init config_BSP(char *commandp, int size)  	m520x_clk_init();  	m520x_uarts_init();  	m520x_fec_init(); -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	m520x_qspi_init(); -#endif  }  /***************************************************************************/ diff --git a/arch/m68k/platform/coldfire/m523x.c b/arch/m68k/platform/coldfire/m523x.c index 2b10e9f198c..6b7135e6d5b 100644 --- a/arch/m68k/platform/coldfire/m523x.c +++ b/arch/m68k/platform/coldfire/m523x.c @@ -32,6 +32,7 @@ DEFINE_CLK(mcfpit3, "mcfpit.3", MCF_CLK);  DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);  DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK);  DEFINE_CLK(mcfuart2, "mcfuart.2", MCF_BUSCLK); +DEFINE_CLK(mcfqspi0, "mcfqspi.0", MCF_BUSCLK);  DEFINE_CLK(fec0, "fec.0", MCF_BUSCLK);  struct clk *mcf_clks[] = { @@ -44,16 +45,16 @@ struct clk *mcf_clks[] = {  	&clk_mcfuart0,  	&clk_mcfuart1,  	&clk_mcfuart2, +	&clk_mcfqspi0,  	&clk_fec0,  	NULL  };  /***************************************************************************/ -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) -  static void __init m523x_qspi_init(void)  { +#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	u16 par;  	/* setup QSPS pins for QSPI with gpio CS control */ @@ -62,9 +63,8 @@ static void __init m523x_qspi_init(void)  	par = readw(MCFGPIO_PAR_TIMER);  	par &= 0x3f3f;  	writew(par, MCFGPIO_PAR_TIMER); -} -  #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */ +}  /***************************************************************************/ @@ -80,9 +80,7 @@ void __init config_BSP(char *commandp, int size)  {  	mach_sched_init = hw_timer_init;  	m523x_fec_init(); -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	m523x_qspi_init(); -#endif  }  /***************************************************************************/ diff --git a/arch/m68k/platform/coldfire/m5249.c b/arch/m68k/platform/coldfire/m5249.c index c80b5e51d29..f6253a3313b 100644 --- a/arch/m68k/platform/coldfire/m5249.c +++ b/arch/m68k/platform/coldfire/m5249.c @@ -26,6 +26,7 @@ DEFINE_CLK(mcftmr0, "mcftmr.0", MCF_BUSCLK);  DEFINE_CLK(mcftmr1, "mcftmr.1", MCF_BUSCLK);  DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);  DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK); +DEFINE_CLK(mcfqspi0, "mcfqspi.0", MCF_BUSCLK);  struct clk *mcf_clks[] = {  	&clk_pll, @@ -34,6 +35,7 @@ struct clk *mcf_clks[] = {  	&clk_mcftmr1,  	&clk_mcfuart0,  	&clk_mcfuart1, +	&clk_mcfqspi0,  	NULL  }; @@ -71,17 +73,15 @@ static struct platform_device *m5249_devices[] __initdata = {  /***************************************************************************/ -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) -  static void __init m5249_qspi_init(void)  { +#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	/* QSPI irq setup */  	writeb(MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL4 | MCFSIM_ICR_PRI0,  	       MCFSIM_QSPIICR);  	mcf_mapirq2imr(MCF_IRQ_QSPI, MCFINTC_QSPI); -} -  #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */ +}  /***************************************************************************/ @@ -110,9 +110,7 @@ void __init config_BSP(char *commandp, int size)  #ifdef CONFIG_M5249C3  	m5249_smc91x_init();  #endif -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	m5249_qspi_init(); -#endif  }  /***************************************************************************/ diff --git a/arch/m68k/platform/coldfire/m525x.c b/arch/m68k/platform/coldfire/m525x.c index 5b9f657b2df..1adba390903 100644 --- a/arch/m68k/platform/coldfire/m525x.c +++ b/arch/m68k/platform/coldfire/m525x.c @@ -26,6 +26,7 @@ DEFINE_CLK(mcftmr0, "mcftmr.0", MCF_BUSCLK);  DEFINE_CLK(mcftmr1, "mcftmr.1", MCF_BUSCLK);  DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);  DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK); +DEFINE_CLK(mcfqspi0, "mcfqspi.0", MCF_BUSCLK);  struct clk *mcf_clks[] = {  	&clk_pll, @@ -34,6 +35,7 @@ struct clk *mcf_clks[] = {  	&clk_mcftmr1,  	&clk_mcfuart0,  	&clk_mcfuart1, +	&clk_mcfqspi0,  	NULL  }; diff --git a/arch/m68k/platform/coldfire/m5272.c b/arch/m68k/platform/coldfire/m5272.c index a8c5856fe5e..8a4d3cc322c 100644 --- a/arch/m68k/platform/coldfire/m5272.c +++ b/arch/m68k/platform/coldfire/m5272.c @@ -39,6 +39,7 @@ DEFINE_CLK(mcftmr2, "mcftmr.2", MCF_BUSCLK);  DEFINE_CLK(mcftmr3, "mcftmr.3", MCF_BUSCLK);  DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);  DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK); +DEFINE_CLK(mcfqspi0, "mcfqspi.0", MCF_BUSCLK);  DEFINE_CLK(fec0, "fec.0", MCF_BUSCLK);  struct clk *mcf_clks[] = { @@ -50,6 +51,7 @@ struct clk *mcf_clks[] = {  	&clk_mcftmr3,  	&clk_mcfuart0,  	&clk_mcfuart1, +	&clk_mcfqspi0,  	&clk_fec0,  	NULL  }; diff --git a/arch/m68k/platform/coldfire/m527x.c b/arch/m68k/platform/coldfire/m527x.c index 6fbfe9096c3..62d81ef016f 100644 --- a/arch/m68k/platform/coldfire/m527x.c +++ b/arch/m68k/platform/coldfire/m527x.c @@ -33,6 +33,7 @@ DEFINE_CLK(mcfpit3, "mcfpit.3", MCF_CLK);  DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);  DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK);  DEFINE_CLK(mcfuart2, "mcfuart.2", MCF_BUSCLK); +DEFINE_CLK(mcfqspi0, "mcfqspi.0", MCF_BUSCLK);  DEFINE_CLK(fec0, "fec.0", MCF_BUSCLK);  DEFINE_CLK(fec1, "fec.1", MCF_BUSCLK); @@ -46,6 +47,7 @@ struct clk *mcf_clks[] = {  	&clk_mcfuart0,  	&clk_mcfuart1,  	&clk_mcfuart2, +	&clk_mcfqspi0,  	&clk_fec0,  	&clk_fec1,  	NULL @@ -53,10 +55,9 @@ struct clk *mcf_clks[] = {  /***************************************************************************/ -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) -  static void __init m527x_qspi_init(void)  { +#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  #if defined(CONFIG_M5271)  	u16 par; @@ -70,9 +71,8 @@ static void __init m527x_qspi_init(void)  	/* setup QSPS pins for QSPI with gpio CS control */  	writew(0x003e, MCFGPIO_PAR_QSPI);  #endif -} -  #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */ +}  /***************************************************************************/ @@ -120,9 +120,7 @@ void __init config_BSP(char *commandp, int size)  	mach_sched_init = hw_timer_init;  	m527x_uarts_init();  	m527x_fec_init(); -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	m527x_qspi_init(); -#endif  }  /***************************************************************************/ diff --git a/arch/m68k/platform/coldfire/m528x.c b/arch/m68k/platform/coldfire/m528x.c index b03a9d27183..21cd161d36f 100644 --- a/arch/m68k/platform/coldfire/m528x.c +++ b/arch/m68k/platform/coldfire/m528x.c @@ -34,6 +34,7 @@ DEFINE_CLK(mcfpit3, "mcfpit.3", MCF_CLK);  DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);  DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK);  DEFINE_CLK(mcfuart2, "mcfuart.2", MCF_BUSCLK); +DEFINE_CLK(mcfqspi0, "mcfqspi.0", MCF_BUSCLK);  DEFINE_CLK(fec0, "fec.0", MCF_BUSCLK);  struct clk *mcf_clks[] = { @@ -46,21 +47,20 @@ struct clk *mcf_clks[] = {  	&clk_mcfuart0,  	&clk_mcfuart1,  	&clk_mcfuart2, +	&clk_mcfqspi0,  	&clk_fec0,  	NULL  };  /***************************************************************************/ -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) -  static void __init m528x_qspi_init(void)  { +#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	/* setup Port QS for QSPI with gpio CS control */  	__raw_writeb(0x07, MCFGPIO_PQSPAR); -} -  #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */ +}  /***************************************************************************/ @@ -126,9 +126,7 @@ void __init config_BSP(char *commandp, int size)  	mach_sched_init = hw_timer_init;  	m528x_uarts_init();  	m528x_fec_init(); -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	m528x_qspi_init(); -#endif  }  /***************************************************************************/ diff --git a/arch/m68k/platform/coldfire/m53xx.c b/arch/m68k/platform/coldfire/m53xx.c index 5286f98fbed..80879a7fe3d 100644 --- a/arch/m68k/platform/coldfire/m53xx.c +++ b/arch/m68k/platform/coldfire/m53xx.c @@ -166,15 +166,13 @@ static void __init m53xx_clk_init(void)  /***************************************************************************/ -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) -  static void __init m53xx_qspi_init(void)  { +#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	/* setup QSPS pins for QSPI with gpio CS control */  	writew(0x01f0, MCFGPIO_PAR_QSPI); -} -  #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */ +}  /***************************************************************************/ @@ -219,9 +217,7 @@ void __init config_BSP(char *commandp, int size)  	m53xx_clk_init();  	m53xx_uarts_init();  	m53xx_fec_init(); -#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)  	m53xx_qspi_init(); -#endif  #ifdef CONFIG_BDM_DISABLE  	/* diff --git a/arch/m68k/platform/coldfire/pit.c b/arch/m68k/platform/coldfire/pit.c index e8f3b97b0f7..493b3111d4c 100644 --- a/arch/m68k/platform/coldfire/pit.c +++ b/arch/m68k/platform/coldfire/pit.c @@ -118,7 +118,7 @@ static irqreturn_t pit_tick(int irq, void *dummy)  static struct irqaction pit_irq = {  	.name	 = "timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = pit_tick,  }; diff --git a/arch/m68k/platform/coldfire/sltimers.c b/arch/m68k/platform/coldfire/sltimers.c index bb5a25ada84..831a08cf6f4 100644 --- a/arch/m68k/platform/coldfire/sltimers.c +++ b/arch/m68k/platform/coldfire/sltimers.c @@ -51,7 +51,7 @@ irqreturn_t mcfslt_profile_tick(int irq, void *dummy)  static struct irqaction mcfslt_profile_irq = {  	.name	 = "profile timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = mcfslt_profile_tick,  }; @@ -93,7 +93,7 @@ static irqreturn_t mcfslt_tick(int irq, void *dummy)  static struct irqaction mcfslt_timer_irq = {  	.name	 = "timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = mcfslt_tick,  }; diff --git a/arch/m68k/platform/coldfire/timers.c b/arch/m68k/platform/coldfire/timers.c index d06068e4576..cd496a20fcc 100644 --- a/arch/m68k/platform/coldfire/timers.c +++ b/arch/m68k/platform/coldfire/timers.c @@ -83,7 +83,7 @@ static irqreturn_t mcftmr_tick(int irq, void *dummy)  static struct irqaction mcftmr_timer_irq = {  	.name	 = "timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = mcftmr_tick,  }; @@ -171,7 +171,7 @@ irqreturn_t coldfire_profile_tick(int irq, void *dummy)  static struct irqaction coldfire_profile_irq = {  	.name	 = "profile timer", -	.flags	 = IRQF_DISABLED | IRQF_TIMER, +	.flags	 = IRQF_TIMER,  	.handler = coldfire_profile_tick,  };  | 
