* Telling the kernel about a Flash SPI...
@ 2011-11-24 15:41 Guillaume Dargaud
0 siblings, 0 replies; only message in thread
From: Guillaume Dargaud @ 2011-11-24 15:41 UTC (permalink / raw)
To: linuxppc-dev
Hello all,
I have a flash memory in a custom device and I'd like to place a standard filesystem on it, so I guess there must be a way
to tell the kernel to use it.
Here's the DTS definition:
Flash_Serie: gpio@81460000 {
compatible = "xlnx,xps-gpio-2.00.a", "xlnx,xps-gpio-1.00.a";
reg = < 0x81460000 0x10000 >;
xlnx,all-inputs = <0x0>;
xlnx,all-inputs-2 = <0x0>;
xlnx,dout-default = <0x0>;
xlnx,dout-default-2 = <0x0>;
xlnx,family = "virtex4";
xlnx,gpio-width = <0xa>;
xlnx,gpio2-width = <0x20>;
xlnx,interrupt-present = <0x1>;
xlnx,is-dual = <0x0>;
xlnx,tri-default = <0xffffffff>;
xlnx,tri-default-2 = <0xffffffff>;
} ;
The bits are addressed as such:
// Flash memory control
#define FLASH_SCK (1<<4) // Serial Clock
#define FLASH_SI (1<<3) // Data Out _to_ the flash (DO)
#define FLASH_RSTN (1<<2) // Reset
#define FLASH_WPN (1<<1) // Write Protect
#define FLASH_SO (1<<0) // Data In _from_ the flash (DI)
So how can I tell the kernel that there's a FAT32 or ext2 filesystem on it (note, I don't need it as a root/boot
filesystem) ?
Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-24 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 15:41 Telling the kernel about a Flash SPI Guillaume Dargaud
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox