1/***************************************************************************
2#***
3#***    Copyright 2005  Hon Hai Precision Ind. Co. Ltd.
4#***    All Rights Reserved.
5#***    No portions of this material shall be reproduced in any form without the
6#***    written permission of Hon Hai Precision Ind. Co. Ltd.
7#***
8#***    All information contained in this document is Hon Hai Precision Ind.
9#***    Co. Ltd. company private, proprietary, and trade secret property and
10#***    are protected by international intellectual property laws and treaties.
11#***
12#****************************************************************************
13***
14***    Filename: ambitCfg.h
15***
16***    Description:
17***         This file is specific to each project. Every project should have a
18***    different copy of this file.
19***        Included from ambit.h which is shared by every project.
20***
21***    History:
22***
23***	   Modify Reason		                                        Author		         Date		                Search Flag(Option)
24***	--------------------------------------------------------------------------------------
25***    File Creation                                            Jasmine Yang    11/02/2005
26*******************************************************************************/
27
28
29#ifndef _AMBITCFG_H
30#define _AMBITCFG_H
31
32#define WW_VERSION           1 /* WW SKUs */
33#define NA_VERSION           2 /* NA SKUs */
34#define JP_VERSION           3
35#define GR_VERSION           4
36#define PR_VERSION           5
37#define KO_VERSION           6
38#define RU_VERSION           7
39#define SS_VERSION           8
40#define PT_VERSION           9
41#define TWC_VERSION          10
42#define BRIC_VERSION         11
43#define SK_VERSION           12
44
45#define WLAN_REGION          WW_VERSION
46#define FW_REGION            WW_VERSION   /* true f/w region */
47
48/*formal version control*/
49#define AMBIT_HARDWARE_VERSION     "U12H224T00"
50#define AMBIT_SOFTWARE_VERSION     "V1.0.0.60"
51#define AMBIT_UI_VERSION           "1.0.38"
52#define STRING_TBL_VERSION         "1.0.0.60_2.1.38.1"
53
54#define AMBIT_PRODUCT_NAME          "WNDR4500v2"
55#define AMBIT_PRODUCT_DESCRIPTION   "Netgear Wireless Router WNDR4500v2"
56#define UPnP_MODEL_URL              "WNDR4500v2.aspx"
57#define UPnP_MODEL_DESCRIPTION      "N900"
58
59#define AMBIT_NVRAM_VERSION  "1" /* digital only */
60
61#ifdef AMBIT_UPNP_SA_ENABLE /* Jasmine Add, 10/24/2006 */
62#define SMART_WIZARD_SPEC_VERSION "0.7"  /* This is specification version of smartwizard 2.0 */
63#endif
64/****************************************************************************
65 * Board-specific defintions
66 *
67 ****************************************************************************/
68
69/* Interface definitions */
70#define WAN_IF_NAME_NUM             "eth0"
71#define LAN_IF_NAME_NUM             "vlan1"
72#define WLAN_IF_NAME_NUM            "eth1"
73#define WLAN_N_IF_NAME_NUM          "eth2"
74#define WDS_IF_NAME_NUM             "wds0.1"    /* WDS interface */
75
76/* Foxconn add start by aspen Bai, 11/13/2008 */
77#ifdef MULTIPLE_SSID
78#define WLAN_BSS1_NAME_NUM          "wl0.1"     /* Multiple BSSID #2 */
79#define WLAN_BSS2_NAME_NUM          "wl0.2"     /* Multiple BSSID #3 */
80#define WLAN_BSS3_NAME_NUM          "wl0.3"     /* Multiple BSSID #4 */
81
82/* Foxconn add start, Tony W.Y. Wang, 03/22/2010 @For 5G*/
83#define WLAN_5G_BSS1_NAME_NUM       "wl1.1"     /* Multiple BSSID #2 */
84#define WLAN_5G_BSS2_NAME_NUM       "wl1.2"     /* Multiple BSSID #3 */
85#define WLAN_5G_BSS3_NAME_NUM       "wl1.3"     /* Multiple BSSID #4 */
86/* Foxconn add end, Tony W.Y. Wang, 03/22/2010 @For 5G*/
87#endif /* MULTIPLE_SSID */
88/* Foxconn add end by aspen Bai, 11/13/2008 */
89
90/* GPIO definitions */
91/* Foxconn modified start, Wins, 04/11/2011 */
92#if defined(WNDR4500REV)
93#define GPIO_POWER_LED_GREEN        2
94#define GPIO_POWER_LED_GREEN_STR    "2"
95#define GPIO_POWER_LED_AMBER        3
96#define GPIO_POWER_LED_AMBER_STR    "3"
97#else /* WNDR4500REV */
98#define GPIO_POWER_LED_GREEN        14
99#define GPIO_POWER_LED_GREEN_STR    "14"
100#define GPIO_POWER_LED_AMBER        14
101#define GPIO_POWER_LED_AMBER_STR    "14"
102#endif /* WNDR4500REV */
103/* Foxconn modified end, Wins, 04/11/2011 */
104
105#define GPIO_WAN_LED                15
106
107#define GPIO_WIFI_2G_LED            9
108#define GPIO_WIFI_5G_LED            11
109
110#define LANG_TBL_MTD_RD             "/dev/mtdblock"
111#define LANG_TBL_MTD_WR             "/dev/mtd"
112
113#define ML_MTD_RD                   "/dev/mtdblock"
114#define ML_MTD_WR                   "/dev/mtd"
115/* MTD definitions */
116#define ML1_MTD_RD                  "/dev/mtdblock3"
117#define ML1_MTD_WR                  "/dev/mtd3"
118#define ML2_MTD_RD                  "/dev/mtdblock4"
119#define ML2_MTD_WR                  "/dev/mtd4"
120
121#if defined(X_ST_ML)
122#define ST_SUPPORT_NUM              (7)        /* The maxium value can be 2-10. */
123#define LANG_TBL_MTD_START          (3)
124#define LANG_TBL_MTD_END            (LANG_TBL_MTD_START + ST_SUPPORT_NUM - 1)
125#define FLASH_MTD_ML_SIZE           0x10000
126#define BUILTIN_LANGUAGE            "English"
127
128#define ML3_MTD_RD                  "/dev/mtdblock5"
129#define ML3_MTD_WR                  "/dev/mtd5"
130#define ML4_MTD_RD                  "/dev/mtdblock6"
131#define ML4_MTD_WR                  "/dev/mtd6"
132#define ML5_MTD_RD                  "/dev/mtdblock7"
133#define ML5_MTD_WR                  "/dev/mtd7"
134#define ML6_MTD_RD                  "/dev/mtdblock8"
135#define ML6_MTD_WR                  "/dev/mtd8"
136#define ML7_MTD_RD                  "/dev/mtdblock9"
137#define ML7_MTD_WR                  "/dev/mtd9"
138
139#define TF1_MTD_RD                  "/dev/mtdblock10"
140#define TF1_MTD_WR                  "/dev/mtd10"
141#define TF2_MTD_RD                  "/dev/mtdblock11"
142#define TF2_MTD_WR                  "/dev/mtd11"
143
144#define POT_MTD_RD                  "/dev/mtdblock12"
145#define POT_MTD_WR                  "/dev/mtd12"
146
147#define BD_MTD_RD                   "/dev/mtdblock13"
148#define BD_MTD_WR                   "/dev/mtd13"
149
150#define NVRAM_MTD_RD                "/dev/mtdblock14"
151#define NVRAM_MTD_WR                "/dev/mtd14"
152#else
153#define TF1_MTD_RD                  "/dev/mtdblock5"
154#define TF1_MTD_WR                  "/dev/mtd5"
155#define TF2_MTD_RD                  "/dev/mtdblock6"
156#define TF2_MTD_WR                  "/dev/mtd6"
157
158#define POT_MTD_RD                  "/dev/mtdblock7"
159#define POT_MTD_WR                  "/dev/mtd7"
160
161#define BD_MTD_RD                   "/dev/mtdblock8"
162#define BD_MTD_WR                   "/dev/mtd8"
163
164#define NVRAM_MTD_RD                "/dev/mtdblock9"
165#define NVRAM_MTD_WR                "/dev/mtd9"
166#endif
167
168
169
170/* wklin added start, 11/22/2006 */
171/* The following definition is used in acosNvramConfig.c and acosNvramConfig.h
172 * to distingiush between Foxconn's and Broadcom's implementation.
173 */
174#define BRCM_NVRAM          /* use broadcom nvram instead of ours */
175
176/* The following definition is to used as the key when doing des
177 * encryption/decryption of backup file.
178 * Have to be 7 octects.
179 */
180#define BACKUP_FILE_KEY         "NtgrBak"
181/* wklin added end, 11/22/2006 */
182
183/* Foxconn Perry added start, 2011/04/13, for document URL */
184#define DOCUMENT_URL		"http://downloadcenter.netgear.com/"
185/* Foxconn Perry added end, 2011/04/13, for document URL */
186
187/* Foxconn Perry added start, 2011/08/17, for USB Support level */
188#define USB_support_level        "7"
189/* Foxconn Perry added end, 2011/08/17, for USB Support level */
190
191#endif /*_AMBITCFG_H*/
192