1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-19 14:46:14 +02:00
openwrt-xburst/target/linux/brcm47xx/patches-3.2/042-bcma-export-bcma_pcie_read.patch
hauke f07caed264 brcm47xx: add support for NAND flash on devices using bcma
This patch add support for the NAND flash on BCM5357 based devices like the WNR3500Lv2.

Thank you Tathagata Das <tathagata@alumnux.com> for the patch


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30943 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-14 22:59:39 +00:00

36 lines
1.2 KiB
Diff

From 01d8709c311858c37e02c96464ea4dc954334210 Mon Sep 17 00:00:00 2001
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Sat, 14 Jan 2012 20:03:09 +0100
Subject: [PATCH 25/31] bcma: export bcma_pcie_read()
This will be needed by the host controller.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
drivers/bcma/bcma_private.h | 2 ++
drivers/bcma/driver_pci.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -51,6 +51,8 @@ int bcma_sflash_init(struct bcma_drv_cc
int bcma_nflash_init(struct bcma_drv_cc *cc);
#endif /* CONFIG_BCMA_NFLASH */
+u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
+
#ifdef CONFIG_BCMA_HOST_PCI
/* host_pci.c */
extern int __init bcma_host_pci_init(void);
--- a/drivers/bcma/driver_pci.c
+++ b/drivers/bcma/driver_pci.c
@@ -17,7 +17,7 @@
* R/W ops.
**************************************************/
-static u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address)
+u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address)
{
pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address);
pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR);