[PATCH] [WIP] i2c: add Marvell 64xxx driver

Sascha Hauer s.hauer at pengutronix.de
Tue Jun 17 11:41:21 PDT 2014


On Mon, Jun 16, 2014 at 11:52:17AM +0400, Antony Pavlov wrote:
> This driver is also used for Allwinner SoCs I2C controllers.
> 
> Ported from linux-3.15.
> 
> The most notable barebox driver version changes:
> 
>   * drop message offloading support;
>   * add reg-io-width parameter to use driver with byte-oriented
>     controller versions.
> 
> TODOs:
> 
>   * check timeout in mv64xxx_i2c_wait_for_completion();

Indeed.

>   * remove 'line over 80 characters' warnings.

Personally I don't care about lines over 80 characters as long
as the line length is inside reasonable limits.

> +++ b/include/linux/mv643xx_i2c.h
> @@ -0,0 +1,22 @@
> +/*
> + * This program is free software; you can redistribute  it and/or modify it
> + * under  the terms of  the GNU General  Public License as published by the
> + * Free Software Foundation;  either version 2 of the  License, or (at your
> + * option) any later version.
> + */
> +
> +#ifndef _MV64XXX_I2C_H_
> +#define _MV64XXX_I2C_H_
> +
> +#include <linux/types.h>
> +
> +#define MV64XXX_I2C_CTLR_NAME	"mv64xxx_i2c"
> +
> +/* i2c Platform Device, Driver Data */
> +struct mv64xxx_i2c_pdata {
> +	u32	freq_m;
> +	u32	freq_n;
> +	u32	timeout;	/* In milliseconds */
> +};

This is unused.

Otherwise the driver looks fine to me.

Sascha

-- 
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 |



More information about the barebox mailing list