Hikey960: Fix hikey960 pcie mount fail
authorKaihua Zhong <zhongkaihua@huawei.com>
Tue, 9 Jan 2018 08:51:38 +0000 (16:51 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Tue, 9 Jan 2018 10:38:35 +0000 (18:38 +0800)
Set IOC_AO_IOMG_033 function from GPIO213 to PCIE_CLKREQ_N

bit[0-2]:  000: GPIO_213;
           001: PCIE_CLKREQ_N;
           010: GPIO_018_SH;
           100: GPIO_014_SE;
           110: FAC_TEST24;
           111: FAC_TEST24;
bit[3-31]: reserved

Signed-off-by: Guangtao Zhang <zhangguangtao@hisilicon.com>
Tested-by: Yao Chen <chenyao11@huawei.com>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
plat/hisilicon/hikey960/hikey960_bl1_setup.c
plat/hisilicon/hikey960/include/hi3660.h

index 6dfada75cd087523d9ac57bd69a24ed7f3e95e9c..d6b5a3deb89b747e7876ffc9c5a2875ef4238baf 100644 (file)
@@ -642,6 +642,8 @@ static void hikey960_pinmux_init(void)
        }
        /* GPIO005 - PMU SSI, 10mA */
        mmio_write_32(IOCG_006_REG, 2 << 4);
+       /* GPIO213 - PCIE_CLKREQ_N */
+       mmio_write_32(IOMG_AO_033_REG, 1);
 }
 
 /*
index 83d1b3637f7250a1910bc15d654eb85c892fe7da..ab7b8aa4688eea02acd77222b290eb4c45982c1c 100644 (file)
 #define IOMG_AO_026_REG                        (IOMG_AO_REG_BASE + 0x068)
 /* GPIO219: PD interrupt. pull up */
 #define IOMG_AO_039_REG                        (IOMG_AO_REG_BASE + 0x09C)
+/* GPIO213: PCIE_CLKREQ_N */
+#define IOMG_AO_033_REG                        (IOMG_AO_REG_BASE + 0x084)
 
 #define IOCG_AO_REG_BASE               0xFFF1187C
 /* GPIO219: PD interrupt. pull up */