Skip to contentSkip to conversation

Flash sector size

DISCUSSION Michal Simek 2 participants 2 messages Sep 10, 2009 – Nov 1, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi All,

I have just found if is possible to write to device tree any information about flash sector size.

Just for clearing we use dts/dtb for run-time qemu(cpu emulator) configuration and I would like to configure flash and sectors size based on any information from DTS.

Is it any proposed solution?

Thanks,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Michal Simek

Hi All,

I have just found if is possible to write to device tree any information about flash sector size.

Just for clearing we use dts/dtb for run-time qemu(cpu emulator) configuration and I would like to configure flash and sectors size based on any information from DTS.

Is it any proposed solution?

Sorry for the really late reply. I'm just cleaning up my mail backlog now.

Yes, there is a binding for describing flash in the device tree. See Documentation/powerpc/dts-bindings/mtd-physmap.txt for some details. NOR is well supported. NAND drivers use it, but each NAND driver may require additional properties depending on the NAND controller device driver. Flash size can be specified, but I don't think there is a binding yet for sector size since in most cases the sector size is probed from the device itself.

g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.