Re: [U-Boot-Users] [DNX#2006072842000097] [PATCH 05/08]: mpc7448hpc2 board flash support

Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006072842000097] was created:
<snip>
Mpc7448hpc2 board flash driver support.
Signed-off-by: Alexandre Bounine alexandreb@tundra.com Signed-off-by: Roy Zang tie-fei.zang@freescale.com
board/mpc7448hpc2/cfi_flash.c | 1273 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1273 insertions(+), 0 deletions(-)
diff --git a/board/mpc7448hpc2/cfi_flash.c b/board/mpc7448hpc2/cfi_flash.c new file mode 100644 index 0000000..c901abf --- /dev/null +++ b/board/mpc7448hpc2/cfi_flash.c @@ -0,0 +1,1273 @@ +/*
- (C) Copyright 2002-2004
- Brad Kemp, Seranoa Networks, Brad.Kemp@seranoa.com
- Copyright (C) 2003 Arabella Software Ltd.
- Yuli Barcohen yuli@arabellasw.com
- Modified to work with AMD flashes
- Copyright (C) 2004
- Ed Okerson
- Modified to work with little-endian systems.
- See file CREDITS for list of people who contributed to this
- project.
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of
- the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- MA 02111-1307 USA
- History
- 01/20/2004 - combined variants of original driver.
- 01/22/2004 - Write performance enhancements for parallel chips
(Tolunay)
- 01/23/2004 - Support for x8/x16 chips (Rune Raknerud)
- 01/27/2004 - Little endian support Ed Okerson
- Tested Architectures
- Port Width Chip Width # of banks Flash Chip Board
- 32 16 1 28F128J3 seranoa/eagle
- 64 16 1 28F128J3 seranoa/falcon
- */
+/* The DEBUG define must be before common to enable debugging */ +/* #define DEBUG */
+#include <common.h> +#include <asm/processor.h> +#include <asm/byteorder.h> +#include <linux/byteorder/swab.h> +#ifdef CFG_HPC2_FLASH_CFI_DRIVER
+/*
- This file implements a Common Flash Interface (CFI) driver for
U-Boot.
- The width of the port and the width of the chips are determined at
initialization.
- These widths are used to calculate the address for access CFI data
structures.
- It has been tested on an Intel Strataflash implementation and AMD
29F016D.
- References
- JEDEC Standard JESD68 - Common Flash Interface (CFI)
- JEDEC Standard JEP137-A Common Flash Interface (CFI) ID Codes
- Intel Application Note 646 Common Flash Interface (CFI) and Command
Sets
- Intel 290667-008 3 Volt Intel StrataFlash Memory datasheet
- TODO
- Use Primary Extended Query table (PRI) and Alternate Algorithm Query
- Table (ALT) to determine if protection is available
- Add support for other command sets Use the PRI and ALT to determine
command set
- Verify erase and program timeouts.
- */
+#ifndef CFG_FLASH_BANKS_LIST +#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE } +#endif
</snip>
Your U-Boot support team
participants (1)
-
DENX Support System