Thread (2 messages) 2 messages, 1 author, 2009-09-18

Re: Powerpc Kernel 2.6.26.5 boot panic when call cfi_probe_chip()

From: g r1x <hidden>
Date: 2009-09-18 16:29:43

2009/9/18 g r1x [off-list ref]
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,
};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help