[U-Boot] [PATCH 0/2] Replace nios2-generic's gpio.c with dedicated driver.

Joachim Foerster joachim.foerster at missinglinkelectronics.com
Mon Oct 17 17:36:47 CEST 2011


Let's have a dedicated driver for Altera's PIO ip core, which does not
have to be duplicated for each board using PIO.

Joachim Foerster (2):
  gpio: Add driver for Altera's PIO core
  board/nios2-generic: Use altera_pio driver and remove board specific
    driver

 arch/nios2/include/asm/gpio.h              |   13 +-
 board/altera/nios2-generic/Makefile        |    1 -
 board/altera/nios2-generic/custom_fpga.h   |    1 +
 board/altera/nios2-generic/gpio.c          |   71 -------
 board/altera/nios2-generic/nios2-generic.c |    8 +
 drivers/gpio/Makefile                      |    1 +
 drivers/gpio/altera_pio.c                  |  299 ++++++++++++++++++++++++++++
 include/configs/nios2-generic.h            |    4 +
 8 files changed, 324 insertions(+), 74 deletions(-)
 delete mode 100644 board/altera/nios2-generic/gpio.c
 create mode 100644 drivers/gpio/altera_pio.c

-- 
1.7.6



More information about the U-Boot mailing list