summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Eibach <dirk.eibach@gdsys.cc>2014-07-03 09:28:14 +0200
committerTom Rini <trini@ti.com>2014-07-07 19:47:18 -0400
commitc2b951b0db7311256be5d01ab8f57ad0459acb7e (patch)
tree7048ee26e09e94b599d87151b1760daaec4ee406
parent443a2ec57a5dd917a077b786f48f905643b02610 (diff)
downloadu-boot-imx-c2b951b0db7311256be5d01ab8f57ad0459acb7e.zip
u-boot-imx-c2b951b0db7311256be5d01ab8f57ad0459acb7e.tar.gz
u-boot-imx-c2b951b0db7311256be5d01ab8f57ad0459acb7e.tar.bz2
board: controlcenterd: Fix pci access
readl was called with values instead of pointers to these values. Why this ever did work is a mystery... Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
-rw-r--r--board/gdsys/p1022/controlcenterd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/gdsys/p1022/controlcenterd.c b/board/gdsys/p1022/controlcenterd.c
index 642b807..f76d968 100644
--- a/board/gdsys/p1022/controlcenterd.c
+++ b/board/gdsys/p1022/controlcenterd.c
@@ -382,9 +382,9 @@ static void hydra_initialize(void)
fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0,
PCI_REGION_MEM);
- versions = readl(fpga->versions);
- fpga_version = readl(fpga->fpga_version);
- fpga_features = readl(fpga->fpga_features);
+ versions = readl(&fpga->versions);
+ fpga_version = readl(&fpga->fpga_version);
+ fpga_features = readl(&fpga->fpga_features);
hardware_version = versions & 0xf;
feature_uart_channels = (fpga_features >> 6) & 0x1f;