wdenk | affae2b | 2002-08-17 09:36:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | affae2b | 2002-08-17 09:36:01 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <mpc8xx.h> |
| 10 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 11 | flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; |
wdenk | affae2b | 2002-08-17 09:36:01 +0000 | [diff] [blame] | 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 | */ |