All of lore.kernel.org
 help / color / mirror / Atom feed
* hard coded value for idcode field in struct cpu_table
@ 2011-03-03 13:49 Madhavi Manchala
  2011-03-05 13:50 ` Sławomir Cygan
  0 siblings, 1 reply; 5+ messages in thread
From: Madhavi Manchala @ 2011-03-03 13:49 UTC (permalink / raw)
  To: linux-arm-kernel

Dear All,

I do not understand the value of idcode field in the struct cpu_table
i.e. the value is hard coded. I did not find that value in the user
manuals also. The code is available at
linux/arch/arm/plat-s3c24xx/cpu.c file. Currently, I am implementing
code for Samsung S3C2510A processor which is not available in the
current sources. Where can I find the idcode value for Samsung
S3C2510A processor?

Any ideas will be appreciated.

Thanks and  Regards,
Madhavi M.

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

* hard coded value for idcode field in struct cpu_table
  2011-03-03 13:49 hard coded value for idcode field in struct cpu_table Madhavi Manchala
@ 2011-03-05 13:50 ` Sławomir Cygan
  2011-03-06  7:51   ` Madhavi Manchala
  0 siblings, 1 reply; 5+ messages in thread
From: Sławomir Cygan @ 2011-03-05 13:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Mar 3, 2011 at 2:49 PM, Madhavi Manchala
<madhavi.linux@gmail.com> wrote:
> Dear All,
>
> I do not understand the value of idcode field in the struct cpu_table
> i.e. the value is hard coded. I did not find that value in the user
> manuals also. The code is available at
> linux/arch/arm/plat-s3c24xx/cpu.c file. Currently, I am implementing
> code for Samsung S3C2510A processor which is not available in the
> current sources. Where can I find the idcode value for Samsung
> S3C2510A processor?
>
> Any ideas will be appreciated.
>
> Thanks and ?Regards,
> Madhavi M.
>
Hi,
This field is defined for example in this datasheed:

http://www.alldatasheet.com/datasheet-pdf/pdf/84872/SAMSUNG/S3C2410A.html

PDF page 282:

GENERAL STATUS REGISTER (GSTATUSn)
Register Address R/W Description Reset Value
GSTATUS0 0x560000AC R External pin status Undefined

>>>>>   GSTATUS1 0x560000B0 R Chip ID 0x32410000 <<<

GSTATUS2 0x560000B4 R/W Reset status 0x1
GSTATUS3 0x560000B8 R/W Infrom register 0x0
GSTATUS4 0x560000BC R/W Infrom register 0x0

This is "GSTATUS1" register initial value


I don't think that S3c25 are so similar to S3c25, so they provide
exactly the same method of chip identification.

-- 
Pozdrawiam,
S?awomir Cygan

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

* hard coded value for idcode field in struct cpu_table
  2011-03-05 13:50 ` Sławomir Cygan
@ 2011-03-06  7:51   ` Madhavi Manchala
  2011-03-06 18:49     ` Sławomir Cygan
  0 siblings, 1 reply; 5+ messages in thread
From: Madhavi Manchala @ 2011-03-06  7:51 UTC (permalink / raw)
  To: linux-arm-kernel

2011/3/5 S?awomir Cygan <slawomir.cygan@gmail.com>:
> On Thu, Mar 3, 2011 at 2:49 PM, Madhavi Manchala
> <madhavi.linux@gmail.com> wrote:
>> Dear All,
>>
>> I do not understand the value of idcode field in the struct cpu_table
>> i.e. the value is hard coded. I did not find that value in the user
>> manuals also. The code is available at
>> linux/arch/arm/plat-s3c24xx/cpu.c file. Currently, I am implementing
>> code for Samsung S3C2510A processor which is not available in the
>> current sources. Where can I find the idcode value for Samsung
>> S3C2510A processor?
>>
>> Any ideas will be appreciated.
>>
>> Thanks and ?Regards,
>> Madhavi M.
>>
> Hi,
> This field is defined for example in this datasheed:
>
> http://www.alldatasheet.com/datasheet-pdf/pdf/84872/SAMSUNG/S3C2410A.html
>
> PDF page 282:
>
> GENERAL STATUS REGISTER (GSTATUSn)
> Register Address R/W Description Reset Value
> GSTATUS0 0x560000AC R External pin status Undefined
>
>>>>>> ? GSTATUS1 0x560000B0 R Chip ID 0x32410000 <<<
>
> GSTATUS2 0x560000B4 R/W Reset status 0x1
> GSTATUS3 0x560000B8 R/W Infrom register 0x0
> GSTATUS4 0x560000BC R/W Infrom register 0x0
>
> This is "GSTATUS1" register initial value
>
>
> I don't think that S3c25 are so similar to S3c25, so they provide
> exactly the same method of chip identification.

