pcie: fix pcie reset gpio failed

PD#156734: pcie: fix pcie reset gpio failed
1. config 1M spaces for I/O

Change-Id: I0ec9a6e920c5fd2fbf922e3f1338a19dbc373aa6
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
This commit is contained in:
Zan Peng
2018-02-03 16:16:01 +08:00
committed by Yixun Lan
parent 616cd64cd6
commit 4ee7ee35ad
2 changed files with 6 additions and 3 deletions

View File

@@ -237,8 +237,10 @@
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
ranges = <0x82000000 0 0 0x0 0xfc600000 0 0x1a00000>;
/* non-prefetchable memory */
ranges = <0x81000000 0 0 0 0xfc600000 0x0 0x100000
/* downstream I/O */
0x82000000 0 0xfa510000 0x0 0xfc700000 0 0x1900000>;
/* non-prefetchable memory */
num-lanes = <1>;
pcie-num = <1>;

View File

@@ -313,7 +313,8 @@ static void amlogic_pcie_assert_reset(struct amlogic_pcie *amlogic_pcie)
if (amlogic_pcie->reset_gpio >= 0)
devm_gpio_request(dev,
amlogic_pcie->reset_gpio, "RESET");
gpio_direction_output(
amlogic_pcie->reset_gpio, 0);
if (gpio_is_valid(amlogic_pcie->reset_gpio)) {
dev_info(amlogic_pcie->pp.dev,
"GPIO normal: amlogic_pcie_assert_reset\n");