]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/spd8xx/flash.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / spd8xx / flash.c
CommitLineData
affae2bf
WD
1/*
2 * (C) Copyright 2000
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
affae2bf
WD
6 */
7
8#include <common.h>
9#include <mpc8xx.h>
10
6d0f6bcf 11flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
affae2bf
WD
12
13/*-----------------------------------------------------------------------
14 */
15
16unsigned 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
29void flash_print_info (flash_info_t *info)
30{
31 printf("no FLASH memory in MPC823TS board\n");
32 return;
33}
34
35int flash_erase (flash_info_t *info, int s_first, int s_last)
36{
37 return 1;
38}
39
40/*-----------------------------------------------------------------------
41 */