i2c: at91: add support of device tree

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
at91sam9g45: clock: add i2c clocks

Add the device tree and non device tree at91 i2c clocks.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
I2C: at91: fix the method for interrupt

As the i2c-at91 driver won't work in the interrupt mode,
so need to poll the interrupts.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
mtd: nand: add has_pmecc member

By adding this structure member, we can retrieve the pmecc config, through the device tree.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
mtd: atmel_nand: retrieve ecc_mode from pdata

By retrieving the ecc_mode from pdata we can use the same code for device tree and
non device tree probing. Which was not possible before, because ecc_mode was arbitrarily set to
NAND_ECC_SOFT.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
mtd: atmel_nand: add support for device tree

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
of_mtd: add soft_bch and hw_oob_first ecc modes

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
pinctrl: at91: add pinctrl driver

This driver is based on mach-at91/gpio.c and linux pinctrl driver.
The driver contains the gpio and pinctrl parts (like in linux) because the two parts
share some structures and logics.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
at91sam9g45: add device tree gpio clocks

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
dts: add at91sam9m10g45ek device tree
ARM: AM335x: Beaglebone: enable ethernet

The ethernet mac and mdio nodes must be explicitly enabled to override
the disabled setting in am33xx.dtsi.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Release v2014.08.0

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arm: mach-at91: move gpio.h to include folder

This commit add functions from mach-at91/gpio.h in include/mach/gpio.h.
This allow to use these functions outside the mach-at91 folder.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
pinctrl: at91: add pinctrl driver

This driver is based on mach-at91/gpio.c and linux pinctrl driver.
The driver contains the gpio and pinctrl parts (like in linux) because the two parts
share some structures and logics.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
ARM: AT91: move arch/arm/mach-at91/gpio.c functions to pinctrl driver

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>