public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Does DiskonChip work on IDT RC32334 CPU(MIPS)?
@ 2001-10-22 11:02 張佑任(You-Jen Chang)
  2001-10-22 11:06 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: 張佑任(You-Jen Chang) @ 2001-10-22 11:02 UTC (permalink / raw)
  To: linux-mtd

Dear all:

My embedded linux system is MIPS(IDT RC32334 RISC CPU).
The BIOS can detect DiskOnChip at 0xB2000000 address.

How do I setup the physical address of DiskOnChip for 
Memory Technology Device Subsystem in Linux ? 
Is the address same as 0xB2000000?
 
You-Jen Chang
Software Engineer
Software Dept.
UAT
TEL:886-2-87978488 ext:638
Email: changyj@uat.com.tw

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

* Re: Does DiskonChip work on IDT RC32334 CPU(MIPS)?
  2001-10-22 11:02 Does DiskonChip work on IDT RC32334 CPU(MIPS)? 張佑任(You-Jen Chang)
@ 2001-10-22 11:06 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-10-22 11:06 UTC (permalink / raw)
  To: 張佑任(You-Jen Chang); +Cc: linux-mtd

changyj@uat.com.tw said:
>  My embedded linux system is MIPS(IDT RC32334 RISC CPU). The BIOS can
> detect DiskOnChip at 0xB2000000 address.

> How do I setup the physical address of DiskOnChip for  Memory
> Technology Device Subsystem in Linux ?  Is the address same as
> 0xB2000000?

It works on the Momenco Ocelot MIPS board - all the endianness funnies have 
been worked out. Check that 0xb2000000 is a _physical_ address, not a 
virtual address - it looks suspicious for a MIPS system, where normally 
only addresses under 0x20000000 are easily accessible. 

Also check how the DiskOnChip is wired up - whether its registers are 1 
byte, 2 bytes or 4 bytes apart as the CPU sees them. Look at the various 
forms of the ReadDOC_() and WriteDOC_() macros in include/linux/mtd/doc2000.h
and pick the correct one (or experiment).

Make sure the bus controller is set up properly for the wiring of the 
DiskOnChip too - for the Ocelot, we had to do that ourself, because the 
boot loader didn't (see the last two lines of momenco_ocelot_setup() in 
arch/mips/gt64120/momenco_ocelot/setup.c) 


--
dwmw2

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

end of thread, other threads:[~2001-10-22 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-22 11:02 Does DiskonChip work on IDT RC32334 CPU(MIPS)? 張佑任(You-Jen Chang)
2001-10-22 11:06 ` David Woodhouse

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