
On 04.11.15 07:25, Wenyou Yang wrote:
The PIO4 is introduced from SAMA5D2, as a new version for Atmel PIO controller.
Signed-off-by: Wenyou Yang wenyou.yang@atmel.com
Reviewed-by: Andreas Bießmann andreas.devel@googlemail.com
Changes in v3: 1./ add return to atmel_pio4_set_pio_output() to avoid compilation warning.
Changes in v2: 1./ update the macro definitions according to the latest datasheet. 2./ change the return value to -ENODEV. 3./ add check to port_base, pin and return -ENODEV. 4./ change the return value for set/get_pio_output/input function.
arch/arm/mach-at91/include/mach/atmel_pio4.h | 48 +++++ drivers/gpio/Kconfig | 11 + drivers/gpio/Makefile | 1 + drivers/gpio/atmel_pio4.c | 296 ++++++++++++++++++++++++++ 4 files changed, 356 insertions(+) create mode 100644 arch/arm/mach-at91/include/mach/atmel_pio4.h create mode 100644 drivers/gpio/atmel_pio4.c