Thank you very much Slawomir Cygan for the information. However, I did
not find any CHIP ID in the S3C2510A documentation, as you said. There
are IDs which are PCI vendor ID and device ID. I guess, this is
different from that chip ID as in case S3C2410A.

Thanks and Regards,
Madhavi M.

>
> --
> Pozdrawiam,
> S?awomir Cygan
>

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

* hard coded value for idcode field in struct cpu_table
  2011-03-06  7:51   ` Madhavi Manchala
@ 2011-03-06 18:49     ` Sławomir Cygan
  0 siblings, 0 replies; 5+ messages in thread
From: Sławomir Cygan @ 2011-03-06 18:49 UTC (permalink / raw)
  To: linux-arm-kernel

2011/3/6 Madhavi Manchala <madhavi.linux@gmail.com>:
> 2011/3/5 S?awomir Cygan <slawomir.cygan@gmail.com>:
>> On Thu, Mar 3, 2011 at 2:49 PM, Madhavi Manchala
>> <madhavi.linux@gmail.com> wrote:
>>> Dear All,
>>>
>>> I do not understand the value of idcode field in the struct cpu_table
>>> i.e. the value is hard coded. I did not find that value in the user
>>> manuals also. The code is available at
>>> linux/arch/arm/plat-s3c24xx/cpu.c file. Currently, I am implementing
>>> code for Samsung S3C2510A processor which is not available in the
>>> current sources. Where can I find the idcode value for Samsung
>>> S3C2510A processor?
>>>
>>> Any ideas will be appreciated.
>>>
>>> Thanks and ?Regards,
>>> Madhavi M.
>>>
>> Hi,
>> This field is defined for example in this datasheed:
>>
>> http://www.alldatasheet.com/datasheet-pdf/pdf/84872/SAMSUNG/S3C2410A.html
>>
>> PDF page 282:
>>
>> GENERAL STATUS REGISTER (GSTATUSn)
>> Register Address R/W Description Reset Value
>> GSTATUS0 0x560000AC R External pin status Undefined
>>
>>>>>>> ? GSTATUS1 0x560000B0 R Chip ID 0x32410000 <<<
>>
>> GSTATUS2 0x560000B4 R/W Reset status 0x1
>> GSTATUS3 0x560000B8 R/W Infrom register 0x0
>> GSTATUS4 0x560000BC R/W Infrom register 0x0
>>
>> This is "GSTATUS1" register initial value
>>
>>
>> I don't think that S3c25 are so similar to S3c25, so they provide
>> exactly the same method of chip identification.
>
> Thank you very much Slawomir Cygan for the information. However, I did
> not find any CHIP ID in the S3C2510A documentation, as you said. There
> are IDs which are PCI vendor ID and device ID. I guess, this is
> different from that chip ID as in case S3C2410A.
>
> Thanks and Regards,
> Madhavi M.
>
>>
>> --
>> Pozdrawiam,
>> S?awomir Cygan
>>
>

At first glance the datasheets are quite different, the assumption
that S3C24xx are similar to S3C25xx may not be so good.

And the second thing: You were asking about cpu identification code
snippet, which can be omitted at all at least for the beginning (we
now know which cpu model we boot, aren't we?).

-- 
Pozdrawiam,
S?awomir Cygan

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

* hard coded value for idcode field in struct cpu_table
@ 2011-03-04  8:49 Madhavi Manchala
  0 siblings, 0 replies; 5+ messages in thread
From: Madhavi Manchala @ 2011-03-04  8:49 UTC (permalink / raw)
  To: kernelnewbies

Dear All,

I do not understand the value of idcode field in the struct cpu_table
i.e. the value is hard coded. I did not find that value in the user
manuals, also. The code is available at
linux/arch/arm/plat-s3c24xx/cpu.c file. Currently, I am trying to
implement the code for Samsung S3C2510A processor which is not
available in the current sources. Where can I find the idcode value
for Samsung S3C2510A processor?

Any ideas will be appreciated.

Thanks and  Regards,
Madhavi M.

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

end of thread, other threads:[~2011-03-06 18:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-03 13:49 hard coded value for idcode field in struct cpu_table Madhavi Manchala
2011-03-05 13:50 ` Sławomir Cygan
2011-03-06  7:51   ` Madhavi Manchala
2011-03-06 18:49     ` Sławomir Cygan
2011-03-04  8:49 Madhavi Manchala

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.