1 From 2c868d77c161ce7dea8facf203c155924d776c33 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 27 Mar 2013 20:50:40 +0100
4 Subject: [PATCH 4/5] MIPS: ralink: add PCI pinmux group for RT3883
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
8 arch/mips/ralink/rt3883.c | 32 ++++++++++++++++++++++++++++++++
9 1 file changed, 32 insertions(+)
11 --- a/arch/mips/ralink/rt3883.c
12 +++ b/arch/mips/ralink/rt3883.c
13 @@ -113,6 +113,35 @@ struct ralink_pinmux_grp uart_mux[] = {
17 +struct ralink_pinmux_grp pci_mux[] = {
21 + .gpio_first = RT3883_GPIO_PCI_AD0,
22 + .gpio_last = RT3883_GPIO_PCI_AD31,
24 + .name = "pci-host2",
26 + .gpio_first = RT3883_GPIO_PCI_AD0,
27 + .gpio_last = RT3883_GPIO_PCI_AD31,
29 + .name = "pci-host1",
31 + .gpio_first = RT3883_GPIO_PCI_AD0,
32 + .gpio_last = RT3883_GPIO_PCI_AD31,
36 + .gpio_first = RT3883_GPIO_PCI_AD0,
37 + .gpio_last = RT3883_GPIO_PCI_AD31,
41 + .gpio_first = RT3883_GPIO_PCI_AD0,
42 + .gpio_last = RT3883_GPIO_PCI_AD31,
46 static void rt3883_wdt_reset(void)
49 @@ -129,6 +158,9 @@ struct ralink_pinmux rt_pinmux = {
50 .uart_shift = RT3883_GPIO_MODE_UART0_SHIFT,
51 .uart_mask = RT3883_GPIO_MODE_GPIO,
52 .wdt_reset = rt3883_wdt_reset,
54 + .pci_shift = RT3883_GPIO_MODE_PCI_SHIFT,
55 + .pci_mask = RT3883_GPIO_MODE_PCI_MASK,
58 void __init ralink_clk_init(void)