to make u-boot work for fat32 filesystem
[jz_uboot.git] / board / uranus / flash.c
blobf3dfe8d28fbfedc4b3fdd22d3b45caf9243b876d
1 /*
2 * (C) Copyright 2005
3 * Ingenic Semiconductor, <jlwei@ingenic.cn>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18 * MA 02111-1307 USA
21 #include <common.h>
23 flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
25 /*-----------------------------------------------------------------------
26 * flash_init()
28 * sets up flash_info and returns size of FLASH (bytes)
30 unsigned long flash_init (void)
32 return (0);
35 int flash_erase (flash_info_t * info, int s_first, int s_last)
37 printf ("flash_erase not implemented\n");
38 return 0;
41 void flash_print_info (flash_info_t * info)
43 printf ("flash_print_info not implemented\n");
46 int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
48 printf ("write_buff not implemented\n");
49 return (-1);