diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2009-03-25 23:43:50 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-29 16:04:51 +0200 |
commit | 71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11 (patch) | |
tree | c66cfa60a104b84a43b84fd3e1be60fc1d8310c4 /board/netstar/netstar.c | |
parent | 3f464b0fc009d41d2734c08e472eb6d445f73a5c (diff) | |
download | bootable_bootloader_goldelico_gta04-71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11.zip bootable_bootloader_goldelico_gta04-71f7bd305d9768bcb7ddbe4b5823cbf3b3597b11.tar.gz bootable_bootloader_goldelico_gta04-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.c | 15 |
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 |