LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   I2C problem (registers not writable) (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/i2c-problem-registers-not-writable-843047/)

lqu 11-08-2010 11:45 AM

I2C problem (registers not writable)
 
I am having problem using the I2C bus. I am using an ARM920T processor and trying to connect a realtime clock using the I2C bus. the I2C control register is at 0x54000000. I wrote a new value to I2CCON, but the value is still 0x0. The same thing happens to the other I2C registers. (GPIO registers at 0x56000000 are fine.)

I wrote the registers as a user space driver (mmap() the /dev/mem file), and I also setup the SDA and SCL pin in GPIO configuration before this. Could anybody give me some suggestions about what is (possibly) wrong? Thank you.


All times are GMT -5. The time now is 12:54 PM.