第一点,配置内核支持i2c
Device Drivers --->
I2C support --->
<*> I2C device interface
[*] Autoselect pertinent helper modules
I2C Hardware Bus support --->
<*> S3C2410 I2C Driver
[*] I2C Core debugging messages
[*] I2C Algorithm debugging messages
[*] I2C Bus debugging messages
I2C device interface 为使用i2cdev这个字符接口。
首先我们在设备树文件中定义这个设备,
&i2c0 {
status = "okay";
audio-codec@1b {