Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

I2C interface on Linux (with MMU)

I have a few questions about I2C interfaces on Nios II on Linux with MMU.

I found this thread http://www.alteraforum.com/forum/showthread.php?t=18441 (though forum search for "i2c" or "I2C" doesn't find it). It is a bit fragmented, and difficult to follow.

I have a Microtronix i2c interface.

Should the OpenCores drivers work with this?

I defined I2C_0_BASE, I2C_0_IRQ based on my custom_fpga.h

I2C_0_FREQ is being a bit trickier. I assumed it should be the i2c bus speed; however, I discovered that it seems to hang the system at boot if I don't define it as the system clock speed (85 MHz for me).

15 Replies