[PATCH 4/5] i2c: adapt the i2c-imx driver to mpc85xx machines.

Sascha Hauer s.hauer at pengutronix.de
Fri Aug 31 03:24:28 EDT 2012


On Thu, Aug 30, 2012 at 03:00:16PM +0100, Renaud Barbier wrote:
> A function to calculate the frequency divider and digital filter sampling rate
> for the 85xx processors is added to the i2c-imx driver. Hence, this driver is
> used on IMX and 85xx machines.
> 
>  
>  /* This will be the driver name */
> +#ifdef CONFIG_PPC
> +#define DRIVER_NAME "i2c-mpc"
> +#else
>  #define DRIVER_NAME "i2c-imx"
> +#endif

Can we run a s/imx/fsl/ over the driver in the first step?

>  
>  /* Default value */
>  #define IMX_I2C_BIT_RATE	100000	/* 100kHz */
> @@ -61,6 +66,7 @@
>  #define IMX_I2C_I2CR	0x08	/* i2c control */
>  #define IMX_I2C_I2SR	0x0C	/* i2c status */
>  #define IMX_I2C_I2DR	0x10	/* i2c transfer data */
> +#define IMX_I2C_DFSRR	0x14	/* i2c digital filter smapling rate */

s/smapling/sampling/

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