Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44e0167b authored by Yan He's avatar Yan He
Browse files

msm: apq8084: correct gpiomux config for PCIe CLKREQ



The CLKREQ GPIO of PCIe root complex 1 uses function 1, different
from function 2 used by root complex 0. Correct the gpiomux config
for root complex 1 in this change.

Change-Id: I9a0327332da71f612d6904cdf78ffebe018206de
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent 42608bf2
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -1119,23 +1119,30 @@ static struct gpiomux_setting gpio_qca1530_config_mpp7 = {
	.pull = GPIOMUX_PULL_UP,
};

static struct gpiomux_setting gpio_pcie_clkreq_config = {
static struct gpiomux_setting gpio_pcie_clkreq_config[] = {
	{
		.func = GPIOMUX_FUNC_2,
		.drv = GPIOMUX_DRV_2MA,
		.pull = GPIOMUX_PULL_UP,
	},
	{
		.func = GPIOMUX_FUNC_1,
		.drv = GPIOMUX_DRV_2MA,
		.pull = GPIOMUX_PULL_UP,
	},
};

static struct msm_gpiomux_config msm_pcie_configs[] __initdata = {
	{
		.gpio = 68,    /* PCIE0_CLKREQ_N */
		.settings = {
			[GPIOMUX_SUSPENDED] = &gpio_pcie_clkreq_config,
			[GPIOMUX_SUSPENDED] = &gpio_pcie_clkreq_config[0],
		},
	},
	{
		.gpio = 141,    /* PCIE1_CLKREQ_N */
		.settings = {
			[GPIOMUX_SUSPENDED] = &gpio_pcie_clkreq_config,
			[GPIOMUX_SUSPENDED] = &gpio_pcie_clkreq_config[1],
		},
	},
};