Stefan Reinauer | 453dfdf | 2005-12-04 17:50:32 +0000 | [diff] [blame] | 1 | #include <arch/io.h> |
Maciej Pijanka | ea92185 | 2009-10-27 14:29:29 +0000 | [diff] [blame] | 2 | #include <delay.h> |
Stefan Reinauer | 453dfdf | 2005-12-04 17:50:32 +0000 | [diff] [blame] | 3 | |
Furquan Shaikh | 8171496 | 2014-04-22 11:48:30 -0700 | [diff] [blame] | 4 | void init_timer(void) |
5 | { | ||||
6 | } | ||||
7 | |||||
Stefan Reinauer | aeba92a | 2009-04-17 08:37:18 +0000 | [diff] [blame] | 8 | void udelay(unsigned usecs) |
Stefan Reinauer | 453dfdf | 2005-12-04 17:50:32 +0000 | [diff] [blame] | 9 | { |
10 | int i; | ||||
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 11 | |
12 | for (i = 0; i < usecs; i++) | ||||
Stefan Reinauer | 8e65adb | 2008-08-13 12:16:15 +0000 | [diff] [blame] | 13 | inb(0x80); |
Stefan Reinauer | 453dfdf | 2005-12-04 17:50:32 +0000 | [diff] [blame] | 14 | } |