]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/spd8xx/flash.c
Merge git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / board / spd8xx / flash.c
1 /*
2  * (C) Copyright 2000
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <mpc8xx.h>
10
11 flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
12
13 /*-----------------------------------------------------------------------
14  */
15
16 unsigned long flash_init (void)
17 {
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. */
22
23         return (1024 * 1024); /* 1 MB */
24 }
25
26 /*-----------------------------------------------------------------------
27  */
28
29 void flash_print_info (flash_info_t *info)
30 {
31         printf("no FLASH memory in MPC823TS board\n");
32         return;
33 }
34
35 int flash_erase (flash_info_t *info, int s_first, int s_last)
36 {
37         return 1;
38 }
39
40 /*-----------------------------------------------------------------------
41  */