imx_gpio: add mmap based jtag interface for IMX processors

For some targets (like nrf51) sysfs driver is too slow. This
patch implements memory maped driver for IMX processors.
Mostly based on bcm2835gpio. Tested on imx6ul CPU. However, it should
work on any NXP IMX CPU.

Change-Id: Idace4c98181c6e9c64dd158bfa52631204b5c4a7
Signed-off-by: Grzegorz Kostka <kostka.grzegorz@gmail.com>
Reviewed-on: http://openocd.zylin.com/4106
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
Grzegorz Kostka
2017-04-18 16:12:58 +02:00
committed by Paul Fertser
parent f6449a7cba
commit 83c67b7ac7
6 changed files with 623 additions and 2 deletions

View File

@@ -126,6 +126,9 @@ extern struct jtag_interface cmsis_dap_interface;
#if BUILD_KITPROG == 1
extern struct jtag_interface kitprog_interface;
#endif
#if BUILD_IMX_GPIO == 1
extern struct jtag_interface imx_gpio_interface;
#endif
#endif /* standard drivers */
/**
@@ -222,6 +225,9 @@ struct jtag_interface *jtag_interfaces[] = {
#if BUILD_KITPROG == 1
&kitprog_interface,
#endif
#if BUILD_IMX_GPIO == 1
&imx_gpio_interface,
#endif
#endif /* standard drivers */
NULL,
};