ppc4xx: Allow overwriting pci target registers for all 4xx boards
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Mon, 7 Sep 2009 15:00:40 +0000 (17:00 +0200)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:18 +0000 (09:04 -0500)
commit247eeb98a8b1582ea33dbb78d2cf48124299ddf8
tree2d858b40a7c55d909c3b45b37eccd05682e04718
parent1fda4e9df14bf7d939da20c26e04bd0ab877b1e7
ppc4xx: Allow overwriting pci target registers for all 4xx boards

This patch adds the CONFIG_PCI_4xx_PTM_OVERWRITE option and replaces
the ugly 'if defined(BOARD1) || ... || defined(BOARDn)' construct
in 4xx pci code.

When CONFIG_PCI_4xx_PTM_OVERWRITE is defined the default ptm register
setup can be overwritten through environment variables ptm1la, ptm1ms,
ptm2la and ptm2ms to do application specific pci target BAR configuration.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/4xx_pci.c