[U-Boot] [PATCH v2 0/9] avr32 cleanups and GPIO port mux support

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Mon Sep 1 14:59:11 CEST 2008


The following patch series is a round of cleanups to the avr32 code,
including board code. It shouldn't result in any functional changes or
significant changes in the size of the u-boot image, but it should
make it easier to add support for new chips and boards in the future,
and it also makes some of the existing board code a bit cleaner.

It also adds support for the "GPIO" port mux, which can be found on
newer AVR32 chips, i.e. all UC3 devices as well as upcoming AP7
devices. Work is currently ongoing to use this on both the UC3 and the
AP7 front, so even though there are currently no in-tree users of the
GPIO mux, I want to get it supported at least semi-officially in order
to reduce duplication of effort.

This patch series obsoletes and extends the series that was previously
posted here:

  http://lists.denx.de/pipermail/u-boot/2008-August/039672.html

Since the merge window is supposed to be closed now, I'm planning to
push this during the next release cycle, which should leave plenty of
time for testing.

This series has also been pushed out to the 'cleanups' branch of

  git://git.denx.de/u-boot-avr32.git cleanups

which I intend to merge into 'next' in a few days if nobody complains.
The 'cleanups' branch may get rebased, so please don't base any new
work on it yet.

Haavard

Shortlog and diffstat for the whole series follows.

Haavard Skinnemoen (9):
      avr32: Update README
      avr32: data_bits should reflect the actual number of data bits
      avr32: refactor the portmux/gpio code
      avr32: Add gclk helper functions
      hammerhead: Use gclk helper functions
      avr32: Use board_postclk_init instead of gclk_init
      avr32: use board_early_init_r instead of board_init_info
      atstk1000: Convert to new-style makefile
      avr32: Add support for "GPIO" port mux

 board/atmel/atngw100/atngw100.c              |   18 ++-
 board/atmel/atstk1000/Makefile               |    9 +-
 board/atmel/atstk1000/atstk1000.c            |   15 +-
 board/earthlcd/favr-32-ezkit/favr-32-ezkit.c |   13 +-
 board/mimc/mimc200/mimc200.c                 |   91 +++---------
 board/miromico/hammerhead/hammerhead.c       |   26 ++--
 cpu/at32ap/Makefile                          |    3 +-
 cpu/at32ap/at32ap700x/Makefile               |    2 +-
 cpu/at32ap/at32ap700x/clk.c                  |   25 +++
 cpu/at32ap/at32ap700x/gpio.c                 |  199 ------------------------
 cpu/at32ap/at32ap700x/portmux.c              |  204 +++++++++++++++++++++++++
 cpu/at32ap/cpu.c                             |    3 -
 cpu/at32ap/pio.c                             |  116 --------------
 cpu/at32ap/portmux-gpio.c                    |  107 +++++++++++++
 cpu/at32ap/portmux-pio.c                     |   92 +++++++++++
 doc/README.AVR32                             |   24 +--
 doc/README.AVR32-port-muxing                 |  208 ++++++++++++++++++++++++++
 include/asm-avr32/arch-at32ap700x/clk.h      |  100 ++++++++++++-
 include/asm-avr32/arch-at32ap700x/gpio.h     |  184 +----------------------
 include/asm-avr32/arch-at32ap700x/portmux.h  |   89 +++++++++++
 include/asm-avr32/arch-common/portmux-gpio.h |  193 ++++++++++++++++++++++++
 include/asm-avr32/arch-common/portmux-pio.h  |  138 +++++++++++++++++
 include/asm-avr32/initcalls.h                |    1 -
 include/asm-avr32/sdram.h                    |    4 +-
 include/configs/atngw100.h                   |    2 +-
 include/configs/atstk1002.h                  |    2 +-
 include/configs/atstk1003.h                  |    2 +-
 include/configs/atstk1004.h                  |    2 +-
 include/configs/atstk1006.h                  |    2 +-
 include/configs/favr-32-ezkit.h              |    2 +-
 include/configs/hammerhead.h                 |    2 +-
 include/configs/mimc200.h                    |    2 +-
 lib_avr32/board.c                            |   12 ++-
 33 files changed, 1257 insertions(+), 635 deletions(-)
 delete mode 100644 cpu/at32ap/at32ap700x/gpio.c
 create mode 100644 cpu/at32ap/at32ap700x/portmux.c
 delete mode 100644 cpu/at32ap/pio.c
 create mode 100644 cpu/at32ap/portmux-gpio.c
 create mode 100644 cpu/at32ap/portmux-pio.c
 create mode 100644 doc/README.AVR32-port-muxing
 create mode 100644 include/asm-avr32/arch-at32ap700x/portmux.h
 create mode 100644 include/asm-avr32/arch-common/portmux-gpio.h
 create mode 100644 include/asm-avr32/arch-common/portmux-pio.h


More information about the U-Boot mailing list