summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/image/lzma-loader/src/config.h
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-15 15:02:38 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-15 15:02:38 +0000
commitb9a483cabed0944ff3a2451b5b543dd30b67c267 (patch)
tree7ce47c5a47830caff3fe9dbead3a9dfb444f9f1f /target/linux/adm5120-2.6/image/lzma-loader/src/config.h
parenteb0c9f85a81a1d491cd7e54083cf03b2cbdf21d2 (diff)
[adm5120] lzma-loader improvements
* update LzmaDecode.[ch] to 4.16 * speed up decompressing from flash * uses printf from lzma-loader of generic-2.6 target * initial support for flash bank switching git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7975 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/image/lzma-loader/src/config.h')
-rw-r--r--target/linux/adm5120-2.6/image/lzma-loader/src/config.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/image/lzma-loader/src/config.h b/target/linux/adm5120-2.6/image/lzma-loader/src/config.h
index 5002b1819..b90fcfbe9 100644
--- a/target/linux/adm5120-2.6/image/lzma-loader/src/config.h
+++ b/target/linux/adm5120-2.6/image/lzma-loader/src/config.h
@@ -1,37 +1,51 @@
+#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
/*
@@ -39,10 +53,12 @@
*/
#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
/*
@@ -62,6 +78,7 @@
#if defined(CONFIG_BOARD_EASY83000)
# define CONFIG_BOARD_NAME "EASY 83000"
+# define CONFIG_FLASH_SIZE FLASH_4M
#endif
/*
@@ -69,10 +86,12 @@
*/
#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
/*
@@ -81,3 +100,9 @@
#ifndef CONFIG_BOARD_NAME
# define CONFIG_BOARD_NAME "ADM5120"
#endif
+
+#ifndef CONFIG_FLASH_SIZE
+# define CONFIG_FLASH_SIZE FLASH_2M
+#endif
+
+#endif /* _CONFIG_H_ */ \ No newline at end of file