Florian,
I send you an update in order to fix the device registration.
Kind regards,
Tanguy Bouzéloc.
Le 17/10/2010 16:12, Florian Fainelli a écrit :
Hello Tanguy,
Le Friday 8 October 2010 18:15:50, Tanguy Bouzéloc a écrit :
Hi Florian,
I've updated the patches for 2.6.35 as you requested.
I'm testing the spi bus with a si3216 slic and a si3050 daa. The patch
do not contain cs and preprend fixes yet (testing ATM).
Applied your patch in r23504, thanks!
Kind regards,
Tanguy Bouzéloc.
On 04/10/2010 23:43, Florian Fainelli wrote:
Hi Tanguy,
Le Friday 1 October 2010 15:33:44, Tanguy Bouzéloc a écrit :
Hello,
I've started to rework bcm63xx spi patches and make them work for a
similar board, I've yet to confirm they are ok for neufbox4.
Some issues are remaining (chip select, prepend bytes ...), please feel
free to give me your opinion about them.
I hope next week I can correct theses issues.
Can you work on the 2.6.35 patches instead? I would like to remove 2.6.32
support soon, so that we focus on recent kernels. Otherwise, your patches
look good at a first glance.
What kind of SPI slave are you testing this with? SLIC/SLAC or ethernet
switches and/or flashes?
Thank you very much for your work.
--
Florian
From 53dd92d48861b822aae8264fa7af1a3b02c5603c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tanguy=20Bouz=C3=A9loc?= <tanguy.bouze...@efixo.com>
Date: Mon, 18 Oct 2010 16:41:44 +0200
Subject: [PATCH] fix platform device registration
---
target/linux/brcm63xx/patches-2.6.35/240-spi.patch | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/target/linux/brcm63xx/patches-2.6.35/240-spi.patch
b/target/linux/brcm63xx/patches-2.6.35/240-spi.patch
index 4661486..ed35e36 100644
--- a/target/linux/brcm63xx/patches-2.6.35/240-spi.patch
+++ b/target/linux/brcm63xx/patches-2.6.35/240-spi.patch
@@ -982,13 +982,13 @@
#include <board_bcm963xx.h>
#define PFX "board_bcm963xx: "
-@@ -1489,6 +1490,9 @@ void __init board_prom_init(void)
-
- bcm_gpio_writel(val, GPIO_MODE_REG);
+@@ -1596,6 +1597,9 @@ int __init board_register_devices(void)
+ if (board.num_spis)
+ spi_register_board_info(board.spis, board.num_spis);
+ if (!BCMCPU_IS_6345())
+ bcm63xx_spi_register();
+
- /* Generate MAC address for WLAN and
- * register our SPROM */
- #ifdef CONFIG_SSB_PCIHOST
+ /* read base address of boot chip select (0) */
+ if (BCMCPU_IS_6345())
+ val = 0x1fc00000;
--
1.7.3.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel