summaryrefslogtreecommitdiff
path: root/board/netstar/netstar.c
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2009-03-25 23:43:50 +0100
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-03-29 16:04:51 +0200
commit71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11 (patch)
treec66cfa60a104b84a43b84fd3e1be60fc1d8310c4 /board/netstar/netstar.c
parent3f464b0fc009d41d2734c08e472eb6d445f73a5c (diff)
downloadu-boot-imx-71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11.zip
u-boot-imx-71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11.tar.gz
u-boot-imx-71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11.tar.bz2
NetStar: use generic flash driver
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Diffstat (limited to 'board/netstar/netstar.c')
-rw-r--r--board/netstar/netstar.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/netstar/netstar.c b/board/netstar/netstar.c
index f52afe5..a76b338 100644
--- a/board/netstar/netstar.c
+++ b/board/netstar/netstar.c
@@ -21,6 +21,7 @@
*/
#include <common.h>
+#include <flash.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -59,3 +60,17 @@ int board_late_init(void)
{
return 0;
}
+
+#if defined(CONFIG_CMD_FLASH)
+ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t * info)
+{
+ if (banknum == 0) { /* AM29LV800 boot flash */
+ info->portwidth = FLASH_CFI_16BIT;
+ info->chipwidth = FLASH_CFI_BY16;
+ info->interface = FLASH_CFI_X16;
+ return 1;
+ }
+
+ return 0;
+}
+#endif