Skip to contentSkip to conversation

Duplicate nand device entries

Qemu-devel Blue Swirl 2 participants 2 messages Jun 9, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Hi,

Sparse gives this warning:
/src/qemu/hw/nand.c:129:6: warning: Initializer entry defined twice
/src/qemu/hw/nand.c:150:6: also defined here

The offending lines are:

    [0x39] = { 8,	8,	9, 4, 0 },
    [0x39] = { 128,	8,	9, 5, 0 },

The file refers to Linux:
/* Information based on Linux drivers/mtd/nand/nand_ids.c */

But the same problem exists on Linux:

	{"NAND 8MiB 1,8V 8-bit", 	0x39, 512, 8, 0x2000, 0},
	{"NAND 128MiB 1,8V 8-bit", 	0x39, 512, 128, 0x4000, 0},

What should be the correct entry?

#1 lore raw
Quoted 8 lines · Blue Swirl

The file refers to Linux:
/* Information based on Linux drivers/mtd/nand/nand_ids.c */

But the same problem exists on Linux:

	{"NAND 8MiB 1,8V 8-bit", 	0x39, 512, 8, 0x2000, 0},
	{"NAND 128MiB 1,8V 8-bit", 	0x39, 512, 128, 0x4000, 0},

What should be the correct entry?

My googling points at the K9F6408Q0C, which is a 1.8V 8M x 8-bit chip with blocks of 8K.

Cheers,

Signature · 1 line
Stuart Brady