Merge branch 'next'
[u-boot/qq2440-u-boot.git] / board / spd8xx / flash.c
blob4a332e037ba27603ca92c1aad29931a0bd60317d
1 /*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * SPDX-License-Identifier: GPL-2.0+
6 */
8 #include <common.h>
9 #include <mpc8xx.h>
11 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
13 /*-----------------------------------------------------------------------
16 unsigned long flash_init (void)
18 /* All Speech Design board memory (DRAM and EPROM) initialisation is
19 done in dram_init().
20 The caller of ths function here expects the total size and will hang,
21 if we give here back 0. So we return the EPROM size. */
23 return (1024 * 1024); /* 1 MB */
26 /*-----------------------------------------------------------------------
29 void flash_print_info (flash_info_t *info)
31 printf("no FLASH memory in MPC823TS board\n");
32 return;
35 int flash_erase (flash_info_t *info, int s_first, int s_last)
37 return 1;
40 /*-----------------------------------------------------------------------