public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] MAPPING MEMORY
@ 2006-03-17 10:44 Marco_Ivano
  2006-03-17 11:13 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Marco_Ivano @ 2006-03-17 10:44 UTC (permalink / raw)
  To: u-boot

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 */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] MAPPING MEMORY
  2006-03-17 10:44 [U-Boot-Users] MAPPING MEMORY Marco_Ivano
@ 2006-03-17 11:13 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-03-17 11:13 UTC (permalink / raw)
  To: u-boot

In message <e24335010603170244m5767bbcfl@mail.gmail.com> you wrote:
> 
> 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.

I can tell you that these aree the physical addresses and size of the
SDRMA and flash memory, respective - but I *strongly* recommend  that
you  start reading the code. Using "grep" quickly reveals where these
definitions are used and what they do.

Learn to use the tools, or you will have to ask again and  again  and
again.

> 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.

Read the code.

> 3 How can i setting the size of flash page ?

Read the code.

> 4 How can i know the compatibility my flash with other flash?

Read the chip manufacturer's data sheet.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The price of curiosity is a terminal experience.
                         - Terry Pratchett, _The Dark Side of the Sun_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-17 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-17 10:44 [U-Boot-Users] MAPPING MEMORY Marco_Ivano
2006-03-17 11:13 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox