< +             [EMAIL PROTECTED] {
< +                     compatible = "cfi-flash";
< +                     reg = <00000000 02000000>;
< +                     bank-width = <4>;
< +                     device-width = <2>;
< +                     #size-cells = <1>;
< +                     #address-cells = <1>;
< +                     [EMAIL PROTECTED] {
< +                             label = "firmware";
< +                             reg = <0 a0000>;
< +                     };
< +                     [EMAIL PROTECTED] {
< +                             label = "dtb";
< +                             reg = <a0000 20000>;
< +                     };
< +                     [EMAIL PROTECTED] {
< +                             label = "kernel";
< +                             reg = <c0000 240000>;
< +                     };
< +                     [EMAIL PROTECTED] {
< +                             label = "initrd";
< +                             reg = <300000 200000>;
< +                     };
< +                     [EMAIL PROTECTED] {
< +                             label = "small-fs";
< +                             reg = <500000 400000>;
< +                     };
< +                     [EMAIL PROTECTED] {
< +                             label = "misc";
< +                             reg = <900000 800000>;
< +                     };
< +                     [EMAIL PROTECTED] {
< +                             label = "big-fs";
< +                             reg = <1100000 f00000>;
< +                     };
< +             };
< +     };

This MTD layout only works on boards with 32 MiB (or 64 MiB) flash
memory. On TQM5200 boards with smaller Flashes (16 MiB, 8 MiB and 4 MiB) 
the MTD partition borders do not match with the physikal memory borders.
On a board with 16 MiB FLASH for example the "big-fs" _and_ the "misc"
partition could not be used. "big-fs", because the memory is too small
(which is OK) and "misc", because it overlaps 1 MiB over the physikal
flash border. So only the first 9 MiB of the flash could be used in Linux.
The remaining 7 MiB couldn't be accessed.

I would propose a Flash layout, where the (filesystem) partitions end 
on powers of two, to match the physical flash boarders:

                        [EMAIL PROTECTED] {
                                label = "firmware";
                                reg = <0 a0000>;
                        };
                        [EMAIL PROTECTED] {
                                label = "dtb";
                                reg = <a0000 20000>;
                        };
                        [EMAIL PROTECTED] {
                                label = "kernel";
                                reg = <c0000 180000>;
                        };
                        [EMAIL PROTECTED] {
                                label = "initrd";
                                reg = <240000 1c0000>;
                        };
                        [EMAIL PROTECTED] {
                                label = "small-fs";
                                reg = <400000 400000>;
                        };
                        [EMAIL PROTECTED] {
                                label = "misc";
                                reg = <800000 800000>;
                        };
                        [EMAIL PROTECTED] {
                                label = "big-fs";
                                reg = <1000000 1000000>;
                        };
                };
        };

Best Regards,
Martin Krause
-- 
View this message in context: 
http://www.nabble.com/-PATCH-00-11---POWERPC--Add-TQM5200-CM5200-Motion-PRO-board-support-tf4680980.html#a13403420
Sent from the linuxppc-dev mailing list archive at Nabble.com.

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to