difference to previous board version: - M29W128GH flash from Numonyx - SDRAM ISSI IS45S16800 (Option A2 105°C) - rev5 uses RTC RV-3029-C2 - update cs0 and cs1 baseaddr and length depending on the detected flash size. - added Werner Pfister <Pfister_Werner@intercontrol.de> as maintainer for the digsy board variants - As the M29W128GH needs a special flash_cmd_reset() document that in the new file doc/README.cfi. - move "#endif /* CONFIG_CMD_IDE */" to the right place - remove LOWBOOT config option for digsy_mtc and digsy_mtc_rev5 boards - change doc/README.cfi as Stefan Roese suggested Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Detlev Zundel <dzu@denx.de> cc: Wolfgang Denk <hs@denx.de> cc: Stefan Roese <sr@denx.de> cc: Werner Pfister <Pfister_Werner@intercontrol.de> cc: Detlev Zundel <dzu@denx.de>master
parent
1514579fbf
commit
466f0137e8
@ -0,0 +1,31 @@ |
||||
/*
|
||||
* (C) Copyright 2010 |
||||
* Heiko Schocher, DENX Software Engineering, hs@denx.de. |
||||
* |
||||
* based on: |
||||
* (C) Copyright 2004-2009 |
||||
* Mark Jonas, Freescale Semiconductor, mark.jonas@motorola.com. |
||||
* |
||||
* 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 |
||||
*/ |
||||
|
||||
#define SDRAM_MODE 0x00CD0000 |
||||
#define SDRAM_CONTROL 0x50470000 |
||||
#define SDRAM_CONFIG1 0xD2322900 |
||||
#define SDRAM_CONFIG2 0x8AD70000 |
@ -0,0 +1,29 @@ |
||||
The common CFI driver provides this weak default implementation for |
||||
flash_cmd_reset(): |
||||
|
||||
void __flash_cmd_reset(flash_info_t *info) |
||||
{ |
||||
/* |
||||
* We do not yet know what kind of commandset to use, so we issue |
||||
* the reset command in both Intel and AMD variants, in the hope |
||||
* that AMD flash roms ignore the Intel command. |
||||
*/ |
||||
flash_write_cmd(info, 0, 0, AMD_CMD_RESET); |
||||
flash_write_cmd(info, 0, 0, FLASH_CMD_RESET); |
||||
} |
||||
void flash_cmd_reset(flash_info_t *info) |
||||
__attribute__((weak,alias("__flash_cmd_reset"))); |
||||
|
||||
|
||||
Some flash chips seems to have trouble with this reset sequence. In this case |
||||
the board specific code can override this weak default version with a board |
||||
specific function. For example the digsy_mtc board equipped with the M29W128GH |
||||
from Numonyx needs this version to function properly: |
||||
|
||||
void flash_cmd_reset(flash_info_t *info) |
||||
{ |
||||
flash_write_cmd(info, 0, 0, AMD_CMD_RESET); |
||||
} |
||||
|
||||
see also: |
||||
http://www.mail-archive.com/u-boot@lists.denx.de/msg24368.html |
Loading…
Reference in new issue