[PATCH linux dev-4.7] arm/aspeed: Enable SPI Master on ast2500evb
Cédric Le Goater
clg at kaod.org
Sat Oct 15 00:48:19 AEDT 2016
The default is OFF.
Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
arch/arm/mach-aspeed/aspeed.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
index 12a63db27a21..96713ecd8501 100644
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -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
More information about the openbmc
mailing list