Re: [DNX#2006040142001383] [U-Boot-Users] [PATCH 6/7] Flat device tree suppor [...]

Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142001383] was created:
<snip>
- Added PCI and I2C support to CDS flat device tree
- Added VIA configuration table
- Added support for PCI2 on CDS Patch by Andy Fleming 17-Mar-2006
- Fixed a bug where 8555 PCI code used the old variable and
Signed-off-by: Andy Fleming afleming@freescale.com
board/cds/common/ft_board.c | 3 + board/cds/common/via.c | 99 +++++++++++++++++++++++++++ board/cds/common/via.h | 18 +++++ board/cds/mpc8541cds/Makefile | 1 board/cds/mpc8541cds/init.S | 12 ++- board/cds/mpc8541cds/mpc8541cds.c | 32 ++++----- board/cds/mpc8541cds/oftree.dts | 99 +++++++++++++++++++++++++-- board/cds/mpc8548cds/Makefile | 1 board/cds/mpc8548cds/init.S | 12 ++- board/cds/mpc8548cds/mpc8548cds.c | 32 ++++----- board/cds/mpc8548cds/oftree.dts | 131 ++++++++++++++++++++++++++++++++++-- board/cds/mpc8555cds/Makefile | 1 board/cds/mpc8555cds/init.S | 12 ++- board/cds/mpc8555cds/mpc8555cds.c | 39 ++++++----- board/cds/mpc8555cds/oftree.dts | 135 +++++++++++++++++++++++++++++++++++-- include/configs/MPC8541CDS.h | 21 ++---- include/configs/MPC8548CDS.h | 23 ++---- include/configs/MPC8555CDS.h | 23 ++---- create mode 100644 board/cds/common/via.c create mode 100644 board/cds/common/via.h
7fa801f3ea1d0fe73a2aec55965aa0cf58a1997a diff --git a/board/cds/common/ft_board.c b/board/cds/common/ft_board.c index 8c4ef0c..f167e5f 100644 --- a/board/cds/common/ft_board.c +++ b/board/cds/common/ft_board.c @@ -32,6 +32,9 @@ extern void ft_cpu_setup(void *blob, bd_ void ft_board_setup(void *blob, bd_t *bd) { +#ifdef CONFIG_PCI
- ft_pci_setup(blob, bd);
+#endif ft_cpu_setup(blob, bd); } #endif diff --git a/board/cds/common/via.c b/board/cds/common/via.c new file mode 100644 index 0000000..68c8d21 --- /dev/null +++ b/board/cds/common/via.c @@ -0,0 +1,99 @@ +/*
- Copyright 2006 Freescale Semiconductor.
- See file CREDITS for list of people who contributed to this
- project.
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of
- the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- MA 02111-1307 USA
- */
+#include <common.h> +#include <pci.h>
+/* Config the VIA chip */ +void mpc85xx_config_via(struct pci_controller* hose, pci_dev_t dev, struct pci_config_table *tab) +{
- pci_dev_t bridge;
- /* Enable USB and IDE functions */
- pci_hose_write_config_byte(hose, dev, 0x48, 0x08);
- pciauto_config_device(hose, dev);
- /*
* Force the backplane P2P bridge to have a window
* open from 0x00000000-0x00001fff in PCI I/O space.
* This allows legacy I/O (i8259, etc) on the VIA
* southbridge to be accessed.
*/
- bridge = PCI_BDF(0,17,0);
- pci_hose_write_config_byte(hose, bridge, PCI_IO_BASE, 0);
- pci_hose_write_config_word(hose, bridge, PCI_IO_BASE_UPPER16, 0);
- pci_hose_write_config_byte(hose, bridge, PCI_IO_LIMIT, 0x10);
</snip>
Your U-Boot support team
participants (1)
-
DENX Support System