[U-Boot-Users] Configuring Spansion flash

Yasothabalan Ramaswamy-TLS,Chennai yasothabalanr at hcl.in
Fri Sep 14 17:12:51 CEST 2007


So how shall I proceed next Ben.
Where and in which file this configuration is done?

Whenever I trace out which flash is detected, it always gets detects as
FLASH_UNKNOWN.

In flash.c file....

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ulong flash_get_size (FPWV *addr, flash_info_t *info)
{
	int i;
	FPWV* addr2;

	/* Write auto select command: read Manufacturer ID */
	/* Write auto select command sequence and test FLASH answer */
	addr[FLASH_CYCLE1] = (FPW)0x00AA00AA;	/* for AMD, Intel
ignores this */
	addr[FLASH_CYCLE2] = (FPW)0x00550055;	/* for AMD, Intel
ignores this */
	addr[FLASH_CYCLE1] = (FPW)0x00900090;	/* selects Intel or AMD
*/

	/* The manufacturer codes are only 1 byte, so just use 1 byte.
	 * This works for any bus width and any FLASH device width.
	 */
	udelay(100);
	switch (addr[0] & 0xff) {

	case (uchar)AMD_MANUFACT:
		info->flash_id = FLASH_MAN_AMD;
		break;

	case (uchar)INTEL_MANUFACT:
		info->flash_id = FLASH_MAN_INTEL;
		break;

	default:
		info->flash_id = FLASH_UNKNOWN;
		info->sector_count = 0;
		info->size = 0;
		break;
	}

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Regards,
Yasotha Balan R
Member Technical Staff - HPEG
HCL Technologies Ltd.
73,74, South Phase Road, Ambattur Indutrial Estate, Chennai 600058.
Tel: +91-044-43935000 Extn. (5076)
Mob: +91-9994309885
www.hcltech.com
www.hcl.in

 

-----Original Message-----
From: Ben Warren [mailto:bwarren at qstreams.com] 
Sent: Friday, September 14, 2007 8:31 PM
To: Yasothabalan Ramaswamy-TLS,Chennai
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Configuring Spansion flash

Yasothabalan Ramaswamy-TLS,Chennai wrote:
> Thanks Ben.
>  
> I checked out in my board and found the part number to be: 
>
> S29GL128N90-R2. (128Mb)
>
>   
OK. That's a good start. This is a very common flash type.
> Regards,
> Yasotha Balan R
>  
> -----Original Message-----
> From: Ben Warren [mailto:bwarren at qstreams.com] 
> Sent: Friday, September 14, 2007 7:54 PM
> To: Yasothabalan Ramaswamy-TLS,Chennai
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Configuring Spansion flash
>
> Yasothabalan Ramaswamy-TLS,Chennai wrote:
>   
>> Hi all,
>>
>> I am using Lite5200B board with SPANSION type flash. UBoot code 
>> doesn't detect this flash.
>>
>>     
I don't know anything about this board or processor, but there are 
people here who do. Please elaborate on what you mean by 'U-boot code 
doesn't detect this flash', and provide details on the steps you've 
taken to reach this conclusion.

Also, please don't top-post. Post responses directly after the relevant 
parts of e-mail messages. The previously-mentioned curmudgeons will eat 
your children if you continue this habit.

regards,
Ben

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------




More information about the U-Boot mailing list