[U-Boot-Users] 85xxCDS: Enable the VIA PCI-to-ISA bridge.

Randy Vinson rvinson at mvista.com
Tue Jul 24 01:15:49 CEST 2007


>From 97a4daa4c4947a9de36aaf22e8ab622b0cd9a0dc Mon Sep 17 00:00:00 2001
From: Randy Vinson <rvinson at linuxbox.(none)>
Date: Wed, 28 Feb 2007 14:37:48 -0700
Subject: [PATCH] 85xxCDS: Enable the VIA PCI-to-ISA bridge.

Enable the PCI-to-ISA bridge in the VIA Southbridge located on the
Arcadia main board.

The code for this patch was provided by Freescale.

Signed-off-by Randy Vinson <rvinson at mvista.com>
---
 board/cds/common/via.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/board/cds/common/via.c b/board/cds/common/via.c
index e79bd02..ba6cebe 100644
--- a/board/cds/common/via.c
+++ b/board/cds/common/via.c
@@ -28,12 +28,19 @@ void mpc85xx_config_via(struct pci_controller *hose,
 			pci_dev_t dev, struct pci_config_table *tab)
 {
 	pci_dev_t bridge;
+	unsigned int cmdstat;
 
 	/* Enable USB and IDE functions */
 	pci_hose_write_config_byte(hose, dev, 0x48, 0x08);
 
 	pciauto_config_device(hose, dev);
 
+	pci_hose_read_config_dword(hose, dev, PCI_COMMAND, &cmdstat);
+	cmdstat |= PCI_COMMAND_IO | PCI_COMMAND_MEMORY| PCI_COMMAND_MASTER;
+	pci_hose_write_config_dword(hose, dev, PCI_COMMAND, cmdstat);
+	pci_hose_write_config_byte(hose, dev, PCI_CACHE_LINE_SIZE, 0x08);
+	pci_hose_write_config_byte(hose, dev, PCI_LATENCY_TIMER, 0x80);
+
 	/*
 	 * Force the backplane P2P bridge to have a window
 	 * open from 0x00000000-0x00001fff in PCI I/O space.
-- 
1.5.3.rc2.22.g69a9b





More information about the U-Boot mailing list