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>
This commit is contained in:
parent
443a2ec57a
commit
c2b951b0db
|
@ -382,9 +382,9 @@ static void hydra_initialize(void)
|
||||||
fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0,
|
fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0,
|
||||||
PCI_REGION_MEM);
|
PCI_REGION_MEM);
|
||||||
|
|
||||||
versions = readl(fpga->versions);
|
versions = readl(&fpga->versions);
|
||||||
fpga_version = readl(fpga->fpga_version);
|
fpga_version = readl(&fpga->fpga_version);
|
||||||
fpga_features = readl(fpga->fpga_features);
|
fpga_features = readl(&fpga->fpga_features);
|
||||||
|
|
||||||
hardware_version = versions & 0xf;
|
hardware_version = versions & 0xf;
|
||||||
feature_uart_channels = (fpga_features >> 6) & 0x1f;
|
feature_uart_channels = (fpga_features >> 6) & 0x1f;
|
||||||
|
|
Loading…
Reference in New Issue