From: Maxim Sloyko <maxims@google.com>
To: sjg@chromium.org
Cc: openbmc@lists.ozlabs.org, Maxim Sloyko <maxims@google.com>
Subject: [PATCH u-boot v1 3/6] aspeed/scu: Add definitions needed to configure pins for I2C
Date: Wed, 23 Nov 2016 11:49:59 -0800 [thread overview]
Message-ID: <1479930602-91012-3-git-send-email-maxims@google.com> (raw)
In-Reply-To: <1479930602-91012-1-git-send-email-maxims@google.com>
Add missing definitions for configuring I2C pins
Signed-off-by: Maxim Sloyko <maxims@google.com>
---
arch/arm/include/asm/arch-aspeed/regs-scu.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/arch-aspeed/regs-scu.h b/arch/arm/include/asm/arch-aspeed/regs-scu.h
index 5445023..6cb4d0d 100644
--- a/arch/arm/include/asm/arch-aspeed/regs-scu.h
+++ b/arch/arm/include/asm/arch-aspeed/regs-scu.h
@@ -844,11 +844,15 @@
#define SCU_FUN_PIN_I2C5 (0x1 << 18)
#define SCU_FUN_PIN_I2C4 (0x1 << 17)
#define SCU_FUN_PIN_I2C3 (0x1 << 16)
+#define SCU_FUN_PIN_I2C(n) (0x1 << (16 + (n) - 3))
#define SCU_FUN_PIN_MII2_RX_DWN_DIS (0x1 << 15)
#define SCU_FUN_PIN_MII2_TX_DWN_DIS (0x1 << 14)
#define SCU_FUN_PIN_MII1_RX_DWN_DIS (0x1 << 13)
#define SCU_FUN_PIN_MII1_TX_DWN_DIS (0x1 << 12)
+#define SCU_I2C_MIN_BUS_NUM (1)
+#define SCU_I2C_MAX_BUS_NUM (14)
+
#define SCU_FUN_PIN_MII2_TX_DRIV(x) (x << 10)
#define SCU_FUN_PIN_MII2_TX_DRIV_MASK (0x3 << 10)
#define SCU_FUN_PIN_MII1_TX_DRIV(x) (x << 8)
@@ -914,6 +918,11 @@
#define SCU_FUN_PIN_ROMA4 (0x1 << 18)
#define SCU_FUN_PIN_ROMA3 (0x1 << 17)
#define SCU_FUN_PIN_ROMA2 (0x1 << 16)
+/* AST2500 only */
+#define SCU_FUN_PIN_SDA2 (0x1 << 15)
+#define SCU_FUN_PIN_SCL2 (0x1 << 14)
+#define SCU_FUN_PIN_SDA1 (0x1 << 13)
+#define SCU_FUN_PIN_SCL1 (0x1 << 12)
/* AST_SCU_FUN_PIN_CTRL9 0xA8 - Multi-function Pin Control#9 */
#define SCU_FUN_PIN_ROMA21 (0x1 << 3)
--
2.8.0.rc3.226.g39d4020
next prev parent reply other threads:[~2016-11-23 19:50 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 23:56 [PATCH u-boot 0/5] Aspeed I2C driver, using Driver Model maxims
2016-11-22 23:56 ` [U-Boot] " maxims at google.com
2016-11-22 23:56 ` [PATCH u-boot 1/5] aspeed/g5: Device Tree for ast2500, copied from openbmc/linux (include file), plus minimal device tree configuration for ast2500 eval board maxims
2016-11-22 23:56 ` [U-Boot] " maxims at google.com
2016-11-23 16:13 ` Simon Glass
2016-11-23 16:23 ` Simon Glass
2016-11-23 16:23 ` [U-Boot] " Simon Glass
2016-11-22 23:56 ` [PATCH u-boot 2/5] aspeed: Fixed incosistency in some SCU registers naming maxims
2016-11-22 23:56 ` [U-Boot] " maxims at google.com
2016-11-23 16:13 ` Simon Glass
2016-11-23 16:24 ` Simon Glass
2016-11-23 16:24 ` [U-Boot] " Simon Glass
2016-11-22 23:56 ` [PATCH u-boot 3/5] aspeed: Added function to calculate APB Clock frequency maxims
2016-11-22 23:56 ` [U-Boot] " maxims at google.com
2016-11-23 16:13 ` Simon Glass
2016-11-23 16:24 ` Simon Glass
2016-11-23 16:24 ` [U-Boot] " Simon Glass
2016-11-23 17:59 ` Maxim Sloyko
2016-11-22 23:56 ` [PATCH u-boot 4/5] aspeed: Added function to configure pins for I2C devices maxims
2016-11-22 23:56 ` [U-Boot] " maxims at google.com
2016-11-23 16:13 ` Simon Glass
2016-11-23 16:24 ` Simon Glass
2016-11-23 16:24 ` [U-Boot] " Simon Glass
2016-11-23 18:06 ` Maxim Sloyko
2016-11-22 23:56 ` [PATCH u-boot 5/5] aspeed: I2C driver maxims
2016-11-22 23:56 ` [U-Boot] " maxims at google.com
2016-11-23 16:13 ` Simon Glass
2016-11-23 16:24 ` Simon Glass
2016-11-23 16:24 ` [U-Boot] " Simon Glass
2016-11-23 19:15 ` Maxim Sloyko
2016-11-23 12:28 ` [U-Boot] [PATCH u-boot 0/5] Aspeed I2C driver, using Driver Model Heiko Schocher
2016-11-23 12:28 ` Heiko Schocher
2016-11-23 16:40 ` Maxim Sloyko
2016-11-24 5:19 ` Heiko Schocher
2016-11-23 19:49 ` [PATCH u-boot v1 1/6] aspeed/g5: Device Tree for ast2500, copied from openbmc/linux (include file), plus minimal device tree configuration for ast2500 eval board Maxim Sloyko
2016-11-23 19:49 ` [PATCH u-boot v1 2/6] aspeed: Fix FUC/FUN typo in SCU Maxim Sloyko
2016-11-23 20:26 ` Simon Glass
2016-11-23 19:49 ` Maxim Sloyko [this message]
2016-11-23 20:26 ` [PATCH u-boot v1 3/6] aspeed/scu: Add definitions needed to configure pins for I2C Simon Glass
2016-11-23 19:50 ` [PATCH u-boot v1 4/6] aspeed: Add function to calculate APB Clock frequency Maxim Sloyko
2016-11-23 20:26 ` Simon Glass
2016-11-23 19:50 ` [PATCH u-boot v1 5/6] aspeed: Add function to configure pins for I2C devices Maxim Sloyko
2016-11-23 20:26 ` Simon Glass
2016-11-23 19:50 ` [PATCH u-boot v1 6/6] aspeed: I2C driver Maxim Sloyko
2016-11-23 20:26 ` Simon Glass
2016-11-24 0:04 ` Maxim Sloyko
2016-11-23 20:26 ` [PATCH u-boot v1 1/6] aspeed/g5: Device Tree for ast2500, copied from openbmc/linux (include file), plus minimal device tree configuration for ast2500 eval board Simon Glass
2016-11-24 0:28 ` [PATCH u-boot v2 " Maxim Sloyko
2016-11-24 0:28 ` [PATCH u-boot v2 2/6] aspeed: Fix FUC/FUN typo in SCU Maxim Sloyko
2016-11-24 0:28 ` [PATCH u-boot v2 3/6] aspeed/scu: Add definitions needed to configure pins for I2C Maxim Sloyko
2016-11-27 17:02 ` Simon Glass
2016-11-24 0:28 ` [PATCH u-boot v2 4/6] aspeed: Add function to calculate APB Clock frequency Maxim Sloyko
2016-11-27 17:02 ` Simon Glass
2016-11-24 0:28 ` [PATCH u-boot v2 5/6] aspeed: Add function to configure pins for I2C devices Maxim Sloyko
2016-11-24 0:28 ` [PATCH u-boot v2 6/6] aspeed: I2C driver Maxim Sloyko
2016-11-27 17:02 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1479930602-91012-3-git-send-email-maxims@google.com \
--to=maxims@google.com \
--cc=openbmc@lists.ozlabs.org \
--cc=sjg@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.