mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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>;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user