i2c: add Marvell 64xxx driver; fix Makefile indentation
v3 cover i2c: add Marvell 64xxx driver; fix Makefile indentation
Changes since v2:
* drop "allwinner,sun*" stuff;
* make macros shorter (drop MV64XXX_I2C_ prefix);
* rework mv64xxx_write/mv64xxx_read stuff;
* drop mv64xxx_i2c_execute_msg().
* drop unused variables.
Antony Pavlov (2):
i2c: add Marvell 64xxx driver
i2c: busses/Makefile: fix indentation
drivers/i2c/busses/Kconfig | 8 + drivers/i2c/busses/Makefile | 5 +- drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 658 insertions(+), 2 deletions(-) create mode 100644 drivers/i2c/busses/i2c-mv64xxx.c
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v3 1/2 i2c: add Marvell 64xxx driver
This driver is also used for Allwinner SoCs I2C controllers.
Ported from linux-3.15.
The most notable barebox driver version changes:
* drop platform device stuff;
* drop "allwinner,sun*" stuff;
* drop message offloading support;
* add reg-io-width devicetree parameter to use driver with byte-oriented controller versions.
--- drivers/i2c/busses/Kconfig | 8 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 656 insertions(+)
drivers/i2c/busses/Kconfig +8 -0
@@ -16,6 +16,14 @@ config I2C_IMX bool "MPC85xx/i.MX I2C Master driver" depends on (ARCH_IMX && !ARCH_IMX1) || ARCH_MPC85XX +config I2C_MV64XXX + bool "Marvell mv64xxx I2C Controller" + depends on HAVE_CLK && OFDEVICE + help + If you say yes to this option, support will be included for the + built-in I2C interface on the Marvell 64xxx line of host bridges. + This driver is also used for Allwinner SoCs I2C controllers. + config I2C_OMAP bool "OMAP I2C Master driver" depends on ARCH_OMAP
drivers/i2c/busses/Makefile +1 -0
@@ -1,5 +1,6 @@ obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o obj-$(CONFIG_I2C_IMX) += i2c-imx.o +obj-$(CONFIG_I2C_MV64XXX) += i2c-mv64xxx.o obj-$(CONFIG_I2C_OMAP) += i2c-omap.o obj-$(CONFIG_I2C_TEGRA) += i2c-tegra.o obj-$(CONFIG_I2C_VERSATILE) += i2c-versatile.o
drivers/i2c/busses/i2c-mv64xxx.c new file +647 -0
647 lines not on this page · raw message
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v3 2/2 i2c: busses/Makefile: fix indentation
In reply to Antony Pavlov--- drivers/i2c/busses/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/Makefile +2 -2
@@ -1,6 +1,6 @@ obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o -obj-$(CONFIG_I2C_IMX) += i2c-imx.o +obj-$(CONFIG_I2C_IMX) += i2c-imx.o obj-$(CONFIG_I2C_MV64XXX) += i2c-mv64xxx.o -obj-$(CONFIG_I2C_OMAP) += i2c-omap.o +obj-$(CONFIG_I2C_OMAP) += i2c-omap.o obj-$(CONFIG_I2C_TEGRA) += i2c-tegra.o obj-$(CONFIG_I2C_VERSATILE) += i2c-versatile.o
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sebastian,
I'm fine with the driver. Will you ack it once your fine with it aswell?
Sascha
Quoted 27 lines · Antony Pavlov
Changes since v2:
* drop "allwinner,sun*" stuff;
* make macros shorter (dropMV64XXX_I2C_prefix);
* rework mv64xxx_write/mv64xxx_read stuff;
* dropmv64xxx_i2c_execute_msg().
* drop unused variables.Antony Pavlov (2):
i2c: add Marvell 64xxx driver
i2c: busses/Makefile: fix indentationdrivers/i2c/busses/Kconfig | 8 + drivers/i2c/busses/Makefile | 5 +- drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 658 insertions(+), 2 deletions(-) create mode 100644 drivers/i2c/busses/i2c-mv64xxx.cSignature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Sascha Hauer
I'm fine with the driver. Will you ack it once your fine with it aswell?
Yeah, let me give it a shot on the most obvious platforms again. Will send my Acked-by later today.
Sebastian
Quoted 23 lines · Antony Pavlov
Quoted 22 lines
Changes since v2:
* drop "allwinner,sun*" stuff;
* make macros shorter (dropMV64XXX_I2C_prefix);
* rework mv64xxx_write/mv64xxx_read stuff;
* dropmv64xxx_i2c_execute_msg().
* drop unused variables.Antony Pavlov (2):
i2c: add Marvell 64xxx driver
i2c: busses/Makefile: fix indentationdrivers/i2c/busses/Kconfig | 8 + drivers/i2c/busses/Makefile | 5 +- drivers/i2c/busses/i2c-mv64xxx.c | 647 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 658 insertions(+), 2 deletions(-)create mode 100644
drivers/i2c/busses/i2c-mv64xxx.c--
2.0.1
Quoted 6 lines
Quoted 5 lines
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Sascha Hauer
I'm fine with the driver. Will you ack it once your fine with it aswell?
Hmm, it still throws a lot of "I2C bus error" on i2c_probe when no device is at that address and it still uses silly interrupt nomenclature.
Anyway, it works and I'll maybe fix above someday, so
and
on Armada XP this time.
Sebastian
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 5 lines · Sebastian Hesselbarth
Quoted 1 line · Sascha Hauer
I'm fine with the driver. Will you ack it once your fine with it aswell?
Hmm, it still throws a lot of "I2C bus error" on
i2c_probewhen no device is at that address
This message should really be removed as it's expected behaviour on i2c_probe. Anyway, users of this driver should be annoyed enough pretty soon so they send a patch, so: Applied.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox