Skip to contentSkip to conversation

pci_sh4: Add system memory registration

PATCH Superseded Yoshihiro Shimoda 2 participants 2 messages Feb 25, 2009 – Feb 27, 2009 PCI

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 pci_sh4: Add system memory registration

It is necessary for some pci device driver.

---
 drivers/pci/pci_sh4.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
drivers/pci/pci_sh4.c +10 -0
index 057b6dd..c7963ed 100644
@@ -54,6 +54,16 @@ int pci_sh4_init(struct pci_controller *hose)
 		PCI_REGION_IO);
 	hose->region_count++;
 
+#if defined(CONFIG_PCI_SYS_BUS)
+	/* PCI System Memory space */
+	pci_set_region(hose->regions + 2,
+		CONFIG_PCI_SYS_BUS,
+		CONFIG_PCI_SYS_PHYS,
+		CONFIG_PCI_SYS_SIZE,
+		PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
+	hose->region_count++;
+#endif
+
 	udelay(1000);
 
 	pci_set_ops(hose,
Signature · 1 line
1.5.5
#1 lore raw

PATCH 3/5 pci_sh4: Add system memory registration

Quoted 3 lines · On Wed, 25 Feb 2009 14:26:52 +0900 Yoshihiro Shimoda…

It is necessary for some pci device driver.

Applied, thanks.

Best regards,
Nobuhiro

Signature · 5 lines
Nobuhiro Iwamatsu
	hemamu at t-base.ne.jp
	iwamatsu at debian.or.jp

	GPG ID : 3170EBE9