coreboot/src
David Hendricks 1fb11d105b armv7/exynos5250: Deprecate sdelay in favor of udelay
This gets rid of the clock-tick based sdelay in favor of udelay().
udelay() is more consistent and easier to work with, and this allows
us to carry one less variation of timers (and headers and sources...).

Every 1 unit in the sdelay() argument was assumed to cause a delay of
2 clock ticks (@1.7GHz). So the conversion factor is roughly:
sdelay(N) = udelay(((N * 2) / 1.7 * 10^9) * 10^6)
          = udelay((N * 2) / (1.7 * 10^3))

The sdelay() periods used were:
sdelay(100) --> udelay(1)
sdelay(0x10000) --> udelay(78) (rounded up to udelay(100))

There was one instance of sdelay(10000), which looked like sort of a
typo since sdelay(0x10000) was used elsewhere. sdelay(10000) should
approximate to about 12us, so we'll stick with that for now and leave
a note.

Change-Id: I5e7407865ceafa701eea1d613bbe50cf4734f33e
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/3079
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-04-17 23:06:40 +02:00
..
arch armv7/exynos5250: Deprecate sdelay in favor of udelay 2013-04-17 23:06:40 +02:00
console console: Make use of CONFIG_USE_OPTION_TABLE 2013-04-01 20:54:48 +02:00
cpu armv7/exynos5250: Deprecate sdelay in favor of udelay 2013-04-17 23:06:40 +02:00
device Add PXE ROM selection to Kconfig menu 2013-04-03 18:01:44 +02:00
drivers [2/2] tps65090: re-factor for coreboot 2013-04-10 17:34:19 +02:00
ec ec/google: Move plug-n-play initialization to LPC protocol. 2013-04-16 01:07:16 +02:00
include Exynos5250: add a microsecond timer 2013-04-13 00:47:27 +02:00
lib Fix read_option invocation in uart8250mem.c 2013-04-08 21:36:01 +02:00
mainboard google/snow: enable 32KHz sleep clock 2013-04-17 17:56:06 +02:00
northbridge Lenovo ThinkPad X60: Add Native VGA init. 2013-04-16 05:20:12 +02:00
southbridge Intel Panther Point PCH: Use 2 << 24 to clarify that APIC ID is 2 2013-04-16 15:34:09 +02:00
superio Add new superio device 2013-04-12 00:37:34 +02:00
vendorcode AMD AGESA: Fix argument list for PCIE_DDI_DATA_INITIALIZER in comments 2013-04-16 00:14:12 +02:00
Kconfig dynamic cbmem: fix memconsole and timestamps 2013-03-23 19:44:25 +01:00