From bfb795551cfc8c271ccb1e45d2182d09afada5fc Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Thu, 9 Mar 2023 14:46:02 -0700 Subject: [PATCH] avrdude.conf: move raspberry_pi_gpio reset, add prog_modes, reformat This makes the raspberry_pi_gpio programmer work on older Pis with the smaller 26-pin GPIO header. Updates based on code review by Hans (MCUdude). --- src/avrdude.conf.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index 79b91c4e..36734e5e 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -725,15 +725,17 @@ programmer # # Program from a Raspberry Pi GPIO port using linuxgpio # #------------------------------------------------------------ # + programmer - id = "raspberry_pi_gpio"; - desc = "Bitbang Raspberry Pi GPIO via linuxgpio (sysfs or libgpiod)"; - type = "linuxgpio"; - connection_type = linuxgpio; - reset = 12; - sck = 24; - sdo = 23; - sdi = 18; + id = "raspberry_pi_gpio"; + desc = "Bitbang Raspberry Pi GPIO via linuxgpio (sysfs or libgpiod)"; + type = "linuxgpio"; + prog_modes = PM_ISP; + connection_type = linuxgpio; + reset = 22; + sck = 24; + sdo = 23; + sdi = 18; ; @HAVE_LINUXGPIO_END@