[AVR32] SMC configuration in clock cycles
authorKristoffer Nyborg Gregertsen <kngregertsen@norway.atmel.com>
Fri, 17 Aug 2007 14:59:57 +0000 (16:59 +0200)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 11 Oct 2007 11:32:49 +0000 (13:32 +0200)
commitaf8184718a322ae589efa583aa69ffdae61bf266
tree7324ba9e6a14e78b89b703bea7d0594a0ae9ef6e
parent193fdd1a99db8623697cb18a13dbcaa4eadbb1f2
[AVR32] SMC configuration in clock cycles

This patch makes the SMC configuration take timings in clock cycles
instead of nanoseconds. A function to calculate timings in clock
cycles is added.

This patch removes the rounding troubles of the previous SMC
configuration method.

[hskinnemoen@atmel.com: fix atstk1002/atngw100 flash config]
Signed-off-by: Kristoffer Nyborg Gregertsen <gregerts@stud.ntnu.no>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/boards/atngw100/flash.c
arch/avr32/boards/atstk1000/flash.c
arch/avr32/mach-at32ap/hsmc.c
include/asm-avr32/arch-at32ap/smc.h