[OpenWrt-Devel] [PATCH] ps3-utils git repository fix

2012-03-01 Thread Nicola Squartini
The PKG_SOURCE_URL should be 

git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-utils.git

rather then

http://www.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-utils.git

or else you will get a fatal error did you run git update-server-info
on the server?



Signed-off-by: Nicola Squartini tens...@gmail.com


Index: package/ps3-utils/Makefile
===
--- package/ps3-utils/Makefile  (revision 30757)
+++ package/ps3-utils/Makefile  (working copy)
@@ -13,7 +13,7 @@
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://www.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-utils.git
+PKG_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-utils.git
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_VERSION:=$(PKG_REV)





___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] BCMA - Reorder SPROM fill

2012-03-01 Thread Nathan Hintz
The SPROM is initialized in bcm47xx_fill_sprom, so move the call to 
bcm47xx_fill_sprom_ethernet after it.

Signed-off-by: Nathan Hintz nlhi...@hotmail.com

Index: 
target/linux/brcm47xx/patches-3.2/199-MIPS-BCM47XX-provide-sprom-to-bcma-bus.patch
===
--- 
target/linux/brcm47xx/patches-3.2/199-MIPS-BCM47XX-provide-sprom-to-bcma-bus.patch
  (revision 30770)
+++ 
target/linux/brcm47xx/patches-3.2/199-MIPS-BCM47XX-provide-sprom-to-bcma-bus.patch
  (working copy)
@@ -66,13 +66,13 @@
 +  bcm47xx_fill_sprom(out, prefix);
 +  return 0;
 +  } else if (bus-hosttype == BCMA_HOSTTYPE_SOC) {
-+  bcm47xx_fill_sprom_ethernet(out, NULL);
 +  core = bcma_find_core(bus, BCMA_CORE_80211);
 +  if (core) {
 +  snprintf(prefix, sizeof(prefix), sb/%u/,
 +   core-core_index);
 +  bcm47xx_fill_sprom(out, prefix);
 +  }
++  bcm47xx_fill_sprom_ethernet(out, NULL);
 +  return 0;
 +  } else {
 +  printk(KERN_WARNING bcm47xx: unable to fill SPROM for given 
bustype.\n);


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] BCMA - Account for variable PCI memory base/size

2012-03-01 Thread Nathan Hintz
Signed-off-by: Nathan Hintz nlhi...@hotmail.com

Index: 
target/linux/brcm47xx/patches-3.2/0040-bcma-add-PCIe-host-controller.patch
===
--- target/linux/brcm47xx/patches-3.2/0040-bcma-add-PCIe-host-controller.patch  
(revision 30770)
+++ target/linux/brcm47xx/patches-3.2/0040-bcma-add-PCIe-host-controller.patch  
(working copy)
@@ -169,7 +169,7 @@
  int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, struct bcma_device *core,
 --- a/drivers/bcma/driver_pci_host.c
 +++ b/drivers/bcma/driver_pci_host.c
-@@ -2,13 +2,587 @@
+@@ -2,13 +2,588 @@
   * Broadcom specific AMBA
   * PCI Core in hostmode
   *
@@ -662,8 +662,9 @@
 +  /* Ok, ready to run, register it to the system.
 +   * The following needs change, if we want to port hostmode
 +   * to non-MIPS platform. */
-+  io_map_base = (unsigned long)ioremap_nocache(BCMA_SOC_PCI_MEM,
-+   0x0400);
++  io_map_base = (unsigned 
long)ioremap_nocache(pc_host-mem_resource.start,
++   pc_host-mem_resource.end -
++ 
pc_host-mem_resource.start + 1);
 +  pc_host-pci_controller.io_map_base = io_map_base;
 +  set_io_port_base(pc_host-pci_controller.io_map_base);
 +  /* Give some time to the PCI controller to configure itself with the new

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] BCMA - Find names of non BCM cores

2012-03-01 Thread Nathan Hintz
Support recognition of MIPS 74K CPU, etc.

[0.00] bcma: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, 
class 0x0)

Signed-off-by: Nathan Hintz nlhi...@hotmail.com

--- /dev/null   2012-02-21 01:00:44.969496803 -0800
+++ target/linux/brcm47xx/patches-3.2/0050-bcma-find-name-for-non-brcm.patch
2011-07-02 16:50:16.0 -0700
@@ -0,0 +1,17 @@
+--- a/drivers/bcma/scan.c
 b/drivers/bcma/scan.c
+@@ -83,11 +83,9 @@
+ {
+   int i;
+ 
+-  if (id-manuf == BCMA_MANUF_BCM) {
+-  for (i = 0; i  ARRAY_SIZE(bcma_device_names); i++) {
+-  if (bcma_device_names[i].id == id-id)
+-  return bcma_device_names[i].name;
+-  }
++  for (i = 0; i  ARRAY_SIZE(bcma_device_names); i++) {
++  if (bcma_device_names[i].id == id-id)
++  return bcma_device_names[i].name;
+   }
+   return UNKNOWN;
+ }

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] BCMA - Enable use of IRQ6

2012-03-01 Thread Nathan Hintz

Signed-off-by: Nathan Hintz nlhi...@hotmail.com

--- /dev/null   2012-02-21 01:00:44.969496803 -0800
+++ target/linux/brcm47xx/patches-3.2/0051-bcma-enable-irq6.patch   
2011-07-25 11:20:35.030008484 -0700
@@ -0,0 +1,29 @@
+--- a/drivers/bcma/driver_mips.c
 b/drivers/bcma/driver_mips.c
+@@ -74,7 +74,7 @@
+   return dev-core_index;
+   flag = bcma_aread32(dev, BCMA_MIPS_OOBSELOUTA30);
+ 
+-  return flag  0x1F;
++  return (flag ? (flag  0x1F) : 0x3F);
+ }
+ 
+ /* Get the MIPS IRQ assignment for a specified device.
+@@ -87,6 +87,8 @@
+   unsigned int irq;
+ 
+   irqflag = bcma_core_mips_irqflag(dev);
++  if (irqflag == 0x3F)
++  return 6;
+ 
+   for (irq = 1; irq = 4; irq++)
+   if (bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq)) 
+@@ -232,7 +234,7 @@
+   core-irq = 0;
+   else
+   core-irq = mips_irq + 2;
+-  if (core-irq  5)
++  if (core-irq  6)
+   continue;
+   switch (core-id.id) {
+   case BCMA_CORE_PCI:

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel