Skip to contentSkip to conversation

package/openocd: add config variable for imx_gpio driver

PATCH In review Josua Mayer 2 participants 3 messages Jul 10, 2024 – Jul 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openocd: add config variable for imx_gpio driver

imx_gpio driver is used on NXP i.MX family of SoCs and required e.g. for programming noridc microcontrollers on SolidRun SolidSense family of devices.

Add new config variable BR2_PACKAGE_OPENOCD_IMXGPIO for imx_gpio driver.

---
 package/openocd/Config.in  | 6 ++++++
 package/openocd/openocd.mk | 1 +
 2 files changed, 7 insertions(+)
package/openocd/Config.in +6 -0
index cef109b511..b2398f32da 100644
@@ -200,6 +200,12 @@ config BR2_PACKAGE_OPENOCD_BCM2835
 	  Enable building support for bitbanging on BCM2835
 	  (as found in Raspberry Pi)
 
+config BR2_PACKAGE_OPENOCD_IMXGPIO
+	bool "Enable support for bitbanging on NXP i.MX family"
+	help
+	  Enable support for bitbanging on NXP i.MX family
+	  (as found in SolidSense N6, N8, etc.)
+
 endif # BR2_arm || BR2_aarch64
 
 config BR2_PACKAGE_OPENOCD_GW16012
package/openocd/openocd.mk +1 -0
index b24d1eacf0..6b9f5541cd 100644
@@ -90,6 +90,7 @@ OPENOCD_CONF_OPTS += \
 	$(if $(BR2_PACKAGE_OPENOCD_AT91RM),--enable-at91rm9200,--disable-at91rm9200) \
 	$(if $(BR2_PACKAGE_OPENOCD_BCM2835),--enable-bcm2835gpio,--disable-bcm2835gpio) \
 	$(if $(BR2_PACKAGE_OPENOCD_GW16012),--enable-gw16012,--disable-gw16012) \
+	$(if $(BR2_PACKAGE_OPENOCD_IMXGPIO),--enable-imx_gpio,--disable-imx_gpio) \
 	$(if $(BR2_PACKAGE_OPENOCD_PRESTO),--enable-presto,--disable-presto) \
 	$(if $(BR2_PACKAGE_OPENOCD_OPENJTAG),--enable-openjtag,--disable-openjtag) \
 	$(if $(BR2_PACKAGE_OPENOCD_BUSPIRATE),--enable-buspirate,--disable-buspirate) \
Signature · 6 lines
2.35.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

package/openocd/Config.in config BR2_PACKAGE_OPENOCD_BCM2835 · line 204

Quoted 2 lines · On Wed, 10 Jul 2024 16:42:57 +0200 Josua Mayer <[email protected]> wrote:
package/openocd/Config.in +2 -0
+config BR2_PACKAGE_OPENOCD_IMXGPIO
+	bool "Enable support for bitbanging on NXP i.MX family"

Simplified to:

bool "bitbanging on NXP i.MX family"

to be like the other options in OpenOCD, and applied your patch. Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Am 10.07.24 um 23:13 schrieb Thomas Petazzoni:

Quoted 11 lines

package/openocd/Config.in config BR2_PACKAGE_OPENOCD_BCM2835 · line 204

Quoted 2 lines · On Wed, 10 Jul 2024 16:42:57 +0200 Josua Mayer <[email protected]> wrote:
package/openocd/Config.in +2 -0
+config BR2_PACKAGE_OPENOCD_IMXGPIO
+	bool "Enable support for bitbanging on NXP i.MX family"

Simplified to:

bool "bitbanging on NXP i.MX family"

to be like the other options in OpenOCD, and applied your patch. Thanks a lot!

Thank you!
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot