[PATCH] ndfc driver

Sean MacLennan smaclennan at pikatech.com
Tue Dec 9 13:45:12 EST 2008


On Tue, 9 Dec 2008 05:11:15 +0300
"Anton Vorontsov" <avorontsov at ru.mvista.com> wrote:

> So this is a controller with partitions? ;-)

Actually, I did it this way to mimic the look of the NOR. Really, we
shouldn't care about the NAND chip.

Here is the complete NOR and NAND DTS:

nor at 0,0 {
	compatible = "amd,s29gl032a", "cfi-flash";
	bank-width = <2>;
	reg = <0x00000000 0x00000000 0x00400000>;
	#address-cells = <1>;
	#size-cells = <1>;

	partition at 0 {
		label = "splash";
		reg = <0x00000000 0x00020000>;
	};
	partition at 300000 {
		label = "fpga";
		reg = <0x0300000 0x00040000>;
	};
	partition at 340000 {
		label = "env";
		reg = <0x0340000 0x00040000>;
	};
	partition at 380000 {
		label = "u-boot";
		reg = <0x0380000 0x00080000>;
	};
};

nand at 1,0 {
	compatible = "amcc,ndfc";
	reg = <0x00000001 0x00000000 0x00002000>;
	ccr = <0x00001000>;
	bank-settings = <0x80002222>;
	#address-cells = <1>;
	#size-cells = <1>;

	partition at 0 {
		label = "kernel";
		reg = <0x00000000 0x00200000>;
	};
	partition at 200000 {
		label = "root";
		reg = <0x00200000 0x03E00000>;
	};
	partition at 40000000 {
		label = "persistent";
		reg = <0x04000000 0x04000000>;
	};
	partition at 80000000 {
		label = "persistent1";
		reg = <0x08000000 0x04000000>;
	};
	partition at C0000000 {
		label = "persistent2";
		reg = <0x0C000000 0x04000000>;
	};
};

Now I know I am cheating a bit.... but it does make it *look*
consistent.

But comments are welcome. I also could remove the partitions for now. A
partially supported NDFC is better than none at all.

Cheers,
   Sean



More information about the Linuxppc-dev mailing list