Setup flash timing

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I have a custom board using AT49BV640D instead of the AT49BV642D as the NGW. I'm having some trouble setting up the flash parameters in the kernel (flash.c)

How does one come up with those values (from ngw100)?

static struct smc_timing flash_timing __initdata = {
        .ncs_read_setup         = 0,
        .nrd_setup              = 40,
        .ncs_write_setup        = 0,
        .nwe_setup              = 10,

        .ncs_read_pulse         = 80,
        .nrd_pulse              = 40,
        .ncs_write_pulse        = 65,
        .nwe_pulse              = 55,

        .read_cycle             = 120,
        .write_cycle            = 120,
};

Are those in cycles or in nanoseconds?

Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ns ISTR.

In fact yeah, in arch/avr32/mach-at32ap/hsmc.c see all accesses to struct smc_timing members are surrounded by ns2cyc calls :-)

-S.