From 7212a89403d9deedbd6604d68626e46671ce3f57 Mon Sep 17 00:00:00 2001 From: captain-amygdala Date: Tue, 12 Dec 2023 09:41:58 +0100 Subject: [PATCH] GPIO Bank2 GPIO MDIO fix --- gpio/ps_protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpio/ps_protocol.c b/gpio/ps_protocol.c index 2979330..0bcad09 100644 --- a/gpio/ps_protocol.c +++ b/gpio/ps_protocol.c @@ -34,11 +34,11 @@ extern void m68k_pulse_bus_error(void); #define GPFSEL0_INPUT (GO(PIN_WR) | GO(PIN_RD)) #define GPFSEL1_INPUT (0) -#define GPFSEL2_INPUT (GO(PIN_A(2)) | GO(PIN_A(1)) | GO(PIN_A(0))) +#define GPFSEL2_INPUT (GO(PIN_A(2)) | GO(PIN_A(1)) | GO(PIN_A(0)) | PF(28,5) | PF(29,5)) #define GPFSEL0_OUTPUT (GO(PIN_D(1)) | GO(PIN_D(0)) | GO(PIN_WR) | GO(PIN_RD)) #define GPFSEL1_OUTPUT (GO(PIN_D(11)) | GO(PIN_D(10)) | GO(PIN_D(9)) | GO(PIN_D(8)) | GO(PIN_D(7)) | GO(PIN_D(6)) | GO(PIN_D(5)) | GO(PIN_D(4)) | GO(PIN_D(3)) | GO(PIN_D(2))) -#define GPFSEL2_OUTPUT (GO(PIN_A(2)) | GO(PIN_A(1)) | GO(PIN_A(0)) | GO(PIN_D(15)) | GO(PIN_D(14)) | GO(PIN_D(13)) | GO(PIN_D(12))) +#define GPFSEL2_OUTPUT (GO(PIN_A(2)) | GO(PIN_A(1)) | GO(PIN_A(0)) | GO(PIN_D(15)) | GO(PIN_D(14)) | GO(PIN_D(13)) | GO(PIN_D(12)) | PF(28,5) | PF(29,5)) #define REG_DATA_LO 0 #define REG_DATA_HI 1