* [U-Boot-Users] " Configuring Flash on PPC405ep board"
@ 2005-09-23 10:09 nreddy at netenrich.com
2005-09-23 10:39 ` Bharathi Subramanian
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: nreddy at netenrich.com @ 2005-09-23 10:09 UTC (permalink / raw)
To: u-boot
Hi All,
I need to know how to configure 8MB Flash on PPC405ep board.
I already have 4MB flash on PPC405ep board working fine .
I am using u-boot as my bootloader.
Can anybody tell me what are the registers to be configured at Processor
side(i am new to this register settings) or memory controller side.
Please tell me the steps that i need to follow to write my own dirver(i
may take existing driver as reference).
Thanks in Advance,
--Nagi
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] " Configuring Flash on PPC405ep board"
2005-09-23 10:09 [U-Boot-Users] " Configuring Flash on PPC405ep board" nreddy at netenrich.com
@ 2005-09-23 10:39 ` Bharathi Subramanian
2005-09-23 10:42 ` Stefan Roese
2005-09-23 15:25 ` [U-Boot-Users] " Configuring Flash on PPC405ep board" Matthias Fuchs
2 siblings, 0 replies; 5+ messages in thread
From: Bharathi Subramanian @ 2005-09-23 10:39 UTC (permalink / raw)
To: u-boot
On Fri, 23 Sep 2005 nreddy at netenrich.com wrote:
> I need to know how to configure 8MB Flash on PPC405ep board.
To detect the new flash, You have add the Manufacture and Device ID
(check the data sheet) of the new flash in the following function:
File : ./board/bubinga405ep/flash.c
Func : flash_get_size()
Bye :)
--
Bharathi S
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] " Configuring Flash on PPC405ep board"
2005-09-23 10:09 [U-Boot-Users] " Configuring Flash on PPC405ep board" nreddy at netenrich.com
2005-09-23 10:39 ` Bharathi Subramanian
@ 2005-09-23 10:42 ` Stefan Roese
2005-09-23 11:37 ` [U-Boot-Users] ' Configuring Flash on PPC405ep board' nreddy at netenrich.com
2005-09-23 15:25 ` [U-Boot-Users] " Configuring Flash on PPC405ep board" Matthias Fuchs
2 siblings, 1 reply; 5+ messages in thread
From: Stefan Roese @ 2005-09-23 10:42 UTC (permalink / raw)
To: u-boot
Hi Nagi,
On Friday 23 September 2005 12:09, nreddy at netenrich.com wrote:
> I need to know how to configure 8MB Flash on PPC405ep board.
> I already have 4MB flash on PPC405ep board working fine .
> I am using u-boot as my bootloader.
That's good. If not, your mail would be pretty wrong here in this list! ;-)
> Can anybody tell me what are the registers to be configured at Processor
> side(i am new to this register settings) or memory controller side.
If you are lucky, you "only" have to change the EBC (external bus controller)
setup for the corresponding CS (chip select). Please see e.g. below some
lines from the bubinga (AMCC 405EP eval board) config file
(include/configs/bubinga.h):
/* Memory Bank 0 (Flash/SRAM) initialization
*/
#define CFG_EBC_PB0AP 0x04006000
#define CFG_EBC_PB0CR 0xFFF18000 /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit
*/
To change the size of this CS0 setup, you need to change the BAS field and the
BS field. E.g. to something like this:
#define CFG_EBC_PB0CR 0xFF8E8000 /* BAS=0xFF8,BS=8MB,BU=R/W,BW=8bit
But I would suggest that you take a look at the 405EP user's manual to check
yourself. It's not that complicated.
Now you (hopefully) have the CS setup correctly, but you also have to
configure/change your flash driver to support this new flash. Do you use the
common CFI driver? Or a board specific version?
> Please tell me the steps that i need to follow to write my own dirver(i
> may take existing driver as reference).
Best regards,
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] ' Configuring Flash on PPC405ep board'
2005-09-23 10:42 ` Stefan Roese
@ 2005-09-23 11:37 ` nreddy at netenrich.com
0 siblings, 0 replies; 5+ messages in thread
From: nreddy at netenrich.com @ 2005-09-23 11:37 UTC (permalink / raw)
To: u-boot
Hi Stefan,
Thanks for your suggestion.
I enabled 8MB flash on my board.
It started working now.
Still i need to check thoroughly.
I have taken reference driver from /board/walnut405 .
Thanks once again.
Thanks,
--Nagi
> Hi Nagi,
>
> On Friday 23 September 2005 12:09, nreddy at netenrich.com wrote:
>> I need to know how to configure 8MB Flash on PPC405ep board.
>> I already have 4MB flash on PPC405ep board working fine .
>> I am using u-boot as my bootloader.
>
> That's good. If not, your mail would be pretty wrong here in this list!
> ;-)
>
>> Can anybody tell me what are the registers to be configured at Processor
>> side(i am new to this register settings) or memory controller side.
>
> If you are lucky, you "only" have to change the EBC (external bus
> controller)
> setup for the corresponding CS (chip select). Please see e.g. below some
> lines from the bubinga (AMCC 405EP eval board) config file
> (include/configs/bubinga.h):
>
> /* Memory Bank 0 (Flash/SRAM) initialization
> */
> #define CFG_EBC_PB0AP 0x04006000
> #define CFG_EBC_PB0CR 0xFFF18000 /*
> BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit
> */
>
> To change the size of this CS0 setup, you need to change the BAS field and
> the
> BS field. E.g. to something like this:
>
> #define CFG_EBC_PB0CR 0xFF8E8000 /*
> BAS=0xFF8,BS=8MB,BU=R/W,BW=8bit
>
> But I would suggest that you take a look at the 405EP user's manual to
> check
> yourself. It's not that complicated.
>
> Now you (hopefully) have the CS setup correctly, but you also have to
> configure/change your flash driver to support this new flash. Do you use
> the
> common CFI driver? Or a board specific version?
>
>> Please tell me the steps that i need to follow to write my own dirver(i
>> may take existing driver as reference).
>
> Best regards,
> Stefan
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] " Configuring Flash on PPC405ep board"
2005-09-23 10:09 [U-Boot-Users] " Configuring Flash on PPC405ep board" nreddy at netenrich.com
2005-09-23 10:39 ` Bharathi Subramanian
2005-09-23 10:42 ` Stefan Roese
@ 2005-09-23 15:25 ` Matthias Fuchs
2 siblings, 0 replies; 5+ messages in thread
From: Matthias Fuchs @ 2005-09-23 15:25 UTC (permalink / raw)
To: u-boot
Hi Nagi,
> I need to know how to configure 8MB Flash on PPC405ep board.
> I already have 4MB flash on PPC405ep board working fine .
take a look at the VOM405 board. It's a 405EP board with 8MB NOR-Flash.
Regards
Matthias
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-23 15:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-23 10:09 [U-Boot-Users] " Configuring Flash on PPC405ep board" nreddy at netenrich.com
2005-09-23 10:39 ` Bharathi Subramanian
2005-09-23 10:42 ` Stefan Roese
2005-09-23 11:37 ` [U-Boot-Users] ' Configuring Flash on PPC405ep board' nreddy at netenrich.com
2005-09-23 15:25 ` [U-Boot-Users] " Configuring Flash on PPC405ep board" Matthias Fuchs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox