diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2018-11-19 21:49:43 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2018-11-29 12:07:14 -0800 |
commit | 028baad5221e5f96361c8c4df29020badc92e123 (patch) | |
tree | 6336049656477d2bf357dc009175db06c079fc1d /arch/arm | |
parent | 04a92358b3964988c78dfe370a559ae550383886 (diff) |
ARM: OMAP1: devices: configure omap1_spi100k only on OMAP7xx
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |