public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* CONFIG_MTD_PHYSMAP_START
@ 2005-02-02 21:49 Alex
  2005-02-02 22:14 ` CONFIG_MTD_PHYSMAP_START Thomas Gleixner
  0 siblings, 1 reply; 5+ messages in thread
From: Alex @ 2005-02-02 21:49 UTC (permalink / raw)
  To: linux-mtd; +Cc: tglx


As a reference I am supplying relevant
 content of my .config file 
- could someone please pinpoint to me
 what options need to be changed 
or invoked to correct my current problem
(driver interprets 0x04000000 as RAM address for 32Mb DRAM,
with highest address being 0x02000000).

Thanks,
***************************
...
#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=y
CONFIG_MTD_DEBUG=y
CONFIG_MTD_DEBUG_VERBOSE=3
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_CONCAT is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
CONFIG_MTD_CFI_AMDSTD_RETRY=0
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x04000801
CONFIG_MTD_PHYSMAP_LEN=0x400000
CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_RPXLITE is not set
# CONFIG_MTD_CFI_FLAGADM is not set

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set

#
# NAND Flash Device Drivers
#
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_VERIFY_WRITE is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
                                                              

___________________________________________________________________
Speed up your surfing with Juno SpeedBand.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.juno.com/surf to sign up today!

^ permalink raw reply	[flat|nested] 5+ messages in thread
* CONFIG_MTD_PHYSMAP_START
@ 2005-02-02 19:49 Alex
  2005-02-02 22:09 ` CONFIG_MTD_PHYSMAP_START Thomas Gleixner
  0 siblings, 1 reply; 5+ messages in thread
From: Alex @ 2005-02-02 19:49 UTC (permalink / raw)
  To: tglx; +Cc: linux-mtd


Also (in addition to my previous post, where I am questioning the correctness of the output, stating that address belongs to RAM while it clearly does not !), Thomas wrote:

>> The initial boot provides the following:
>> Memory map:
>> /* Chip Select FLASH Normal */
>> #define BR0_VAL 0x04000801 /* Offset=0x04000000 PS=16 GPCM Valid=1 */
>> #define OR0_VAL     0xFFC00160  /* OK */

>The value you are using is the value, which is programmed into the BR0
>register of the CPU. 
>BRx = Bank Register for chipselect x
>ORx = Option Register for chipselect x
>The values in those registers define the start address, buswitdh, size,
>timings for the chipselects. So using those values is definitely not a
>good idea. Of course you can decode the values in the registers to get
>your real address values. 

- it looks that I am in the "chicken" and the "egg" problem ...
According to Thomas (see above), I can not rely on the flash phys start address, given to me "verbotum" - so I can not set the value in .config 
for CONFIG_MTD_PHYSMAP_START ... 
Thomas - in what software you advise me to "decode the values in the registers to get real address values" ? 

Thanks,
Best Regards,
Alex


___________________________________________________________________
Speed up your surfing with Juno SpeedBand.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.juno.com/surf to sign up today!

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

end of thread, other threads:[~2005-02-02 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 21:49 CONFIG_MTD_PHYSMAP_START Alex
2005-02-02 22:14 ` CONFIG_MTD_PHYSMAP_START Thomas Gleixner
2005-02-02 22:20   ` CONFIG_MTD_PHYSMAP_START David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2005-02-02 19:49 CONFIG_MTD_PHYSMAP_START Alex
2005-02-02 22:09 ` CONFIG_MTD_PHYSMAP_START Thomas Gleixner

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