s3c2451 registers to configure HSSPI(SPI Channel 0)?

Rofique Anowar
I have implemented read/write SPI flash memory for s3c2440 Microcontroller.
All register setting are done properly and flash memory read/write
functionality working perfectly.

//Enable clock control register CLKCON 18 Bit enables SPI  
CLKCON |= (0x01 << 18);//0x40000;  
printk("s3c2440_clkcon=%08ld\n",CLKCON);
//Enable GPG2 Corresponding NSS port
GPGCON =0x1011;//010000 00 01 00 01
printk("s3c2440_GPGCON=%08ld\n",GPGCON);
SPNSS0_ENABLE(); 
//Enable GPE 11,12,13,Corresponding MISO0,MOSI0,SCK0 = 11 0x0000FC00
GPECON &= ~((3 << 22) | (3 << 24) | (3 << 26));  
GPECON |=  ((2 << 22) | (2 << 24) | (2 << 26));  
//GPEUP Set; all disable  
GPGUP &= ~(0x07 << 2);    
GPEUP |=  (0x07 << 11);
//SPI Register section
//SPI Prescaler register settings,  
//Baud Rate=PCLK/2/(Prescaler value+1)  
SPPRE0 = 0x18;       //freq = 1M 
printk("SPPRE0=%02X\n",SPPRE0);  

//polling,en-sck,master,low,format A,nomal = 0 | TAGD = 1  
SPCON0 = (0<<5)|(1<<4)|(1<<3)|(0<<2)|(0<<1)|(0<<0);  
printk("SPCON1=%02ld\n",SPCON0);  

//Multi-host error detection is enabled 
SPPIN0 = (0 << 2) | (1 << 1) | (0 << 0);  
printk("SPPIN1=%02X\n",SPPIN0);  

//Initialization procedure
SPTDAT0 = 0xff;


Now, I want to do the same thing with "S3C2451 16/32-Bit RISC
Microprocessor" Then what will be the register configuration for "S3C2451"
to achieve the same?

I have studied and compared both the datasheet "S3C2440A" and "S3C2451" and
found that so many register are different. I have also notice that in
datasheet says "S3C2440A" is "32-BIT CMOS MICROCONTROLLER" and "S3C2451 "
is "16/32-Bit RISC Microprocessor". So, Is it not the same architecture
wise?

So, please guide me to achieve the same.

davef
The S3C2440 is armv4t.  I would suggest trying to find the corresponding
info for the S3C2451.

Rofique Anowar
Hi davef,
   Thanks for your reply. Actually I need the SPI configuration register.I
got a link of nearly similar code of s3c6410. But at a glance I am not able
to understand what will be the minimum register configuration for
configuring SPI channel 0 with 5 MHz clock output.

http://read.pudn.com/downloads131/sourcecode/embed/558985/Components/con...

I want to configure it for s3c2451 Processor. Please guide me .....

Thanks in advance.

Rofique Anowar
Hi, Any one have worked on s3c2451 SPI0?