u-boot/cpu
Haavard Skinnemoen ab0df36fc7 avr32: refactor the portmux/gpio code
- Separate the portmux configuration functionality from the GPIO pin
    control API.
  - Separate the controller-specific code from the chip-specific code.
  - Allow "ganged" port configuration (multiple pins at once).
  - Add more flexibility to the "canned" peripheral select functions:
      - Allow using more than 23 address bits, more chip selects, as
	well as NAND- and CF-specific pins.
      - Make the MACB SPEED pin optional, and choose between MII/RMII
	using a parameter instead of an #ifdef.
      - Make it possible to use other MMC slots than slot 0, and support
	different MMC/SDCard data bus widths.
  - Use more reasonable pull-up defaults; floating pins may consume a
    lot of power.
  - Get rid of some custom portmux code from the mimc200 board code. The
    old gpio/portmux API couldn't really handle its requirements, but
    the new one can.
  - Add documentation.

The end result is slightly smaller code for all boards. Which isn't
really the point, but at least it isn't any larger.

This has been verified on ATSTK1002 and ATNGW100. I'd appreciate if
the board maintainers could help me test this on their boards. In
particular, the mimc200 port has lost a lot of code, so I'm hoping Mark
can help me out.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Cc: Mark Jackson <mpfj@mimc.co.uk>
Cc: Alex Raimondi <alex.raimondi@miromico.ch>
Cc: Julien May <julien.may@miromico.ch>

Changes since v1:
  * Enable pullup on NWAIT
  * Add missing include to portmux-pio.h
  * Rename CONFIG_PIO2 -> CONFIG_PORTMUX_PIO to match docs
2008-09-01 14:20:41 +02:00
..
74xx_7xx fdt: rework fdt_fixup_ethernet() to use env instead of bd_t 2008-08-21 02:07:43 +02:00
arm720t Big white-space cleanup. 2008-05-21 00:14:08 +02:00
arm920t Merge branch 'master' of git://git.denx.de/u-boot-nand-flash 2008-08-14 11:26:22 +02:00
arm925t Big white-space cleanup. 2008-05-21 00:14:08 +02:00
arm926ejs ARM DaVinci: Changing function names for EMAC driver 2008-08-31 00:39:46 +02:00
arm946es Big white-space cleanup. 2008-05-21 00:14:08 +02:00
arm1136 MX31: fix bit masks in function mx31_decode_pll() 2008-08-25 21:47:01 +02:00
arm1176 USB: Add support for OHCI controller on S3C6400 2008-08-31 00:39:46 +02:00
arm_intcm Big white-space cleanup. 2008-05-21 00:14:08 +02:00
at32ap avr32: refactor the portmux/gpio code 2008-09-01 14:20:41 +02:00
blackfin Big white-space cleanup. 2008-05-21 00:14:08 +02:00
i386 cpu/i386/serial.c: Fix syntax errors 2008-07-14 21:19:08 +02:00
ixp Fix some more printf() format issues. 2008-07-13 23:07:35 +02:00
leon2 Moved initialization of GRETH Ethernet driver to CPU directory 2008-08-26 22:17:24 -07:00
leon3 Moved initialization of GRETH Ethernet driver to CPU directory 2008-08-26 22:17:24 -07:00
lh7a40x Big white-space cleanup. 2008-05-21 00:14:08 +02:00
mcf52x2 ColdFire: I2C fix for multiple platforms 2008-08-28 09:16:54 -06:00
mcf523x ColdFire: I2C fix for multiple platforms 2008-08-28 09:16:54 -06:00
mcf532x ColdFire: I2C fix for multiple platforms 2008-08-28 09:16:54 -06:00
mcf547x_8x ColdFire: I2C fix for multiple platforms 2008-08-28 09:16:54 -06:00
mcf5227x ColdFire: I2C fix for multiple platforms 2008-08-28 09:16:54 -06:00
mcf5445x ColdFire: I2C fix for multiple platforms 2008-08-28 09:16:54 -06:00
microblaze Fix merge problems 2008-08-06 14:05:38 +02:00
mips Fix merge problems 2008-08-06 14:05:38 +02:00
mpc5xx Big white-space cleanup. 2008-05-21 00:14:08 +02:00
mpc5xxx Move MPC5xxx_FEC driver to drivers/net 2008-08-29 13:58:07 -06:00
mpc8xx fdt: rework fdt_fixup_ethernet() to use env instead of bd_t 2008-08-21 02:07:43 +02:00
mpc8xxx/ddr FSL DDR: Add DDR2 DIMM paramter support 2008-08-27 02:06:00 +02:00
mpc83xx mpc83xx: add PCISLAVE support to 83XX_GENERIC_PCI setup code 2008-08-25 17:04:30 -05:00
mpc85xx mpc85xx: remove redudant code with lib_ppc/interrupts.c 2008-08-27 11:44:10 -05:00
mpc86xx FSL DDR: Remove duplicate setting of cs0_bnds register on 86xx. 2008-08-28 00:35:56 +02:00
mpc512x Move MPC512x_FEC driver to drivers/net 2008-08-29 13:58:12 -06:00
mpc824x Big white-space cleanup. 2008-05-21 00:14:08 +02:00
mpc8220 Big white-space cleanup. 2008-05-21 00:14:08 +02:00
mpc8260 fdt: rework fdt_fixup_ethernet() to use env instead of bd_t 2008-08-21 02:07:43 +02:00
nios SPI API improvements 2008-06-03 20:28:50 +02:00
nios2 Fix merge problems 2008-08-06 14:05:38 +02:00
ppc4xx ppc4xx/NAND: Add select_chip function to 4xx NDFC driver 2008-08-30 11:24:54 +02:00
pxa Fix merge problems 2008-08-06 14:05:38 +02:00
s3c44b0 Big white-space cleanup. 2008-05-21 00:14:08 +02:00
sa1100 Big white-space cleanup. 2008-05-21 00:14:08 +02:00
sh2 sh: Add support SH2/SH2A which is CPU of Renesas Technology 2008-08-31 22:48:33 +09:00
sh3 sh: Fix SH-boards compile error 2008-07-08 12:03:24 +09:00
sh4 sh: Fix SH-boards compile error 2008-07-08 12:03:24 +09:00