diff mbox series

[u-boot,aspeed-dev-v2019.04,3/7] aspeed: pinctrl: Add FSI support

Message ID 20191030063225.11319-4-joel@jms.id.au
State Not Applicable, archived
Headers show
Series FSI driver for u-boot | expand

Commit Message

Joel Stanley Oct. 30, 2019, 6:32 a.m. UTC
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 drivers/pinctrl/aspeed/pinctrl_ast2600.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2600.c b/drivers/pinctrl/aspeed/pinctrl_ast2600.c
index b22f280e6979..e87b33687f51 100644
--- a/drivers/pinctrl/aspeed/pinctrl_ast2600.c
+++ b/drivers/pinctrl/aspeed/pinctrl_ast2600.c
@@ -242,6 +242,14 @@  static struct aspeed_sig_desc pcie_rc_reset_link[] = {
 	{ 0x500, BIT(24), 0 },
 };
 
+static struct aspeed_sig_desc fsi1[] = {
+	{ 0xd48, GENMASK(21, 20), 0 },
+};
+
+static struct aspeed_sig_desc fsi2[] = {
+	{ 0xd48, GENMASK(23, 22), 0 },
+};
+
 static const struct aspeed_group_config ast2600_groups[] = {
 	{ "MAC1LINK", ARRAY_SIZE(mac1_link), mac1_link },
 	{ "MAC2LINK", ARRAY_SIZE(mac2_link), mac2_link },
@@ -282,6 +290,8 @@  static const struct aspeed_group_config ast2600_groups[] = {
 	{ "I2C15", ARRAY_SIZE(i2c15_link), i2c15_link },
 	{ "I2C16", ARRAY_SIZE(i2c16_link), i2c16_link },
 	{ "PCIERC", ARRAY_SIZE(pcie_rc_reset_link), pcie_rc_reset_link },
+	{ "FSI1", ARRAY_SIZE(fsi1), fsi1 },
+	{ "FSI2", ARRAY_SIZE(fsi2), fsi2 },
 };
 
 static int ast2600_pinctrl_get_groups_count(struct udevice *dev)