Skip to contentSkip to conversation

arm/aspeed: Enable SPI Master on ast2500evb

PATCH In review Cédric Le Goater 2 participants 2 messages Oct 14, 2016 – Oct 17, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/aspeed: Enable SPI Master on ast2500evb

The default is OFF.

---
 arch/arm/mach-aspeed/aspeed.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
arch/arm/mach-aspeed/aspeed.c +4 -1
index 12a63db27a21..96713ecd8501 100644
@@ -159,9 +159,12 @@ static void __init do_ast2500evb_setup(void)
 
 	do_ast2500_common_setup();
 
-	/* Set strap to RGMII for dedicated PHY networking */
 	reg = readl(AST_IO(AST_BASE_SCU | 0x70));
+
+	/* Set strap to RGMII for dedicated PHY networking */
 	reg |= BIT(6) | BIT(7);
+	/* Enable SPI Master and SPI Slave to AHB Bridge */
+	reg |= BIT(13);
 	writel(reg, AST_IO(AST_BASE_SCU | 0x70));
 }
 
Signature · 1 line
2.7.4
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Cédric Le Goater

The default is OFF.

I will apply this one now to dev-4.7.

Quoted 25 lines
---
 arch/arm/mach-aspeed/aspeed.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
arch/arm/mach-aspeed/aspeed.c +4 -2
index 12a63db27a21..96713ecd8501 100644
@@ -159,9 +159,12 @@ static void __init do_ast2500evb_setup(void)
 
        do_ast2500_common_setup();
 
-       /* Set strap to RGMII for dedicated PHY networking */
        reg = readl(AST_IO(AST_BASE_SCU | 0x70));
+
+       /* Set strap to RGMII for dedicated PHY networking */
        reg |= BIT(6) | BIT(7);
+       /* Enable SPI Master and SPI Slave to AHB Bridge */
+       reg |= BIT(13);
        writel(reg, AST_IO(AST_BASE_SCU | 0x70));
 }
 
--

2.7.4