* [PATCH] ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx
@ 2018-11-19 19:49 Aaro Koskinen
2018-11-29 20:07 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2018-11-19 19:49 UTC (permalink / raw)
To: Tony Lindgren, linux-omap; +Cc: linux-arm-kernel, linux-kernel, Aaro Koskinen
Configure omap1_spi100k only on OMAP7xx. This allows running multiboard
kernels on non-OMAP7xx HW with CONFIG_SPI_OMAP_100K enabled.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
arch/arm/mach-omap1/devices.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
index baaf902b7016..e1243b5d554f 100644
--- a/arch/arm/mach-omap1/devices.c
+++ b/arch/arm/mach-omap1/devices.c
@@ -244,6 +244,9 @@ struct platform_device omap_spi2 = {
static void omap_init_spi100k(void)
{
+ if (!cpu_is_omap7xx())
+ return;
+
omap_spi1.dev.platform_data = ioremap(OMAP7XX_SPI1_BASE, 0x7ff);
if (omap_spi1.dev.platform_data)
platform_device_register(&omap_spi1);
--
2.17.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx
2018-11-19 19:49 [PATCH] ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx Aaro Koskinen
@ 2018-11-29 20:07 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2018-11-29 20:07 UTC (permalink / raw)
To: Aaro Koskinen; +Cc: linux-omap, linux-arm-kernel, linux-kernel
* Aaro Koskinen <aaro.koskinen@iki.fi> [181119 11:49]:
> Configure omap1_spi100k only on OMAP7xx. This allows running multiboard
> kernels on non-OMAP7xx HW with CONFIG_SPI_OMAP_100K enabled.
Applying into omap-for-v4.21/omap1 thanks.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-29 20:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19 19:49 [PATCH] ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx Aaro Koskinen
2018-11-29 20:07 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).