Embedded Intel® Core™ Processors
Communicate Intel® Core™ Hardware, Software, Firmware, Graphics Concerns
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

I2C control by MMIO

AmyChen
Beginner
1,559 Views

Hello,

I'm using I2C with ADL-S to control the device. Currently, I'm familiar with using SMBus for control. For instance, if I want to control a device at address 0x40 and write FF to register location 0x12, I would perform the following steps in the SMBus registers:

  • IO space+00 = FE (clearing the register)
  • IO space+04 = 40 (device address)
  • IO space+03 = 12 (register address to write to)
  • IO space+05 = FF (data to write)
  • IO space+02 = 48 (write method: byte write)

By following these steps, I can achieve the write operation.

If I want to switch to I2C via MMIO, I've found the base address (memory address).

But what are the corresponding registers, values ​​or steps?
Can you give me a simple example?
Or do you have relevant information to provide me?

Thank you.

0 Kudos
3 Replies
CarlosAM_INTEL
Moderator
1,531 Views

Hello, @AmyChen:

Thank you for contacting Intel Embedded Community.

We sent an email to the address related to this account with information that may help you to solve this situation.

Best regards,

@CarlosAM_INTEL.

0 Kudos
EdwinJr
Beginner
1,013 Views

Sorry to bother you.

I also have the same problem, could you please send me the information on how to solve this situation too?

Thank you for your time.

0 Kudos
Diego_INTEL
Moderator
964 Views

Hello @EdwinJr,

 

Thank you for contacting Intel Embedded Community.

 

I think the email refers to make the consultation using Premier Support.

https://www.intel.com/content/www/us/en/support/articles/000057045/ethernet-products.html

 

You may check:

Document #621483 - PCH EDS Vol 2 for Alder Lake S on section "13 - I2C Interface (D21:F0-F3, D25:F0-F1"

Document #619362 - PCH EDS Vol 1 for Alder Lake S on section "18.0 Intel® Serial I/O Inter-Integrated Circuit (I2C) Controllers"

 

As a guide or examples I have not found any in our resources unfortunately.

 

Best regards,

 

@Diego_INTEL 

0 Kudos
Reply