diff mbox series

[1/2] ARM: davinci: da850: Add SPI1 pinmux definitions

Message ID a06ee7503cb5fe3b395cbee3669cbad5ae16d210.1598966077.git.esben@geanix.com (mailing list archive)
State New, archived
Headers show
Series [1/2] ARM: davinci: da850: Add SPI1 pinmux definitions | expand

Commit Message

Esben Haabendal Sept. 1, 2020, 1:15 p.m. UTC
Extend the MUX configuration to allow enabling SPI1 pin functions.

Signed-off-by: Esben Haabendal <esben@geanix.com>
---
 arch/arm/mach-davinci/da850.c            | 13 +++++++++++++
 arch/arm/mach-davinci/include/mach/mux.h | 14 ++++++++++++++
 2 files changed, 27 insertions(+)

Comments

Sekhar Nori Sept. 24, 2020, 1:47 p.m. UTC | #1
On 01/09/20 6:45 PM, Esben Haabendal wrote:
> Extend the MUX configuration to allow enabling SPI1 pin functions.
> 
> Signed-off-by: Esben Haabendal <esben@geanix.com>

These patches also should no be required if we convert over to DT.

Thanks,
Sekhar
diff mbox series

Patch

diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c
index 68156e7239a6..d07ea5dbab65 100644
--- a/arch/arm/mach-davinci/da850.c
+++ b/arch/arm/mach-davinci/da850.c
@@ -157,6 +157,19 @@  static const struct mux_config da850_pins[] = {
 	MUX_CFG(DA850, MMCSD1_DAT_3,	19,	8,	15,	2,	false)
 	MUX_CFG(DA850, MMCSD1_CLK,	18,	12,	15,	2,	false)
 	MUX_CFG(DA850, MMCSD1_CMD,	18,	16,	15,	2,	false)
+	/* SPI1 function */
+	MUX_CFG(DA850, SPI1_SIMO,	5,	20,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SOMI,	5,	16,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_ENA,	5,	12,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_CLK,	5,	8,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS0,	5,	4,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS1,	5,	0,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS2,	4,	28,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS3,	4,	24,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS4,	4,	20,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS5,	4,	16,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS6,	4,	12,	15,	1,	false)
+	MUX_CFG(DA850, SPI1_SCS7,	4,	8,	15,	1,	false)
 	/* EMIF2.5/EMIFA function */
 	MUX_CFG(DA850, EMA_D_7,		9,	0,	15,	1,	false)
 	MUX_CFG(DA850, EMA_D_6,		9,	4,	15,	1,	false)
diff --git a/arch/arm/mach-davinci/include/mach/mux.h b/arch/arm/mach-davinci/include/mach/mux.h
index 631655e68ae0..2340ca92110d 100644
--- a/arch/arm/mach-davinci/include/mach/mux.h
+++ b/arch/arm/mach-davinci/include/mach/mux.h
@@ -865,6 +865,20 @@  enum davinci_da850_index {
 	DA850_MMCSD1_CLK,
 	DA850_MMCSD1_CMD,
 
+	/* SPI1 function */
+	DA850_SPI1_SIMO,
+	DA850_SPI1_SOMI,
+	DA850_SPI1_ENA,
+	DA850_SPI1_CLK,
+	DA850_SPI1_SCS0,
+	DA850_SPI1_SCS1,
+	DA850_SPI1_SCS2,
+	DA850_SPI1_SCS3,
+	DA850_SPI1_SCS4,
+	DA850_SPI1_SCS5,
+	DA850_SPI1_SCS6,
+	DA850_SPI1_SCS7,
+
 	/* EMIF2.5/EMIFA function */
 	DA850_EMA_D_7,
 	DA850_EMA_D_6,