2009/9/18 g r1x <gr1xmail@gmail.com>
I'm working on a 440GX demo board with a flash chip s29gl256p(128k sector size, 32M total, CFI). I have tried 2 ways to add mtd partiton to the kernel, but failed with kernel panic. (kernel version: 2.6.26.5)
 S29GL256p is pin strapped as a 16bit width
so in dts, I wrote:
bank-width = <2>;
device-width = <1>;

In OF driver:
#define CFG_FLASH_BUS_WIDTH     2
struct map_info s29gl_map = {
        .name = "Nor Flash on Cerberus",
        .size = CFG_FLASH_SIZE,
        .bankwidth = CFG_FLASH_BUS_WIDTH,
};