kernel: move CONFIG_NET_IP_TUNNEL to generic
[openwrt.git] / target / linux / ramips / patches-3.9 / 0125-MIPS-ralink-add-memory-definition-for-RT3883.patch
1 From d771f446558ef408ca97c391887ae843dd23c358 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sat, 13 Apr 2013 20:23:19 +0200
4 Subject: [PATCH 125/164] MIPS: ralink: add memory definition for RT3883
5
6 Populate struct soc_info with the data that describes our RAM window.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 Patchwork: http://patchwork.linux-mips.org/patch/5182/
10 ---
11  arch/mips/include/asm/mach-ralink/rt3883.h |    5 +++++
12  arch/mips/ralink/rt3883.c                  |    4 ++++
13  2 files changed, 9 insertions(+)
14
15 --- a/arch/mips/include/asm/mach-ralink/rt3883.h
16 +++ b/arch/mips/include/asm/mach-ralink/rt3883.h
17 @@ -152,6 +152,7 @@
18  #define RT3883_GPIO_SPI_MISO           6
19  #define RT3883_GPIO_7                  7
20  #define RT3883_GPIO_10                 10
21 +#define RT3883_GPIO_11                 11
22  #define RT3883_GPIO_14                 14
23  #define RT3883_GPIO_UART1_TXD          15
24  #define RT3883_GPIO_UART1_RXD          16
25 @@ -244,4 +245,8 @@
26  #define RT3883_FLASH_CFG_WIDTH_16BIT   0x1
27  #define RT3883_FLASH_CFG_WIDTH_32BIT   0x2
28  
29 +#define RT3883_SDRAM_BASE              0x00000000
30 +#define RT3883_MEM_SIZE_MIN            2
31 +#define RT3883_MEM_SIZE_MAX            256
32 +
33  #endif /* _RT3883_REGS_H_ */
34 --- a/arch/mips/ralink/rt3883.c
35 +++ b/arch/mips/ralink/rt3883.c
36 @@ -239,4 +239,8 @@ void prom_soc_init(struct ralink_soc_inf
37                 name,
38                 (id >> RT3883_REVID_VER_ID_SHIFT) & RT3883_REVID_VER_ID_MASK,
39                 (id & RT3883_REVID_ECO_ID_MASK));
40 +
41 +       soc_info->mem_base = RT3883_SDRAM_BASE;
42 +       soc_info->mem_size_min = RT3883_MEM_SIZE_MIN;
43 +       soc_info->mem_size_max = RT3883_MEM_SIZE_MAX;
44  }