From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Andreas_Bie=c3=9fmann?= Date: Mon, 23 Nov 2015 16:50:34 +0100 Subject: [U-Boot] [PATCH v3] gpio: atmel: Add the PIO4 driver support In-Reply-To: <1446618314-10540-1-git-send-email-wenyou.yang@atmel.com> References: <1446618314-10540-1-git-send-email-wenyou.yang@atmel.com> Message-ID: <565335CA.1070301@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Andreas Bie?mann > --- > > 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