public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Jeremy Linton" <jeremy.linton@arm.com>
To: devel@edk2.groups.io
Cc: ardb+tianocore@kernel.org, quic_llindhol@quicinc.com,
	Jeremy Linton <jeremy.linton@arm.com>
Subject: [edk2-devel] [RFC 1/6] Silicon/Bcm283x: Document the I2C registers
Date: Wed, 10 Jan 2024 18:04:21 -0600	[thread overview]
Message-ID: <20240111000426.2735007-2-jeremy.linton@arm.com> (raw)
In-Reply-To: <20240111000426.2735007-1-jeremy.linton@arm.com>

Since we are now using I2C in edk2, its helpful if we document
the register names.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
---
 .../Include/IndustryStandard/Bcm2836.h        | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h b/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h
index 55a446a86c..6dc8921346 100644
--- a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h
+++ b/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h
@@ -97,6 +97,40 @@
 #define BCM2836_I2C2_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_I2C2_OFFSET)
 #define BCM2836_I2C2_LENGTH                                 0x00000020
 
+#define BCM2836_I2C3_OFFSET                                 0x00205600
+#define BCM2836_I2C3_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_I2C3_OFFSET)
+#define BCM2836_I2C3_LENGTH                                 0x00000020
+
+#define BCM2836_I2C4_OFFSET                                 0x00205800
+#define BCM2836_I2C4_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_I2C4_OFFSET)
+#define BCM2836_I2C4_LENGTH                                 0x00000020
+
+#define BCM2836_I2C5_OFFSET                                 0x00205a00 //2711 doc says 205a80?!
+#define BCM2836_I2C5_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_I2C5_OFFSET)
+#define BCM2836_I2C5_LENGTH                                 0x00000020
+
+#define BCM2836_I2C6_OFFSET                                 0x00205c00
+#define BCM2836_I2C6_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_I2C6_OFFSET)
+#define BCM2836_I2C6_LENGTH                                 0x00000020
+
+#define BCM2836_I2C20_OFFSET                                0x00f04500 //2711 DCC0
+#define BCM2836_I2C20_BASE_ADDRESS                          (BCM2836_SOC_REGISTERS + BCM2836_I2C20_OFFSET)
+#define BCM2836_I2C20_LENGTH                                0x00000020
+
+#define BCM2836_I2C21_OFFSET                                0x00f09500 //2711 DCC1
+#define BCM2836_I2C21_BASE_ADDRESS                          (BCM2836_SOC_REGISTERS + BCM2836_I2C21_OFFSET)
+#define BCM2836_I2C21_LENGTH                                0x00000020
+
+/* I2C register offsets */
+#define BCM2835_I2C_C                                      0x00
+#define BCM2835_I2C_S                                      0x04
+#define BCM2835_I2C_DLEN                                   0x08
+#define BCM2835_I2C_A                                      0x0c
+#define BCM2835_I2C_FIFO                                   0x10
+#define BCM2835_I2C_DIV                                    0x14
+#define BCM2835_I2C_DEL                                    0x18
+#define BCM2835_I2C_CLKT                                   0x1c
+
 #define BCM2836_SPI0_OFFSET                                 0x00204000
 #define BCM2836_SPI0_BASE_ADDRESS                           (BCM2836_SOC_REGISTERS + BCM2836_SPI0_OFFSET)
 #define BCM2836_SPI0_LENGTH                                 0x00000020
-- 
2.43.0



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113558): https://edk2.groups.io/g/devel/message/113558
Mute This Topic: https://groups.io/mt/103653097/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-01-11  0:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-11  0:04 [edk2-devel] [RFC 0/6] RasberryPi: RTC HAT support Jeremy Linton
2024-01-11  0:04 ` Jeremy Linton [this message]
2024-01-11  0:04 ` [edk2-devel] [RFC 2/6] Silicon/Bcm283x: Add core I2C drivers Jeremy Linton
2024-01-11  0:04 ` [edk2-devel] [RFC 3/6] Platform/RasberryPi: Create I2C driver bound to RTC Jeremy Linton
2024-01-11  0:04 ` [edk2-devel] [RFC 4/6] Silicon/Maxim: Fix runtime issues Jeremy Linton
2024-01-11  0:04 ` [edk2-devel] [RFC 5/6] Platform/RasberryPi: Add I2C1 to uefi runtime memory map Jeremy Linton
2024-01-11  0:04 ` [edk2-devel] [RFC 6/6] Platform/RaspberryPi: Add menu and build options for HW RTC Jeremy Linton

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-list 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=20240111000426.2735007-2-jeremy.linton@arm.com \
    --to=devel@edk2.groups.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox