| 1 | From 01d8709c311858c37e02c96464ea4dc954334210 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hauke Mehrtens <hauke@hauke-m.de> |
| 3 | Date: Sat, 14 Jan 2012 20:03:09 +0100 |
| 4 | Subject: [PATCH 25/31] bcma: export bcma_pcie_read() |
| 5 | |
| 6 | This will be needed by the host controller. |
| 7 | |
| 8 | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
| 9 | --- |
| 10 | drivers/bcma/bcma_private.h | 2 ++ |
| 11 | drivers/bcma/driver_pci.c | 2 +- |
| 12 | 2 files changed, 3 insertions(+), 1 deletions(-) |
| 13 | |
| 14 | --- a/drivers/bcma/bcma_private.h |
| 15 | +++ b/drivers/bcma/bcma_private.h |
| 16 | @@ -46,6 +46,8 @@ u32 bcma_pmu_get_clockcpu(struct bcma_dr |
| 17 | int bcma_sflash_init(struct bcma_drv_cc *cc); |
| 18 | #endif /* CONFIG_BCMA_SFLASH */ |
| 19 | |
| 20 | +u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); |
| 21 | + |
| 22 | #ifdef CONFIG_BCMA_HOST_PCI |
| 23 | /* host_pci.c */ |
| 24 | extern int __init bcma_host_pci_init(void); |
| 25 | --- a/drivers/bcma/driver_pci.c |
| 26 | +++ b/drivers/bcma/driver_pci.c |
| 27 | @@ -17,7 +17,7 @@ |
| 28 | * R/W ops. |
| 29 | **************************************************/ |
| 30 | |
| 31 | -static u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) |
| 32 | +u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address) |
| 33 | { |
| 34 | pcicore_write32(pc, BCMA_CORE_PCI_PCIEIND_ADDR, address); |
| 35 | pcicore_read32(pc, BCMA_CORE_PCI_PCIEIND_ADDR); |
| 36 | |