在链表i2c_bus_type中遍历每一个device,对每一个device调用__process_new_driver bus_for_each_dev(&i2c_bus_type, NULL, driver, __process_new_driver); __process_new_driver-> i2c_do_add_adapter(data, to_i2c_adapter(dev)) 调用driver的attach_adapter函数,即i2cdev_attach_adapter driver->attach_...
usbcore: registered new device driver usb i2c-gpio i2c-gpio: using pins 39 (SDA) and 40 (SCL) Switching to clocksource pit NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes)...
Once started, the device works with the 4/8/12 MHz Fast RC oscillator. The user has to add the PLL start-up time if it is needed in the system. The wake-up time is defined as the time taken for wake-up until the first instruction is fetched. 5. Current consumption on VDDBU. 6...
在ek_board_init函数中添加spi设备注册接口 at91_add_device_spi(can_spi_devices, ARRAY_SIZE(can_spi_devices)); 2 spi-atmel.c文件中修改atmel_spi_devtypes结构体,这样spi控制器才能找到对应的驱动 这是这个内核版本的问题,高版本就不需要更改这个地方 static const struct platform_device_id atmel_spi_dev...
+++ b/drivers/i2c/busses/i2c-at91.c @@ -64,6 +64,7 @@ #define AT91_TWI_IADR 0x000c /* Internal Address Register */ #define AT91_TWI_CWGR 0x0010 /* Clock Waveform Generator Reg */ +#define AT91_TWI_CWGR_HOLD(x) (((x) & 0x1f) << 24) ...
device 12.2 Two Wire Interface (TWI) • Master, Multi-Master and Slave Mode Operation • Compatibility with Atmel two-wire interface, serial memory and I2C compatible devices • One, two or three bytes for slave address • Sequential read/write operations • Bit Rate: Up to 400 kbit...
#define CONFIG_SYS_I2C_SPEED 50000 #define CONFIG_SYS_I2C_SLAVE 0 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x54 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 #define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 1 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 #endif #define CONFIG_BOOTP_BOOTFILESIZE 1...
* * To obtain this structure, use dev_get_uclass_priv(bus) where bus is the * I2C bus udevice. * * @speed_hz: Bus speed in hertz (typically 100000) * @max_transaction_bytes: Maximal size of single I2C transfer */ struct dm_i2c_bus { int speed_hz; int max_transaction_bytes; }...
The "atmel,at91sam9260-usart" driver is a MFD driver, so it needs sub-nodes to match the registered platform device. For this reason, we add a serial subnode to all the "atmel,at91sam9260-usart" serial compatible nods. This will also remove the boot warning: ...
21 4.3 内核编译(见linux 内核编译向导) 22 4.4 根文件系统制作 22 1 / 第一章 AT91SAM9260 开发板套件介绍 1.1 AT91SAM9260 开发板简介 AT91SAM9260 是一款ARM926EJ-S 内核的工业级的开发板,支持JAVA,支持DSP扩展库CPU 内嵌100M 以太网,带有USB2.0 协议的USB HOST 和Device 接口,支持SD /MMC卡和全功...