diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-08-05 21:28:15 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-04-21 15:01:08 +0200 |
commit | 58d37dc1dfd8900892d73da1f26ac1cefca52e6e (patch) | |
tree | a205eb9ee21c824d8a8a93b6da3d6b96e3cd1fe7 /arch/arm/mach-omap1 | |
parent | 1e9ca7c811f76b16c7822ad009b6b0c352227a15 (diff) | |
download | linux-stable-58d37dc1dfd8900892d73da1f26ac1cefca52e6e.tar.gz linux-stable-58d37dc1dfd8900892d73da1f26ac1cefca52e6e.tar.bz2 linux-stable-58d37dc1dfd8900892d73da1f26ac1cefca52e6e.zip |
ARM: omap1: move perseus spi pinconf to board file
The driver has always had a FIXME about this, and it seems
like this trivial code move avoids a mach header inclusion,
so just do it.
With that out of the way, and the header file inclusions
changed to global files, the driver can also be compile-tested
on other platforms.
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 1aeeb7337d29..da0155107d85 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c @@ -289,6 +289,12 @@ static void __init omap_perseus2_init(void) omap_cfg_reg(F4_7XX_KBC3); omap_cfg_reg(E3_7XX_KBC4); + if (IS_ENABLED(CONFIG_SPI_OMAP_UWIRE)) { + /* configure pins: MPU_UW_nSCS1, MPU_UW_SDO, MPU_UW_SCLK */ + int val = omap_readl(OMAP7XX_IO_CONF_9) & ~0x00EEE000; + omap_writel(val | 0x00AAA000, OMAP7XX_IO_CONF_9); + } + platform_add_devices(devices, ARRAY_SIZE(devices)); omap_serial_init(); |