From: Guillaume Dargaud <dargaud@lpsc.in2p3.fr>
To: linuxppc-dev@lists.ozlabs.org
Subject: Telling the kernel about a Flash SPI...
Date: Thu, 24 Nov 2011 16:41:15 +0100 [thread overview]
Message-ID: <201111241641.15470.dargaud@lpsc.in2p3.fr> (raw)
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/
reply other threads:[~2011-11-24 16:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201111241641.15470.dargaud@lpsc.in2p3.fr \
--to=dargaud@lpsc.in2p3.fr \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox