NetStar: use generic flash driver
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
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 @@
{
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