controlcenterd: Disable sideband clocks
authorDirk Eibach <dirk.eibach@gdsys.cc>
Wed, 28 Oct 2015 10:46:29 +0000 (11:46 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 12 Nov 2015 20:59:04 +0000 (15:59 -0500)
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
board/gdsys/p1022/controlcenterd.c

index 64d90dd3fde076ae2d88c82c57fcb5c484db1d50..2f98e4757f9af73a737a9f73988ee61bbc2f98f3 100644 (file)
@@ -57,6 +57,8 @@ struct ihs_fpga {
        u32 versions;           /* 0x0004 */
        u32 fpga_version;       /* 0x0008 */
        u32 fpga_features;      /* 0x000c */
+       u32 reserved[4];        /* 0x0010 */
+       u32 control;            /* 0x0020 */
 };
 
 #ifndef CONFIG_TRAILBLAZER
@@ -384,6 +386,9 @@ static void hydra_initialize(void)
                fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0,
                        PCI_REGION_MEM);
 
+               /* disable sideband clocks */
+               writel(1, &fpga->control);
+
                versions = readl(&fpga->versions);
                fpga_version = readl(&fpga->fpga_version);
                fpga_features = readl(&fpga->fpga_features);