From: Marco_Ivano <debugs3c@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] MAPPING MEMORY
Date: Fri, 17 Mar 2006 11:44:21 +0100 [thread overview]
Message-ID: <e24335010603170244m5767bbcfl@mail.gmail.com> (raw)
Hi all,
i have a board based on s3c2410 processor with k9f2808uoc samsung
flash (128 Mbit) and 2 banks of samsung ram code k4s283233f in total
(128 Mbitx2). I try to modify the source code of board SMDK2410 but i
have same problems:
1 the memory map is in the file /include/configs/smdk2410 (i have use
readme file for all operation) but i don't understud the means of some
variables that i report in the code below. In particular i don't means
what rappresents the PHYS_SDRAM and PHYS_FLASH and PHYS_FLASH_SIZE.
2 I have do some modify in this source code : i have insert 2 banks of
sdram but i don't know how modify the value of the PHYS variable.
3 How can i setting the size of flash page ?
4 How can i know the compatibility my flash with other flash?
Thanks
Marco
/*-----------------------------------------------------------------------
* Physical Memory Map
*/
#define CONFIG_NR_DRAM_BANKS 2 /* we have 1 bank of DRAM */
#define PHYS_SDRAM_1 0x30000000 /* SDRAM Bank #1 */
#define PHYS_SDRAM_1_SIZE 0x02000000 /* 16 MB */
#define PHYS_SDRAM_2 0x30000000 /* SDRAM Bank #2 */
#define PHYS_SDRAM_2_SIZE 0x02000000 /* 16 MB */
#define PHYS_FLASH_1 0x00000000 /* Flash Bank #1 */
#define CFG_FLASH_BASE PHYS_FLASH_1
/*-----------------------------------------------------------------------
* FLASH and environment organization
*/
#define CONFIG_AMD_LV400 1 /* uncomment this if you have a LV400 flash */
#if 0
#define CONFIG_AMD_LV800 1 /* uncomment this if you have a LV800 flash */
#endif
#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
#ifdef CONFIG_AMD_LV800
#define PHYS_FLASH_SIZE 0x00100000 /* 1MB */
#define CFG_MAX_FLASH_SECT (19) /* max number of sectors on one chip */
#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x0F0000) /* addr of environment */
#endif
#ifdef CONFIG_AMD_LV400
#define PHYS_FLASH_SIZE 0x00080000 /* 512KB */
#define CFG_MAX_FLASH_SECT (11) /* max number of sectors on one chip */
#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x070000) /* addr of environment */
#endif
/* timeout values are in ticks */
#define CFG_FLASH_ERASE_TOUT (5*CFG_HZ) /* Timeout for Flash Erase */
#define CFG_FLASH_WRITE_TOUT (5*CFG_HZ) /* Timeout for Flash Write */
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */
#endif /* __CONFIG_H */
next reply other threads:[~2006-03-17 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 10:44 Marco_Ivano [this message]
2006-03-17 11:13 ` [U-Boot-Users] MAPPING MEMORY Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e24335010603170244m5767bbcfl@mail.gmail.com \
--to=debugs3c@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.