-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current ndfc driver only compiles under arch/ppc. This arch was removed from the kernel. I notice the event entry for the ndfc in Kconfig has been removed in 2.6.28. This patch converts the ndfc to a proper OF (OpenFirmware) driver. I can give a working example of the DTS if needed. The patch has been in production use on the PIKA Warp Appliance and is in use by others. The Warp basically boots from NAND, so the ndfc driver is very important to us. Signed-off-by: Sean MacLennan <smaclennan@pikatech.com> Acked-By: Josh Boyer <jwboyer@linux.vnet.ibm.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
Sean MacLennan
authored and
David Woodhouse
committed
Jan 5, 2009
1 parent
647b0d3
commit a808ad3
Showing
3 changed files
with
179 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
AMCC NDFC (NanD Flash Controller) | ||
|
||
Required properties: | ||
- compatible : "ibm,ndfc". | ||
- reg : should specify chip select and size used for the chip (0x2000). | ||
|
||
Optional properties: | ||
- ccr : NDFC config and control register value (default 0). | ||
- bank-settings : NDFC bank configuration register value (default 0). | ||
|
||
Notes: | ||
- partition(s) - follows the OF MTD standard for partitions | ||
|
||
Example: | ||
|
||
ndfc@1,0 { | ||
compatible = "ibm,ndfc"; | ||
reg = <0x00000001 0x00000000 0x00002000>; | ||
ccr = <0x00001000>; | ||
bank-settings = <0x80002222>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
nand { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "kernel"; | ||
reg = <0x00000000 0x00200000>; | ||
}; | ||
partition@200000 { | ||
label = "root"; | ||
reg = <0x00200000 0x03E00000>; | ||
}; | ||
}; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.