From: Alemao <xcarandiru@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: MTD map drivers (FSL UPM NAND)
Date: Thu, 9 Oct 2008 18:04:25 -0300 [thread overview]
Message-ID: <d970ff420810091404j49492e80xcd9250d0ffdcd592@mail.gmail.com> (raw)
Hi all,
Im trying to use a physmap driver for NOR and NAND flash devices.
With NOR, everything ok. It uses CFI driver.
The problem is with NAND, cause it is connected at Freescale
LocalBus UPM, and at a first look, the UPM driver is loading after the
physmap (lines 14-15 in kernel output)
Here some outputs from the board:
Bootloader (U-Boot 1.2.0):
CPU: e300c1, MPC8360E, Rev: 21 at 499.999 MHz, CSB: 333 MHz
Board: MPC8360KTX
I2C: ready
DDR RAM: 128 MB
FLASH: 16 MB
NAND: 64 MiB
In: serial
Out: serial
Err: serial
Kernel (linux-2.6.17):
1 physmap nor flash device: 1000000 at ff000000
2 NOR flash: Found 1 x16 devices at 0x0 in 16-bit bank
3 Amd/Fujitsu Extended Query Table at 0x0040
4 number of CFI chips: 1
5 Using physmap partition definition
6 Creating 6 MTD partitions on "NOR flash":
7 0x00000000-0x00040000 : "u-boot"
8 0x00040000-0x00060000 : "env."
9 0x00060000-0x00080000 : "sys"
10 0x00080000-0x000c0000 : "logs"
11 0x000c0000-0x00860000 : "admin"
12 0x00860000-0x01000000 : "users"
13
14 physmap nand flash device: 4000000 at 60000000
15 UPM: User-Programmable Machine NAND driver
Device Tree Source:
localbus@e0005000 {
compatible = "fsl,board-localbus";
#address-cells = <2>;
#size-cells = <1>;
reg = <e0005000 d8>; // BRx, ORx, etc
ranges = <0 0 ff000000 1000000 // nor flash, 16 MB
1 0 60000000 4000000>; // nand flash, 64 MB
flash@0,0 {
compatible = "atmel,29LV256", "cfi-flash";
reg = <0 0 1000000>;
bank-width = <2>;
device-width = <1>;
};
nand@1,0 {
compatible = "stmicro,NAND512W3A", "fsl,upm-nand";
reg = <1 0 4000000>; //reg = <1 0 1>;
width = <1>;
upm = "A";
upm-addr-offset = <16>;
upm-cmd-offset = <8>;
gpios = <4 18>;
gpio-parent = <&qe_pio>;
wait-pattern;
wait-write;
};
};
The CFI driver is at linux/drivers/mtd/chips
The UPM driver is at linux/drivers/mtd/nand
So, how can I load the UPM driver before physmap?
Thanks in advance,
--
Alemao
next reply other threads:[~2008-10-09 21:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 21:04 Alemao [this message]
2008-10-09 21:17 ` MTD map drivers (FSL UPM NAND) Scott Wood
2008-10-10 12:58 ` Alemao
2008-10-10 15:44 ` Scott Wood
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=d970ff420810091404j49492e80xcd9250d0ffdcd592@mail.gmail.com \
--to=xcarandiru@gmail.com \
--cc=linuxppc-embedded@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;
as well as URLs for NNTP newsgroup(s).