AT91 Parallel I/O Controller
Subsystems (2)
PATCH 6/14 AT91 Parallel I/O Controller
This patch implements the GPIO controller used in the AT91 microcontrollers.
PIO controller is implemented as a device on the system bus with 3 sets of 32 input/output pins and one IRQ pin. The first set of the 32 I/O pins is used for connections to external devices and the other two are used for pass-through connections of external pins to internal peripherals.
Internal pull-up resistors are implemented by simulating the input value of 1 for every input pins where the value of the pin is unknown (a device is not connected) or where explicit -1 constant was sent by the external device emulation (a device is connected, but the wire is not) on the GPIO pin.
Unimplemented features are correct emulation of open-drain mode and glitch-filter.
--- Makefile.target | 2 +- hw/at91_pio.c | 322 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 323 insertions(+), 1 deletions(-) create mode 100644 hw/at91_pio.c
Makefile.target +1 -1
@@ -666,7 +666,7 @@ obj-y += framebuffer.o obj-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o obj-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o obj-y += syborg_virtio.o -obj-y += at91_aic.o at91_dbgu.o at91_pmc.o +obj-y += at91_aic.o at91_dbgu.o at91_pio.o at91_pmc.o obj-y += gpio_rotary.o gpio_keypad.o CPPFLAGS += -DHAS_AUDIO endif
hw/at91_pio.c new file +322 -0
322 lines not on this page · raw message
Signature · 1 line
1.6.3.msysgit.0