aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.4/0045-i2c-add-mt7621-driver.patch
Commit message (Collapse)AuthorAgeFilesLines
* ramips: update i2c driversMichael Lee2016-06-201-205/+336
| | | | | | | | | | | | | | | | | * add rt_i2c structure to store driver data * rewrite read/write check function and add i2c error status check. so we don't need to wait until time out. * add 10 bits address support. according to the data sheet i think it is possible. but i haven't verify it. * the most important is start transfer only need once. otherwise it cause I2C_STARTERR status. * add set i2c clock speed register by dts options "clock-frequency". not just hard code it. * add mt7621 i2c driver. i just copy i2c-ralink.c and change register names. and the hardware don't support error status. so i remove it. but the logic is the same. Signed-off-by: Michael Lee <igvtee@gmail.com>
* Revert "ramips: update i2c drivers"John Crispin2016-06-171-336/+205
| | | | | | | | This reverts commit d8202a84096831d4e6e2a522476bd6a0d46e6413. the commit broke I2C on various boards. Signed-off-by: John Crispin <john@phrozen.org>
* ramips: update i2c driversMichael Lee2016-06-131-205/+336
| | | | | | | | | | | | | | | | | * add rt_i2c structure to store driver data * rewrite read/write check function and add i2c error status check. so we don't need to wait until time out. * add 10 bits address support. according to the data sheet i think it is possible. but i haven't verify it. * the most important is start transfer only need once. otherwise it cause I2C_STARTERR status. * add set i2c clock speed register by dts options "clock-frequency". not just hard code it. * add mt7621 i2c driver. i just copy i2c-ralink.c and change register names. and the hardware don't support error status. so i remove it. but the logic is the same. Signed-off-by: Michael Lee <igvtee@gmail.com>
* ramips: add linux 4.4 support, update mt7621 subtarget to 4.4Felix Fietkau2016-03-071-0/+342
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48951