projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: add scsi cdrom support
[openwrt.git]
/
target
/
linux
/
lantiq
/
patches
/
260-pci.patch
diff --git
a/target/linux/lantiq/patches/260-pci.patch
b/target/linux/lantiq/patches/260-pci.patch
index
e9a66c7
..
462ce6e
100644
(file)
--- a/
target/linux/lantiq/patches/260-pci.patch
+++ b/
target/linux/lantiq/patches/260-pci.patch
@@
-140,7
+140,7
@@
+}
--- /dev/null
+++ b/arch/mips/pci/pci-lantiq.c
+}
--- /dev/null
+++ b/arch/mips/pci/pci-lantiq.c
-@@ -0,0 +1,30
5
@@
+@@ -0,0 +1,30
3
@@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
@@
-302,9
+302,6
@@
+ gmap[i].alt1, gmap[i].dir, gmap[i].name);
+ }
+ }
+ gmap[i].alt1, gmap[i].dir, gmap[i].name);
+ }
+ }
-+ lq_w32(lq_r32((u32*)0xBF101000) | 0x60, (u32*)0xBF101000);
-+ lq_w32(lq_r32((u32*)0xBF101004) & ~2, (u32*)0xBF101004);
-+ lq_w32(lq_r32((u32*)0xBF10100C) | 2, (u32*)0xBF10100C);
+ for(i = 0; i < 3; i++)
+ {
+ if(gpio & (1 << i))
+ for(i = 0; i < 3; i++)
+ {
+ if(gpio & (1 << i))
@@
-397,15
+394,16
@@
+ lq_w32(lq_r32(LQ_EBU_PCC_IEN) | 0x10, LQ_EBU_PCC_IEN);
+
+ /* toggle reset pin */
+ lq_w32(lq_r32(LQ_EBU_PCC_IEN) | 0x10, LQ_EBU_PCC_IEN);
+
+ /* toggle reset pin */
-+
__
gpio_set_value(21, 0);
++ gpio_set_value(21, 0);
+ wmb();
+ mdelay(1);
+ wmb();
+ mdelay(1);
-+
__
gpio_set_value(21, 1);
++ gpio_set_value(21, 1);
+ return 0;
+}
+
+int __init
+pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin){
+ return 0;
+}
+
+int __init
+pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin){
++ printk("%s:%s[%d]%d %d\n", __FILE__, __func__, __LINE__, slot, pin);
+ if(lq_pci_irq_map[slot])
+ return lq_pci_irq_map[slot];
+ printk("lq_pci: trying to map irq for unknown slot %d\n", slot);
+ if(lq_pci_irq_map[slot])
+ return lq_pci_irq_map[slot];
+ printk("lq_pci: trying to map irq for unknown slot %d\n", slot);
This page took
0.021587 seconds
and
4
git commands to generate.