tools: install a fake empty ldconfig script to prevent the system ldconfig from messi...
[openwrt/openwrt.git] / target / linux / ramips / patches-3.10 / 0221-pinmux-rt5350-spi_cs1.patch
1 --- a/arch/mips/include/asm/mach-ralink/rt305x.h
2 +++ b/arch/mips/include/asm/mach-ralink/rt305x.h
3 @@ -145,6 +145,7 @@ static inline int soc_is_rt5350(void)
4 #define RT305X_GPIO_MODE_SDRAM 8
5 #define RT305X_GPIO_MODE_RGMII 9
6 #define RT5350_GPIO_MODE_PHY_LED 14
7 +#define RT5350_GPIO_MODE_SPI_CS1 21
8 #define RT3352_GPIO_MODE_LNA 18
9 #define RT3352_GPIO_MODE_PA 20
10
11 --- a/arch/mips/ralink/rt305x.c
12 +++ b/arch/mips/ralink/rt305x.c
13 @@ -38,6 +38,10 @@ static struct rt2880_pmx_func uartlite_f
14 static struct rt2880_pmx_func jtag_func[] = { FUNC("jtag", 0, 17, 5) };
15 static struct rt2880_pmx_func mdio_func[] = { FUNC("mdio", 0, 22, 2) };
16 static struct rt2880_pmx_func rt5350_led_func[] = { FUNC("led", 0, 22, 5) };
17 +static struct rt2880_pmx_func rt5350_cs1_func[] = {
18 + FUNC("spi_cs1", 0, 27, 1),
19 + FUNC("wdg_cs1", 1, 27, 1),
20 +};
21 static struct rt2880_pmx_func sdram_func[] = { FUNC("sdram", 0, 24, 16) };
22 static struct rt2880_pmx_func rt3352_rgmii_func[] = { FUNC("rgmii", 0, 24, 12) };
23 static struct rt2880_pmx_func rgmii_func[] = { FUNC("rgmii", 0, 40, 12) };
24 @@ -81,6 +85,7 @@ static struct rt2880_pmx_group rt5350_pi
25 GRP("uartlite", uartlite_func, 1, RT305X_GPIO_MODE_UART1),
26 GRP("jtag", jtag_func, 1, RT305X_GPIO_MODE_JTAG),
27 GRP("led", rt5350_led_func, 1, RT5350_GPIO_MODE_PHY_LED),
28 + GRP("spi_cs1", rt5350_cs1_func, 2, RT5350_GPIO_MODE_SPI_CS1),
29 { 0 }
30 };
31