도와주세요!!
PXA270에 DS1307를 사용하기 위해서 커널에서 무엇을 바꾸어 주어야 하나요 ?
다음과 같이 설정을 했는데, 안되네요... 무엇이 잘못되었나요?
# make menuconfig
Device Drivers --->
Real Time Clock --->
<*> RTC class
[*] Set system time from RTC on startup
(rtc1) The RTC to read the time from
<*> sysfs
<*> proc
<*> dev
<*> Dallas/Maxim DS1307 and similar I2C RTC chips
부팅로그 메시지.
wm9712ts registe complete irq=116
i2c /dev entries driver
i2c: error: exhausted retries
i2c: msg_num: 0 msg_idx: -2000 msg_ptr: 0
i2c: ICR: 000007e0 ISR: 00000002
i2c: log: [00000446:000007e0]
I2C: i2c-0: PXA I2C adapter
i2c: error: timeout
i2c: msg_num: 1 msg_idx: 0 msg_ptr: 0
i2c: ICR: 000007e9 ISR: 00000004
i2c: log:
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c: error: exhausted retries
i2c: msg_num: 1 msg_idx: 0 msg_ptr: 0
i2c: ICR: 000007e9 ISR: 00000004
i2c: log:
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c_adapter i2c-1: i2c_pxa: timeout waiting for bus free
i2c: error: exhausted retries
i2c: msg_num: 1 msg_idx: 0 msg_ptr: 0
i2c: ICR: 000007e9 ISR: 00000004
i2c: log:
i2c_adapter i2c-1: Client creation failed at 0x68 (-5)
I2C: i2c-1: PXA I2C adapter
SD Card initial
Advanced Linux Sound Architecture Driver Version 1.0.14rc3.
찾았습니다..
Device Drivers ---> I2C Support --> 에서 <*> I2C Device interface
Device Drivers ---> I2C Support --> I2C Algorithms ---> 에서 <*> I2C bit-banging interfaces (이건 안해도 될것 같은데... ^^;;)
Device Drivers ---> I2C Support --> I2C Hardware Bus support ---> 에서 <*> Intel PXA2XX I2C adapter (EXPERIMENTAL)
이렇게 설정했고요....
HW연결은 그냥 SDA/SCL만 연결했습니다..
아... 중요한것이 위의 두 핀은 풀업이 되어있어야 합니다..
특히 SCL.....
Device Drivers ---> I2C Support -->
에 PXA270 관련 옵션이 있습니다..
정확하게는 기억이 잘.... ^^;;;