aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/image/lzma-loader/src/config.h
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-05 10:12:53 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-05 10:12:53 +0000
commit5c105d9f3fd086aff195d3849dcf847d6b0bd927 (patch)
tree1229a11f725bfa58aa7c57a76898553bb5f6654a /target/linux/adm5120/image/lzma-loader/src/config.h
downloadopenwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.tar.gz
openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.zip
branch Attitude Adjustment
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/image/lzma-loader/src/config.h')
-rw-r--r--target/linux/adm5120/image/lzma-loader/src/config.h143
1 files changed, 143 insertions, 0 deletions
diff --git a/target/linux/adm5120/image/lzma-loader/src/config.h b/target/linux/adm5120/image/lzma-loader/src/config.h
new file mode 100644
index 000000000..e5511d16f
--- /dev/null
+++ b/target/linux/adm5120/image/lzma-loader/src/config.h
@@ -0,0 +1,143 @@
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+
+#define FLASH_2M (2<<20)
+#define FLASH_4M (4<<20)
+
+/*
+ * Cellvision/SparkLAN boards
+ */
+
+#if defined(CONFIG_BOARD_CAS630)
+# define CONFIG_BOARD_NAME "CAS-630"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_CAS670)
+# define CONFIG_BOARD_NAME "CAS-670"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_CAS700)
+# define CONFIG_BOARD_NAME "CAS-700"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_CAS790)
+# define CONFIG_BOARD_NAME "CAS-790"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_CAS771)
+# define CONFIG_BOARD_NAME "CAS-771"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_CAS861)
+# define CONFIG_BOARD_NAME "CAS-861"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_NFS101U)
+# define CONFIG_BOARD_NAME "NFS-101U"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_NFS202U)
+# define CONFIG_BOARD_NAME "NFS-202U"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+/*
+ * Compex boards
+ */
+#if defined(CONFIG_BOARD_WP54GWRT)
+# define CONFIG_BOARD_NAME "WP54G-WRT"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+/*
+ * Edimax boards
+ */
+#if defined(CONFIG_BOARD_BR6104K)
+# define CONFIG_BOARD_NAME "BR-6104K"
+# define CONFIG_FLASH_SIZE FLASH_2M
+#endif
+
+#if defined(CONFIG_BOARD_BR6104KP)
+# define CONFIG_BOARD_NAME "BR-6104KP"
+# define CONFIG_FLASH_SIZE FLASH_2M
+#endif
+
+#if defined(CONFIG_BOARD_BR6104WG)
+# define CONFIG_BOARD_NAME "BR-6104WG"
+# define CONFIG_FLASH_SIZE FLASH_2M
+#endif
+
+/*
+ * Infineon boards
+ */
+#if defined(CONFIG_BOARD_EASY5120PATA)
+# define CONFIG_BOARD_NAME "EASY 5120P-ATA"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_EASY5120RT)
+# define CONFIG_BOARD_NAME "EASY 5120-RT"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_EASY5120WVOIP)
+# define CONFIG_BOARD_NAME "EASY 5120-WVOIP"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_EASY83000)
+# define CONFIG_BOARD_NAME "EASY 83000"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+/*
+ * Motorola boards
+ */
+#if defined(CONFIG_BOARD_POWERLINEMUGW)
+# define CONFIG_BOARD_NAME "Powerline MU Gateway"
+# define CONFIG_USE_UART1 1
+#endif
+
+/*
+ * OSBRiDGE boards
+ */
+#if defined(CONFIG_BOARD_5GXI)
+# define CONFIG_BOARD_NAME "OSBRiDGE 5GXi"
+#endif
+
+/*
+ * ZyXEL boards
+ */
+#if defined(CONFIG_BOARD_P334WT)
+# define CONFIG_BOARD_NAME "P-334WT"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+#if defined(CONFIG_BOARD_P335)
+# define CONFIG_BOARD_NAME "P-335"
+# define CONFIG_FLASH_SIZE FLASH_4M
+#endif
+
+/*
+ * Default values
+ */
+#ifndef CONFIG_BOARD_NAME
+# define CONFIG_BOARD_NAME "ADM5120"
+#endif
+
+#ifndef CONFIG_FLASH_SIZE
+# define CONFIG_FLASH_SIZE FLASH_2M
+#endif
+
+#if !defined(CONFIG_USE_UART0) && !defined(CONFIG_USE_UART1)
+# define CONFIG_USE_UART0
+#endif
+
+#endif /* _CONFIG_H_ */